Last active
March 2, 2018 13:51
-
-
Save peterkappus/236a79123ea93969cbd583ab2abe9dca to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
How to | |
For Centos (because that's what some companies give you for a VM) | |
Follow these steps: | |
https://www.digitalocean.com/community/tutorials/how-to-install-nginx-on-centos-7 | |
yum install -y vim | |
vim /etc/nginx/nginx.conf | |
#add your certificate to the machine... | |
#... export from your host | |
#add to machine | |
#convert | |
# | |
# | |
#Generate certificates bundle file | |
> openssl pkcs12 -nokeys -in server-cert-key-bundle.p12 -out server-ca-cert-bundle.pem | |
# | |
# | |
#Generate server key file | |
> openssl pkcs12 -nocerts -nodes -in server-cert-key-bundle.p12 -out server.key | |
# | |
#add a proxy location... | |
location /some/path/ { | |
proxy_pass http://www.example.com/link/; | |
proxy_ssl_certificate file; | |
proxy_ssl_certificate_key file; | |
} | |
#start nginx | |
nginx | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment