14.10.1 Generating Certificates

Tom Rhodes trhodes at FreeBSD.org
Wed Nov 10 13:16:04 UTC 2004


On Wed, 10 Nov 2004 03:41:50 -0500
Mathieu Isabelle <mathieu.isabelle at gmail.com> wrote:

> Hello,

Hi!

> 
> 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:

Yes, I recently noticed this too.  The examples worked (if I
didn't add a typo by mistake) on my 4.10 box.  I'll dig into
this.

> 
> 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.

Thanks for the hints!

-- 
Tom Rhodes



More information about the freebsd-doc mailing list