You can use following commands to extract public/private key from a PKCS#12 container:
-
PKCS#1 Private key
openssl pkcs12 -in yourP12File.pfx -nocerts -out privateKey.pem
-
Certificates:
openssl pkcs12 -in yourP12File.pfx -clcerts -nokeys -out publicCert.pem
More Related Contents:
- Creating a .p12 file
- How to generate a self-signed SSL certificate using OpenSSL?
- Multiple GitHub Accounts & SSH Config
- Why does an SSH remote command get fewer environment variables then when run manually? [closed]
- How can I generate a self-signed certificate with SubjectAltName using OpenSSL? [closed]
- How can I transform between the two styles of public key format, one “BEGIN RSA PUBLIC KEY”, the other is “BEGIN PUBLIC KEY”
- OpenSSL: PEM routines:PEM_read_bio:no start line:pem_lib.c:703:Expecting: TRUSTED CERTIFICATE [closed]
- Generate and Sign Certificate Request using pure .net Framework
- Converting PKCS#12 certificate into PEM using OpenSSL
- git 2.20.1.windows.1 does not honor http.sslverify=false
- Verify a certificate chain using openssl verify
- Automating command/script execution using PuTTY
- Bitvise SH Client Installation error. CreateDirectory() failed: Windows error 5: Access is denied
- Convert PEM traditional private key to PKCS8 private key
- How can I force ssh to accept a new host fingerprint from the command line?
- Using “Remote SSH” in VSCode on a target machine that only allows inbound SSH connections
- How to solve “sign_and_send_pubkey: signing failed: agent refused operation”?
- How do I do TLS with BouncyCastle?
- Vagrant ssh authentication failure
- How to determine SSL cert expiration date from a PEM encoded certificate?
- proper way to sudo over ssh
- What is the proper way to sudo over ssh?
- Unable to negotiate with XX.XXX.XX.XX: no matching host key type found. Their offer: ssh-dss
- How to SSH to a VirtualBox guest externally through a host? [closed]
- Convert PEM to PPK file format
- Possible reasons for timeout when trying to access EC2 instance
- Google server putty connect ‘Disconnected: No supported authentication methods available (server sent: publickey)
- Unable to open X display when trying to run google-chrome on Centos (Rhel 7.5)
- VScode remote connection error: The process tried to write to a nonexistent pipe
- SSH to remote server using ansible