From owner-freebsd-doc@FreeBSD.ORG Wed Nov 10 08:41:53 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 E54BC16A4CE for ; Wed, 10 Nov 2004 08:41:52 +0000 (GMT) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.203]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5668143D48 for ; Wed, 10 Nov 2004 08:41:52 +0000 (GMT) (envelope-from mathieu.isabelle@gmail.com) Received: by rproxy.gmail.com with SMTP id a36so156554rnf for ; Wed, 10 Nov 2004 00:41:51 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding; b=dF1wTymUxr8VeawuhKyfcR8Nt0PtIVBZ4KwS/iSu2VJYLdqi5f7nZ3kOaoToPPmE0NTF+x+NrXTG4bPgtOkqALCPUe6A6DlxgW0ny5adHDP7chz5T/PaI36RzyWE4BBr+g5mXDKuR/w9mJ8BpiWxDaUQ5YYKHSZp9BRZoUyNiMo= Received: by 10.38.15.8 with SMTP id 8mr226559rno; Wed, 10 Nov 2004 00:41:51 -0800 (PST) Received: by 10.38.66.70 with HTTP; Wed, 10 Nov 2004 00:41:50 -0800 (PST) Message-ID: <5809fc19041110004143a922ba@mail.gmail.com> Date: Wed, 10 Nov 2004 03:41:50 -0500 From: Mathieu Isabelle To: doc@FreeBSD.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: 14.10.1 Generating Certificates X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Mathieu Isabelle List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Nov 2004 08:41:53 -0000 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