Home

developers.mit.edu

Sort of helping developers at MIT since 2009

Secondary links

  • Forums
  • Recent Posts
Home Forums Web Masters
    • FAQ
    • Contact
    • Community

openssl question

Submitted by alister@mit.edu on Tue, 02/03/2009 - 16:00
  • Web Masters
  • openssl question from an openssl noob

I have an application certificate requested from mitcerts in pkcs12 format. I'm now being asked for the public key of that cert, base64 encoded... is there some command to extract that with openssl? Is there something else I would need?

‹ How to Force SSL on User and Admin Pages of Drupal What is the correct way to use and mark code for deployment in SVN? ›
  • Login to post comments

Convert pkcs12 cert to base64

Submitted by bknoll@mit.edu on Tue, 02/03/2009 - 17:40.

I would think something like the following should do the trick:

openssl pkcs12 -in mycert.pfx -out mycert.pem
openssl enc -base64 -in mycert.pem -out mycert.b64

This should convert your mycert.pfx file to mycert.b64, base64-encoded.

  • Login to post comments

Thanks, I also got a tip from

Submitted by alister@mit.edu on Mon, 02/09/2009 - 09:42.

Thanks, I also got a tip from someone else, who suggested:

openssl pkcs12 -in myFile.p12 -out myPublicKey.pem -clcerts -nokeys

Which also seemed to work.

  • Login to post comments

Login

Log in via Touchstone

Forums

  • All Forums
  • General Questions
  • Drupal Users
  • FileMaker Developers
  • Identity Management
  • Java Developers
  • Linux Users
  • Opportunities
  • PHP Developers
  • Python Users
  • UX Developers
  • Web Masters
  • Suggestions

Tags

accessibility ajax branch Javascript jQuery MIT Touchstone openssl question from an openssl noob release management Shibboleth silverstripe source control speed
more tags
RoopleTheme