How to export base64 encoded x.509 certificate with private key without using OpenSSL

certificateclient-certificatesdigital-certificatessl-certificatex509certificate

I have a Root CA certificate with .cer extension with private key.
I have to Export that certificate as .pem extension with private key in base64 encoded format without using OpenSSl.
I am not able to do this with mmc.

Is there any tool or script available for converting certificate from pfx to pem format without using openssl in windows.

Please help me by sharing code or any scripts or commands etc…
Thanks…

Best Answer

You could use the window's certutil tool to encode a file to Base64. Try this command:

certutil -encode {YOUR_PFX_FILE} {CONVERTED_FILE_NAME}

This command should put the appropriate certificate header too.