De-compiling .pfx file
Last updated
Last updated
In the previous note we have taken insights how can we make a .pfx format file for our SSL work , Many vendors & certificate issuers provide the pfx format as their ssl for the purchased domain. So now we will take insights how to de-compile the pfx file & the the following files from it :
CA Certificate (Root CA)
Private Key (.key)
CA-Chain (.bundle)
Here we have obtained the pfx file from the domain provider and now we will extract the necessary files above mentioned using openssl
Now we will extract the files one by one , Extracting the private key first from the pfx file
We have extracted the private key now we will extract the ca certificate also known as the root ca certificate
We have extracted the certificate of the domain and now we will extract the CA-chain file in which we can get the root ca file bundled which can later be used to sign the certificates.
Now we have generated all the necessary files now we will verify that all the files extracted are integral to the main pfx package file.
Check the modulus of the private key:
Check the output of the following command :