Date: Wed, 10 Nov 2004 08:15:52 -0500 From: Tom Rhodes <trhodes@FreeBSD.org> To: Mathieu Isabelle <mathieu.isabelle@gmail.com> Cc: doc@FreeBSD.org Subject: Re: 14.10.1 Generating Certificates Message-ID: <20041110081552.379f2906@localhost> In-Reply-To: <5809fc19041110004143a922ba@mail.gmail.com>
index | next in thread | previous in thread | raw e-mail
On Wed, 10 Nov 2004 03:41:50 -0500
Mathieu Isabelle <mathieu.isabelle@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
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041110081552.379f2906>
