Forum Discussion
two way SSL and Trusted Certificate Authorities
Hello -
I understand that when a client presents a certificate that it can be verified as being issued from a trusted CA authority. What I don't know how to do is create the bundle of trusted CAs or of a single CA. For example how does one get Verisign's certificate ? The certificate to include in a bundle that indicates Verisign is trusted............????????
Thanks in advance.
4 Replies
- Kevin_Stewart
Employee
You need the base64 "PEM" versions of the CA certificates. If you open them up in a text editor, they'll start with "===== BEGIN CERTIFICATE =====" and end with "====== END CERTIFICATE =====". The easiest way to get these, at least in Windows, is to first install it and then export it as base64. Once you have all of the CA certificates in base64, simply create a text file and add the text of each to the file, including the BEGIN and END headers/footers. Import this file as your CA bundle in the client SSL profile.
Also note that in order to validate a client certificate, you must have all of the CA certificates in the path from the issuer to the root. Example:
CA root -> subordinate CA -> issued client certificate
- nitass
Employee
If I understand this correctly I need to convert the client certificate, which is in .crt & .key format) into the base64 PEM format
.crt and .key are just file extensions. if it is ascii format, you may open the file with text editor and check what format it is. there is information about file format in sslshopper.com below.
https://www.sslshopper.com/ssl-converter.html
hope this helps.
- Kevin_Stewart
Employee
Just to be clear, we're talking about the CA certs. You'll never have a copy of the private key, just the public certificate. If you open that cert up with a text editor, you'll either see gobbledeegook - which would be the "DER" binary-encoded format, or PEM - which will start with "===== BEGIN CERTIFICATE =====" and contain several lines of ASCII characters. This is the format you need. Take this text, plus the PEM-formatted text of all of the other CAs, and put that into a single text file. Example:
===== BEGIN CERTIFICATE ===== dhduejdushsudhsksjsjssnsjdnd JsjdjdnjssjshavggbajHaukagHa ... ===== END CERTIFICATE ===== ===== BEGIN CERTIFICATE ===== dhduejdushsudhsksjsjssnsjdnd JsjdjdnjssjshavggbajHaukagHa ... ===== END CERTIFICATE =====This will be your CA bundle file.
- Kevin_Stewart
Employee
Bmohanak, a certificate bundle is basically a text file that you create and import.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
