Trust Trellis’ self-signed certificates with single command because ain’t nobody got time for that.
- Install vagrant-trellis-cert
$ vagrant plugin install vagrant-trellis-cert
- Run that single command at project root (same level with
$ vagrant trellis-cert trust www.typist.dev certificate imported successfully www.example.dev certificate imported successfully
- I told you… single command…
How about not even a single command?
If the vagrant-triggers plugin is installed, we can run the command on Vagrant state changes like
vagrant provision. Add these lines into Trellis’
# Vagrantfile # Some lines of code... Vagrant.configure('2') do |config| # Some more lines of code later... config.trigger.after :provision, :stdout => true do run "vagrant trellis-cert trust" end end
So far, this plugin only works on macOS. Pull requests are welcome.