Trust Trellis self-signed certificates with a single command
- Installation
- Usage
- Going super lazy
- Limitations
- Support!
- Feedback
- Change log
- Author Information
- Contributing
- License
$ vagrant plugin install vagrant-trellis-cert
Usage: vagrant trellis-cert trust [options] [vm-id]
Usage: vagrant trellis-cert distrust [options] [vm-id]
-h, --help Print this help
# Example: Running within Trellis directory
$ vagrant trellis-cert trust
$ vagrant trellis-cert distrust
# Example: Specify VM id
$ vagrant global-status
id name provider state directory
-----------------------------------------------------------------------------------
fb90ab5 default virtualbox running /Users/me/Code/trellis
$ vagrant trellis-cert trust fb90ab5
$ vagrant trellis-cert distrust fb90ab5
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
:
# 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
config.trigger.after :destroy, :stdout => true do
run "vagrant trellis-cert distrust"
end
end
Pull requests are welcome!
- Only works on macOS
Love Vagrant Trellis Cert? Help me maintain it, a donation here can help with it.
Ready to take freelance WordPress jobs. Contact me via the contact form here or, via email [email protected]
Contact: Tang Rufus
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.
Please see CHANGELOG for more information on what has changed recently.
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.
Please see CODE_OF_CONDUCT for details.
Vagrant Trellis Cert is released under the MIT License.