FreeKB - OpenSSL Display contents of a PFX file
OpenSSL - Display contents of a PFX file

Let's say you've created a PFX file named example.pfx.The OpenSSL command with the -info and -in options can be used to display the contents of the PFX file.

openssl pkcs12 -info -in example.pfx

 

You should be prompted to provide the password that was used to secure the PFX file. If you do not want to be prompted for the password, the password can be included on the command line.

openssl pkcs12 -in example.pfx -info -nodes -passin pass:your_password

 

You should be prompted to provide the password that was used to secure the PFX file. After providing the valid password, something like this should be displayed.

MAC Iteration 2048
MAC verified OK
PKCS7 Encrypted data: pbeWithSHA1And40BitRC2-CBC, Iteration 2048
Certificate bag
Bag Attributes
    localKeyID: E5 6D 55 73 09 C7 DF 9D C6 B4 F4 13 A2 92 F6 1E 21 62 BA 31 
subject=/C=US/ST=WI/L=Appleton/O=demo/OU=demo
issuer=/C=US/ST=WI/L=Appleton/O=demo/OU=demo
-----BEGIN CERTIFICATE-----
MIIDEjCCAfoCCQCXoHahGXonlDANBgkqhkiG9w0BAQsFADBLMQswCQYDVQQGEwJV
UzELMAkGA1UECAwCV0kxETAPBgNVBAcMCEFwcGxldG9uMQ0wCwYDVQQKDARkZW1v
MQ0wCwYDVQQLDARkZW1vMB4XDTIwMDYwNTEwNTkwMFoXDTIxMDYwNTEwNTkwMFow
SzELMAkGA1UEBhMCVVMxCzAJBgNVBAgMAldJMREwDwYDVQQHDAhBcHBsZXRvbjEN
MAsGA1UECgwEZGVtbzENMAsGA1UECwwEZGVtbzCCASIwDQYJKoZIhvcNAQEBBQAD
ggEPADCCAQoCggEBAOe9uSinqxx+Rz+0TS44adz0UgNNhSsY5AkULpKGh5PIrWzX
qwCZCMxLxArE9ywlV5ud6qEjX7LslXTkzH5kBjm6QxjXKxl2poeuRVdyBnECyIIs
J4FY8n4l6bjdac3UfP8i8Ut2gv5xs/JiE1o0GO2WJqt4RnwyHLBNoLZLT6B7TaP8
vQZ/PDLOZPxZHW+pGqVOi8Rl1qOSYgEXa4EagTL+b1dRC1ueaxLSF9BAEnZymCvu
oVpVSefkfPNy71E2A2Ir5T6POdNCDKTQcJzEZavgk9MJseUNCrQHnaEoc+z/CFMn
1KthGSWVFg6PNBcPapoatg6XHs45tEcSz2fdsC0CAwEAATANBgkqhkiG9w0BAQsF
AAOCAQEAGNp8ZGM0KgfZQBnYgMZlml1k4VW/QGGgefdSkmDHLppMWfCOGnaH1RrU
8Oj0cdfM48wsZN5ZfAEGavEunPYxRjiH8RJJz4wkuZazIuXvT46tnavLuZNJwr1c
OYPuJovcDutBOtSlrL+sqKWFcDABEJvpJ9BPCWMdUVRwXDxoANdM0Rfg75CSUhkf
1cYMqO9yZJx1IWFBPa+AAHyLrGacjo88Q3pWcdJVTkE8/mjcIqt50OuR03PN579f
z7m8gEpjhd1RgzwaADIpDmbwOVMmIY7SIhBSkhZDvuLa/hARANbIvuYY9bjLzCPc
81ZtsHyRVksGFn+29yN61Tn1hQyK9g==
-----END CERTIFICATE-----
PKCS7 Data
Shrouded Keybag: pbeWithSHA1And3-KeyTripleDES-CBC, Iteration 2048
Bag Attributes
    localKeyID: E5 6D 55 73 09 C7 DF 9D C6 B4 F4 13 A2 92 F6 1E 21 62 BA 31 
Key Attributes: <No Attributes>
Enter PEM pass phrase:
Verifying - Enter PEM pass phrase:
-----BEGIN ENCRYPTED PRIVATE KEY-----
MIIFDjBABgkqhkiG9w0BBQ0wMzAbBgkqhkiG9w0BBQwwDgQIsYR3z89yO00CAggA
MBQGCCqGSIb3DQMHBAh8/RzfBSZ6cQSCBMh9/SBfIDUx4SmVkd1lI0s8gNr7BkC4
tk9NFmly17rXoJ5iF1tWYxzwx2rmgnmkqatmBeeBOY8HdtiyMrBw+hXeAVDlpYFc
/SkjDhMank7ZFRwGm8oWCCaFEpX8gcmCKKbl3DC0/2I0hZ9dRXCd3DkzcPd1map+
HnRrEEl902mZXcv4vQP7wB7CYlBVsVZe2EyPZfPI9q1Td0vnBJ+169QvZMPkltHz
LOzxQihswR3Ei8j1ey9SLruzoCtJ9whfilI2oaxl893K9XkvzPA5DNnTDMfgo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uDB53n33jJ/LOc3KDiIU4hECAbc31ZIqkMVwije1M
4IL7PXXCjGJMlDDUHIqpcuLVKsIjUSO1P5ljz+Wa3myOn0AAAzLlZZQvauRjEPFa
S6+pGD0o+NHoNiI9KcWEaExCcUBcZYmO7nHeAoWqRUWuetH6LWmu5dkE+5mCr3Mc
qOe1Aq+u+z5TBC4Pkl5PODySKUveX+rws4ZLq9kQBZrw4ILgwXim/XQOoCNS8RRA
hsiffaA/KxN7gFuNvC3ssNouYp9JufKBs87nLDzEFqCke8Un/0MjAkG/BygdtKPi
MME=
-----END ENCRYPTED PRIVATE KEY-----

 



Add a Comment




We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.




Please enter ebffe in the box below so that we can be sure you are a human.




Comments

Web design by yours truely - me, myself, and I   |   jeremy.canfield@freekb.net   |