Difference between revisions of "Pfx openssll"
Jump to navigation
Jump to search
(Created page with "openssl pkcs12 -in path.p12 -out newfile.crt.pem -clcerts -nokeys openssl pkcs12 -in path.p12 -out newfile.key.pem -nocerts -nodes") |
|||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | No password on out pems | ||
+ | ``` | ||
openssl pkcs12 -in path.p12 -out newfile.crt.pem -clcerts -nokeys | openssl pkcs12 -in path.p12 -out newfile.crt.pem -clcerts -nokeys | ||
openssl pkcs12 -in path.p12 -out newfile.key.pem -nocerts -nodes | openssl pkcs12 -in path.p12 -out newfile.key.pem -nocerts -nodes | ||
+ | ``` | ||
+ | |||
+ | https://blog.knoldus.com/easiest-way-to-setup-ssl-on-nginx-using-pfx-files/ | ||
+ | ``` | ||
+ | openssl pkcs12 -in ./YOUR-PFX-FILE.pfx -clcerts -nokeys -out domain.crt | ||
+ | openssl pkcs12 -in ./YOUR-PFX-FILE.pfx -nocerts -nodes -out domain.rsa | ||
+ | ``` | ||
+ | |||
+ | nginx/conf.d/host.conf | ||
+ | ``` | ||
+ | server { | ||
+ | listen 443 ssl; | ||
+ | server_name domain.com domain.com; | ||
+ | ssl_certificate /path/to/your/CRT_file/domain.crt; | ||
+ | ssl_certificate_key /path/to/your/RSA_file/domain.rsa; | ||
+ | |||
+ | root /mnt/coming-soon/bushbeans; | ||
+ | index index.html; | ||
+ | include /etc/nginx/mime.types; | ||
+ | } | ||
+ | ``` |
Latest revision as of 21:26, 9 September 2021
No password on out pems
openssl pkcs12 -in path.p12 -out newfile.crt.pem -clcerts -nokeys openssl pkcs12 -in path.p12 -out newfile.key.pem -nocerts -nodes
https://blog.knoldus.com/easiest-way-to-setup-ssl-on-nginx-using-pfx-files/
openssl pkcs12 -in ./YOUR-PFX-FILE.pfx -clcerts -nokeys -out domain.crt openssl pkcs12 -in ./YOUR-PFX-FILE.pfx -nocerts -nodes -out domain.rsa
nginx/conf.d/host.conf
server { listen 443 ssl; server_name domain.com domain.com; ssl_certificate /path/to/your/CRT_file/domain.crt; ssl_certificate_key /path/to/your/RSA_file/domain.rsa; root /mnt/coming-soon/bushbeans; index index.html; include /etc/nginx/mime.types; }