nginx ssl configuration ubuntu with pfx file
## Code used by anowar vai for abbvie ## See /home/bs331/Documets/useful-commts openssl pkcs12 -in client_ssl.pfx -out client_ssl.pem -clcerts openssl pkcs12 -in client_ssl.pfx -out root.pem -cacerts openssl pkcs12 -in domain.pfx -out domain.pem -clcerts openssl pkcs12 -export -in file.pfx -out domain.pem -password pass:hidden-password openssl pkcs12 -in domain.pfx -nocerts -out domain.key
Here is what the above code is Doing:
1. Extracting the client certificate from the pfx file
2. Extracting the root certificate from the pfx file
3. Extracting the domain certificate from the pfx file
4. Exporting the pfx file to a pem file
5. Extracting the private key from the pfx file