From owner-freebsd-doc@FreeBSD.ORG Wed Nov 10 13:16:04 2004 Return-Path: Delivered-To: freebsd-doc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1B28C16A4CE for ; Wed, 10 Nov 2004 13:16:04 +0000 (GMT) Received: from pittgoth.com (14.zlnp1.xdsl.nauticom.net [209.195.149.111]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9763B43D1D for ; Wed, 10 Nov 2004 13:16:03 +0000 (GMT) (envelope-from trhodes@FreeBSD.org) Received: from localhost (64-144-75-99.client.dsl.net [64.144.75.99]) (authenticated bits=0) by pittgoth.com (8.12.10/8.12.10) with ESMTP id iAADG12M098794 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 10 Nov 2004 08:16:01 -0500 (EST) (envelope-from trhodes@FreeBSD.org) Date: Wed, 10 Nov 2004 08:15:52 -0500 From: Tom Rhodes To: Mathieu Isabelle Message-ID: <20041110081552.379f2906@localhost> In-Reply-To: <5809fc19041110004143a922ba@mail.gmail.com> References: <5809fc19041110004143a922ba@mail.gmail.com> X-Mailer: Sylpheed-Claws 0.9.12b (GTK+ 1.2.10; i386-portbld-freebsd5.3) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit cc: doc@FreeBSD.org Subject: Re: 14.10.1 Generating Certificates X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Nov 2004 13:16:04 -0000 On Wed, 10 Nov 2004 03:41:50 -0500 Mathieu Isabelle 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