Submitted by Lucian on Sat, 03/16/2019 - 20:12
Hello,
I need to script enabling letsencrypt for a virtual server. Any pointers as to how to approach this? Thanks!
Status:
Active
Hello,
I need to script enabling letsencrypt for a virtual server. Any pointers as to how to approach this? Thanks!
Comments
Submitted by andreychek on Sat, 03/16/2019 - 20:22 Comment #1
Howdy -- thanks for contacting us!
You'd first want to ensure that the "SSL Website" feature is enabled, which can be done with "virtualmin enable-feature" (run that command to see the options).
Next, you can use "virtualmin generate-letsencrypt-cert" to generate a Let's Encrypt certificate on the command line.
Submitted by Lucian on Thu, 03/21/2019 - 02:11 Comment #2
Thanks, I have managed to create a virtual server and enable letsencrypt in one go with this command:
virtualmin create-domain --domain some.domain.tld --web --ssl --letsencrypt --user test --pass test --desc "test" --unix --mail --dir