Ssl – How to convert a normall ssl in CRT certificate to base64 CER

opensslsslssl-certificate

I have the following files:

ca_bundle.crt
certificate.crt
private.key

In our Android project, we are trying to establish a handshake to a secure WebSocket and it requires a base64 .cer format certificate. Can anyone tell me how can I convert the above files to working base64 .cer file?

Thanks

Best Answer

Can you copy the files to a windows machine? You don't need openssl to do this conversion, and it looks quite easy.

  1. (on windows machine) Double-click on the *.crt file to open it into the certificate display. If it's already imported into certmgr.msc, just browse to it and double click the cert file.
  2. Select the Details tab, then select the Copy to file option.
  3. Choose next on the Certificate Wizard.
  4. Select Base-64 encoded X.509 (.CER) in the File format window, then Next.
  5. Finally, enter the path for which to save the new file... make sure it has a .cer extension.

enter image description here