Creating google oauth X.509 certificate in PEM format within Mac OS X

Kevin Jung picture Kevin Jung · Aug 2, 2011 · Viewed 7.6k times · Source

I am currently in the process of setting up the Google oauth for my site and I was wondering if it is possible to generate a X.509 certificate in PEM format within MAC OS X via terminal?

Google provides this page as reference:

http://code.google.com/apis/gdata/docs/auth/authsub.html#Registered

but I was hoping it could be done within the Mac OS instead.

Answer

emboss picture emboss · Aug 2, 2011

You can use OpenSSL for that, it should be installed by default on OS X. This tutorial shows you how you may create your own self-signed certificate.

You can also use OpenSSL for something more sophisticated, e.g. a root CA that would issue either further sub-CAs or end-entity certificates directly.