1

My company has most of it's internal sites behind an SSO site (weblogin.comnpany.com using pubcookie). I'm trying to automate some tasks that need to log in with SSO to access some of these sites. Recently the weblogin page requires a client cert to be in order to even present the form to enter your password. So I need to load my client cert in order to get started with this automation.

I'd like to do something like this:

https://stackoverflow.com/questions/18886501/http-library-for-ruby-with-https-ssl-client-certificate-and-keep-alive-support

In this example, the client certs are loaded like this:

ssl_options = {
  cert: OpenSSL::X509::Certificate.new(File.read('./certificate/client-2048.pem')),
  key:  OpenSSL::PKey::RSA.new(File.read('./certificate/client-2048.key'), 'mypassword')
}

What are the equivalent file paths ('./certificate/client-2048.pem' and './certificate/client-2048.key') on Mac OS X?

I've read this over: Where are digital certificates physically stored on a Mac OS X machine?

but I don't believe it mentions where private/public keys are actually stored.

Ramy
  • 1,171

0 Answers0