Skip Navigation

Extract the public key from the .pfx file

You must extract the public kiey from the .pfx file so that it can be uploaded to 
Twilio
. You can use the 
OpenSSL
 tool to extract the public key from the 
.pfx
 file.
  1. Open a command prompt 
  2. Type 
    cd D:\openssl\openssl-0.9.8h-1-bin\bin
     to navigate to the 
    bin
     directory. If you installed 
    OpenSSL
     in a different path, provide that path. 
  3. Execute the following two 
    OpenSSL
     commands to extract public key from 
    .pfx
     file. 
    It is assumed that the .pfx certificate is located at  
    D:/SSLCertificate/mycert.pfx.
     If your certificate file name and path are different, replace the path and file name in the bolded text with the path and file name that you have used.
    #(extract keypair from mycert.pfx) openssl pkcs12 -in
    D:/SSLCertificate/mycert.pfx
    -nocerts -nodes -out
    D:/SSLCertificate
    /keypair.key
    public_key.pem
     file is created in the same location. This 
    public_key.pem
     file will be required in the next step.