From owner-freebsd-questions@FreeBSD.ORG Tue Dec 7 18:38:01 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4663D16A4CE for ; Tue, 7 Dec 2004 18:38:01 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id E6C5D43D58 for ; Tue, 7 Dec 2004 18:38:00 +0000 (GMT) (envelope-from joshua.lokken@gmail.com) Received: by wproxy.gmail.com with SMTP id 69so147000wri for ; Tue, 07 Dec 2004 10:38:00 -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:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=cI2iimRxgcI9eVuoiJGEpIhWCf4cBZKXD8W+vCHPyrDydGGeIs4a9OdiEZuLK9eJmyNqw7vfUqo/nYg7utany9O7rJFjOkXF5Ws6X2DMdZbtAbCg0nE7frhcGGWzL8Ut/gAzA6jhy1PNENUDVYS77pZTmJ4Xkkhg70yyce6aujQ= Received: by 10.54.6.54 with SMTP id 54mr366389wrf; Tue, 07 Dec 2004 10:05:31 -0800 (PST) Received: by 10.54.11.34 with HTTP; Tue, 7 Dec 2004 10:05:27 -0800 (PST) Message-ID: Date: Tue, 7 Dec 2004 12:05:27 -0600 From: Joshua Lokken To: Jermaine McBean In-Reply-To: <41B5CF18.50003@pace.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <41B5CF18.50003@pace.edu> cc: freebsd-questions@freebsd.org Subject: Re: openssl No such file or directory X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Joshua Lokken List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Dec 2004 18:38:01 -0000 On Tue, 07 Dec 2004 10:41:12 -0500, Jermaine McBean wrote: > I installed Openssl from the prots collection. When I try to generate > key files i get this error > > pc1# openssl gendsa -des3 -out \ > ? myca.key 1024 > 1024: No such file or directory > 46701:error:02001002:system library:fopen:No such file or > > I also ran openssl verify -CAfile ca.crt ca.crt command and i get this > Error loading file ca.crt > 46724:error:02001002:system library:fopen:No such file or > directory:/usr/src/secure/lib/libcrypto/../../../crypto/openssl/crypto/bio/bss_file.c:104:fopen('ca.crt','r') > 46724:error:2006D080:BIO routines:BIO_new_file:no such > file:/usr/src/secure/lib/libcrypto/../../../crypto/openssl/crypto/bio/bss_file.c:107: > 46724:error:0B084002:x509 certificate > routines:X509_load_cert_crl_file:system > lib:/usr/src/secure/lib/libcrypto/../../../crypto/openssl/crypto/x509/by_file.c:274: > usage: verify [-verbose] [-CApath path] [-CAfile file] [-purpose > purpose] [-crl_check] [-engine e] cert1 cert2 ... > > any help Perhaps not, but from http://www.openssl.org/docs/apps/genrsa.html# "The gendsa command generates a DSA private key from a DSA parameter file (which will be typically generated by the openssl dsaparam command)." openssl gendsa [-out filename] [-des] [-des3] [-idea] [-rand file(s)] [-engine id] [paramfile] openssl verify [-CApath directory] [-CAfile file] [-purpose purpose] [-untrusted file] [-help] [-issuer_checks] [-verbose] [-] [certificates] So, like another reply mentioned, you've got the syntax wrong. -- Joshua Lokken Open Source Advocate