On Thu, Oct 04, 2007 at 10:59:30AM -0600, c4onastick wrote:

> I can't seem to find a good "How To" on generating the required certificates,
> CA and keys for the server and client. My initial attempts all failed. Does
> any one have any good How To's? I assume I have to generate and sign my own
> CA, generate the server public and private keys and generate private keys
> for all the clients.

You can start with a minimal demo CA I put together. See attached PKI.tgz
file.

Run:

    ./ca.sh rsa 1024

to generate a CA key pair (myCA/cacert.pem and myCA/cakey.pem) and
related files.

Run:

    ./cert.sh rsa 1024

to generate a client/server key pair (myCA/rsacert.pem myCA/rsakey.pem).

You can edit myCA/cert.cnf between runs to tweak the CN and other
certificate attributes.

The main benefit of this code is that everything (including the .cnf
file) is stripped down to the bare essentials, so you can see exactly
what each piece is doing. You can then extend this to meet your needs.

-- 
        Viktor.

Attachment: PKI.tgz
Description: application/tar-gz

Reply via email to