Guest User

Untitled

a guest
Apr 25th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. make fifo: `mkfifo -m 600 /path/to/fifo`
  2.  
  3. /etc/nginx/sites-enabled/site
  4. ```
  5. [CUT]
  6. ssl_certificate /path/to/cert;
  7. ssl_password_file /path/to/fifo;
  8. ssl_certificate_key /path/to/key;
  9. [CUT]
  10. ```
  11.  
  12. /lib/systemd/system/sslpass.service
  13. ```
  14. [Unit]
  15. Description=SSL Passphrase Shim
  16. [Service]
  17. Type=simple
  18. ExecStart=/bin/bash -c 'echo -n `systemd-ask-password "Enter SSL Passphrase: "` > /etc/nginx/sslpass'
  19. #Restart=always
  20. [Install]
  21. WantedBy=nginx.service
  22. ```
  23.  
  24. Then `systemctl daemon-reload && systemctl enable sslpass.service`
Add Comment
Please, Sign In to add comment