Solved

Signing SSL certs to work with remote API's

Posted on 2007-03-23
3
280 Views
Last Modified: 2010-03-04
I have a scripts that connects to API via https. In the script config section it asks me for:

    "ssl_connection" => true,
    "ssl_strong_verify" => true,
    "ssl_cert" => "./client.crt",
    "ssl_cacert" => "./CA.pem",

I've sent my request.pem to the API provider and got a signed cert back (signed.pem), but I'm a bit lost as to what I need to do next. I guess I need to somehow sign client.crt with my key and signed.pem and then export it for the script.

I found a couple of tutorials on how to self-sign certs, but can't find anything on how to sign a 3rd party cert.

Can anyone point me to a decent tutorial?

I'm using Openssl  0.9.8e BTW.
0
Comment
Question by:thunder99
  • 2
3 Comments
 
LVL 62

Accepted Solution

by:
gheist earned 125 total points
ID: 18784545
"ssl_key" => "signed.pem"
0
 

Author Comment

by:thunder99
ID: 18791584
Great, thanks for that gheist. Now I get a 'unable to set private key file', but I think the key may be wrong, so I'll get the cert resigned and try it.

Thanks again.
0
 
LVL 62

Expert Comment

by:gheist
ID: 18793351
cert should be signed
key should not...


i.e
"ssl_key" => "client.crt"

"ssl_cert" => "signed.pem"
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…

838 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question