SSL Cert/Key with PEM Passcode/Password

I have a crt and a key, the key requires a passcode, I have it but not sure how to use it inside SSL section of wordpress_sites.yml and don’t see any documentation, can you please let me know how to use this key, do I need to put the code in vault.yml? what is the name?

Because it doesn’t exist.

Option A - Use Nginx ssl_password_file

  • Create a password file
  • Template ssl_password_file into roles/nginx/templates/nginx.conf.j2
  • (Be nice :wink: ) Submit pull request

See: Pass cert password to Nginx with https site during restart - Stack Overflow

Option B - Don’t password-protect the key

See: https://stackoverflow.com/a/51880440

1 Like