Monday, 19 August 2013

How to alias a ssl certificate common name?

How to alias a ssl certificate common name?

I have a server, which has a self signed certificate, which I am trying to
securely access. I've got the certificate by looking at the output from
openssl s_client -connect <ip>, and copied it to testcert.pem, which I
then tried to use with curl --cacert testcert.pem <url>. However, this
didn't work, and my research has lead me believe that the problem may be
the line in the certificate that reads Subject: CN=id23946.
Apparently, I need to store an alias somewhere on my system linking
id23946 to the ip address, but I can't find any information on how to do
that. So, how do I do it? How do I make curl verify this certificate as
valid?

No comments:

Post a Comment