14.10.1 Generating Certificates

Mathieu Isabelle mathieu.isabelle at gmail.com
Wed Nov 10 08:41:53 UTC 2004


Hello,

While trying to find out a solution to the following problem, someone
suggested me to advise you with the issue.

I tried to generate a ssl key following this instruction in the handbook:

# openssl gendsa -des3 -out \
myca.key 1024

That command generated the following result:

1024: No such file or directory
547:error:02001002:system library:fopen:No such file or
directory:/usr/src/crypto/openssl/crypto/bio/bss_file.c:276:fopen('1024','r')
547:error:20074002:BIO routines:FILE_CTRL:system
lib:/usr/src/crypto/openssl/crypto/bio/bss_file.c:278:

After searching a bit I found out that I had to generate a RSA key
prealably with this command:

openssl dsaparam -rand -genkey -out myRSA.key 1024

Then by modifying the first command:

openssl gendsa -des3 -out myca.key myRSA.key

I was able to generate a key correctly.

I am using FreeBSD 5.2.1-RELEASE.

Mathieu



More information about the freebsd-doc mailing list