I have an A1 .pfx certificate and I have to make a request via postman using the certificate. I did the following process to extract the keys this way.
open the terminal of your choice, navigate to the directory where the .pfx is located and execute the following command:
openssl pkcs12 -in certificate.pfx -nocerts -out public-crypted.key
After execution, it will ask to enter the .pfx password, for example:
Enter Import Password:<Type .pfx password here>
Enter PEM pass phrase:<Enter .pfx password here>
Verifying - Enter PEM pass phrase:<Enter .pfx password here>
Now run the following command:
openssl pkcs12 -in certificate.pfx -clcerts -nokeys -out certificate.crt
Confirm the Password:
Enter Import Password:<Type .pfx password here>
Then run the:
openssl rsa -in public-crypted.key -out public.key
Confirm the Password:
Enter pass phrase for public-crypted.key:<Enter .pfx password here>
And if the password is correct, it will show the information in the console:
writing RSA key
Afterwards, just check the certificate.crt and public.key files in the directory. You can disregard the public-crypted.key file.
With the generator files I configured it in postman but I get the following error:
Error: write EPROTO 66747912:error:10000416:SSL routines:OPENSSL_internal:SSLV3_ALERT_CERTIFICATE_UNKNOWN:โฆ/โฆ/โฆ/โฆ/src/third_party/boringssl/src/ssl/tls_record.cc:594:SSL alert number 46