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'
In section 4 I believe 'server.csr' should be 'ca.csr' (server.csr appears
from nowhere)

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)

I get the following :

./ca.crt: No such file or directory
trying to load CA certificate
14985:error:02001002:system library:fopen:system
lib:bss_file.c:244:fopen('./ca.crt','r')
14985:error:20074002:BIO routines:FILE_CTRL:system lib:bss_file.c:246:
CA verifying: ca.crt <-> CA cert
ca.crt: No such file or directory
15044:error:02001002:system library:fopen:system
lib:bss_file.c:244:fopen('ca.crt','r')
15044:error:20074002:BIO routines:FILE_CTRL:system lib:bss_file.c:246:

With

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.crt (I enter TEST as
the pass phrase and enter all fields as appropriate)
./sign.sh ca.crt (I enter TEST as the pass phrase)

I get the following :

Error reading certificate request in ca.crt
16406:error:0906D06C:PEM routines:PEM_read_bio:no start line:pem_lib.c:566:
CA verifying: ca.crt.crt <-> CA cert
ca.crt.crt: unable to load certificate file
16444:error:0906D06C:PEM routines:PEM_read_bio:no start line:pem_lib.c:566:

I'm running Solaris 2.5.1 and cannot see any problems with the
installation. 'make test' with OpenSSL worked without problem.

Any ideas?

Derek Dawson
UNIX Systems Administrator
Anite Systems GmbH


______________________________________________________________________
Apache Interface to OpenSSL (mod_ssl)                   www.modssl.org
User Support Mailing List                      [EMAIL PROTECTED]
Automated List Manager                            [EMAIL PROTECTED]

Reply via email to