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.- Open a command prompt
- Typecd D:\openssl\openssl-0.9.8h-1-bin\binto navigate to thebindirectory. If you installedOpenSSLin a different path, provide that path.
- Execute the following twoOpenSSLcommands to extract public key from.pfxfile.It is assumed that the .pfx certificate is located atD:/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 -inD:/SSLCertificate/mycert.pfx-nocerts -nodes -outD:/SSLCertificate/keypair.keyApublic_key.pemfile is created in the same location. Thispublic_key.pemfile will be required in the next step.