On Thu, Jun 24, 1999, [EMAIL PROTECTED] wrote:
> I would like to create and use my own CA and am having difficulty following
> the instructions detailed at
> http://www.modssl.org/docs/2.3/ssl_faq.html#ToC18
>
> I'm using Apache 1.3.6; mod_ssl-2.3.5-1.3.6 and OpenSSL 0.9.3a
>
> Firstly I believe the documentation on the above page to incorrect.
>
> In section 2 I believe 'ca.crt' should be 'ca.csr'
No, the -x509 on the req command generated a cert instead of a CSR.
> In section 4 I believe 'server.csr' should be 'ca.csr' (server.csr appears
> from nowhere)
Correct. server.csr is a _server_ CSR. The question discusses how to create a
CA cert and finally says now you can use it to sign a server cert this way.
The server.csr is just an example. But perhaps the text wasn't clear enough.
> I have tried the following both as a regular user and as root and using all
> possible combinations of .csr and .crt I can think of!
>
> With
>
> mkdir /tmp/ssl
> chmod 700 /tmp/ssl
> PATH=/usr/bin:/usr/sbin:/opt/apache+SSL/bin
> export PATH
> cd /tmp/ssl
> cp /tmp/sign.sh . (from the mod_ssl distribution)
> openssl genrsa -des3 -out ca.key 1024 (I use TEST for the pass phrase)
> openssl req -new -x509 -days 365 -key ca.key -out ca.csr (I enter TEST as
> the pass phrase and enter all fields as appropriate)
> ./sign.sh ca.csr (I enter TEST as the pass phrase)
No, no: in ca.csr now is a cert and not a CSR for you and this cannot work.
You intermixed the CSR and CRT generation. First, start generating a
server.csr as mentioned in the FAQ one Q&A before. Then do again _exactly_ was
is given under the CA-related question we talk about. It works fine, I've
tested it again.
OTOH:
1. For easy generating a server certificate and CA you can use
"make certificate TYPE=custom" when installing mod_ssl.
2. For a better script than sign.sh there is a cca.sh. It's for client certs,
but with minimal changes it also works for server certs, of course.
Ralf S. Engelschall
[EMAIL PROTECTED]
www.engelschall.com
______________________________________________________________________
Apache Interface to OpenSSL (mod_ssl) www.modssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]