0

I've been looking at how to create X509 certificates and I'm a bit confused. I understand the theory, and creating a single certificate is OK, but I don't have the operational know-how to create the system as a whole.

Here are the requirements:

1) There will be one master server. The SSL certificate for this will not be signed by any authority: it is the root. This certificate (or at least the means to verify it) will be distributed with the application.

2) There may be any number of secondary servers. Each will generate its own certificate and submit it to the master server.

3) The master server will sign secondary certificates with the root.

The use-case is that a client connects to a secondary server and must be able to verify that its certificate has been signed by the root.

N.B. The master server is identified by a DNS hostname. The secondary servers may be named or may be identified by IP address alone.


Four questions:

Can someone please show me the openssl commands to accomplish each of those three steps?

Which, if any, of the files generated by those steps should not be distributed?

After step 3, does the master have to return a modified certificate to the secondary?

Do the secondary certificates have to be distributed by the trusted master, or is it sufficient for the client to validate any certificate advertised by the secondary?

1 Answer 1

2

OpenSSL comes with a script useful for creating a basic CA: CA.pl. (You can of course configure it in more details by altering the OpenSSL configuration file.)

What the secondary servers should generate are Certificate Requests (CSR), which the CA can process to issue certificates (after a validation process of your choice).

Regarding file distributions: all parties should keep their private keys private.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.