Vagrant Trellis Cert

Gem Gem Dependency Status license Donate via PayPal Hire Typist Tech

Trust all Trellis self-signed certificates with single command

Installation

$ vagrant plugin install vagrant-trellis-cert

Usage

# Trust all certificates on a Trellis vagrant VM
$ vagrant trellis-cert [--path <path>]

# Example: Running at Trellis root
$ vagrant trellis-cert

# Example: Specify Trellis root
$ vagrant trellis-cert --path /path/to/trellis

Going super lazy

If the vagrant-triggers plugin is installed, we can run the command on Vagrant state changes like vagrant up and vagrant reload. Add these line into Trellis' Vagrantfile:

# Vagrantfile

# Some lines of code...

Vagrant.configure('2') do |config|

  # Some more lines of code later...

  config.trigger.after :up, :stdout => true do
    run "vagrant trellis-cert"
  end

  config.trigger.after :provision, :stdout => true do
    run "vagrant trellis-cert"
  end

  config.trigger.after :reload, :stdout => true do
    run "vagrant trellis-cert"
  end

end

Limitations

Pull requests are welcome!

  • Only works on macOS

Support!

Love Vagrant Trellis Cert? Help me maintain it, a donation here can help with it.

Why don't you hire me?

Ready to take freelance WordPress jobs. Contact me via the contact form here or, via email [email protected]

Want to help in other way? Want to be a sponsor?

Contact: Tang Rufus

Feedback

Please provide feedback! We want to make this library useful in as many projects as possible. Please submit an issue and point out what you do and don't like, or fork the project and make suggestions. No issue is too small.

Change log

Please see CHANGELOG for more information on what has changed recently.

Author Information

Vagrant Trellis Cert is a Typist Tech project and maintained by Tang Rufus, freelance developer for hire.

Special thanks to the Roots team whose Trellis make this project possible.

Full list of contributors can be found here.

Contributing

Please see CODE_OF_CONDUCT for details.

License

Vagrant Trellis Cert is released under the MIT License.