RE: cannot read PEM key file - no start line

2014-09-14 Thread Michael Wojcik
From: owner-openssl-us...@openssl.org [mailto:owner-openssl- us...@openssl.org] On Behalf Of Liz Fall Sent: Sunday, 14 September, 2014 00:33 To: openssl-users@openssl.org Subject: RE: cannot read PEM key file - no start line Thank you, Viktor. Do you have a good recommendation

RE: cannot read PEM key file - no start line

2014-09-14 Thread Liz Fall
- no start line From: owner-openssl-us...@openssl.org [mailto:owner-openssl- us...@openssl.org] On Behalf Of Liz Fall Sent: Sunday, 14 September, 2014 00:33 To: openssl-users@openssl.org Subject: RE: cannot read PEM key file - no start line Thank you, Viktor. Do you have a good recommendation

RE: cannot read PEM key file - no start line

2014-09-13 Thread Dave Thompson
From: owner-openssl-us...@openssl.org On Behalf Of Dave Thompson Sent: Friday, September 12, 2014 04:31 *If* you are now using a legacy-format encrypted private-key (and your original error message suggested you might need some form of private key, which does necessarily mean

RE: cannot read PEM key file - no start line

2014-09-13 Thread Liz Fall
-openssl-us...@openssl.org] On Behalf Of Viktor Dukhovni Sent: Friday, September 12, 2014 7:39 AM To: openssl-users@openssl.org Subject: Re: cannot read PEM key file - no start line On Fri, Sep 12, 2014 at 04:31:13AM -0400, Dave Thompson wrote: *If* you are now using a legacy-format encrypted private

Re: cannot read PEM key file - no start line

2014-09-13 Thread Viktor Dukhovni
On Sat, Sep 13, 2014 at 06:46:01PM -0700, Liz Fall wrote: I did specify the client key file to NULL. Then, I authenticated the client with a user id and password. That worked. Good. I think it is best to stop there for now. Why would the file not have a client private key? [ No such

RE: cannot read PEM key file - no start line

2014-09-13 Thread Liz Fall
read PEM key file - no start line On Sat, Sep 13, 2014 at 06:46:01PM -0700, Liz Fall wrote: I did specify the client key file to NULL. Then, I authenticated the client with a user id and password. That worked. Good. I think it is best to stop there for now. Why would the file not have

Re: cannot read PEM key file - no start line

2014-09-13 Thread Viktor Dukhovni
On Sat, Sep 13, 2014 at 09:32:59PM -0700, Liz Fall wrote: Thank you, Viktor. Do you have a good recommendation? Sorry, have not read any myself. Got there over a couple of decades via a different path, but I am under the impression that at least one decent book on the subject is available.

RE: cannot read PEM key file - no start line

2014-09-12 Thread Dave Thompson
okay. From: owner-openssl-us...@openssl.org [mailto:owner-openssl-us...@openssl.org] On Behalf Of Liz Fall Sent: Wednesday, September 10, 2014 11:20 To: openssl-users@openssl.org Subject: RE: cannot read PEM key file - no start line Hi Dave, Are you saying that the 76 characters per

Re: cannot read PEM key file - no start line

2014-09-12 Thread Viktor Dukhovni
On Fri, Sep 12, 2014 at 04:31:13AM -0400, Dave Thompson wrote: *If* you are now using a legacy-format encrypted private-key (and your original error message suggested you might need some form of private key, which does necessarily mean legacy-format encrypted) yes 76 chars is a

RE: cannot read PEM key file - no start line

2014-09-10 Thread Liz Fall
Subject: RE: cannot read PEM key file - no start line I was half wrong before. The base64 read in EVP_Decode* allows 76. But the PEM parser in PEM_read_bio enforces exactly 64 only for input files that have PEM-encrypt headers which in practice is only encrypted legacy-format privatekey

Re: cannot read PEM key file - no start line

2014-09-10 Thread Jeffrey Walton
On Tue, Sep 9, 2014 at 8:49 PM, Dave Thompson dthomp...@prinpay.com wrote: ... I have and know of no software to create encrypted legacy-format privatekeys other than OpenSSL itself which always writes 64, so I never encountered this before. You can use Crypto++ with the PEM Pack

RE: cannot read PEM key file - no start line

2014-09-09 Thread Liz Fall
certificate Thanks, Liz -Original Message- From: owner-openssl-us...@openssl.org [mailto:owner-openssl-us...@openssl.org] On Behalf Of Viktor Dukhovni Sent: Monday, September 08, 2014 8:28 PM To: openssl-users@openssl.org Subject: Re: cannot read PEM key file - no start line On Mon, Sep 08, 2014

Re: cannot read PEM key file - no start line

2014-09-09 Thread Jeffrey Walton
On Sun, Sep 7, 2014 at 10:26 PM, Liz Fall f...@sbcglobal.net wrote: All, I am getting the following with my client cert when trying to connect to an SSL-enabled MongoDB: 2014-09-03T13:37:56.881-0500 ERROR: cannot read PEM key file:

Re: cannot read PEM key file - no start line

2014-09-09 Thread Viktor Dukhovni
On Tue, Sep 09, 2014 at 04:42:53AM -0700, Liz Fall wrote: Thanks for the info. I will try what you suggested today. However, I am a bit confused by what you are saying - You may need to separately specify a CAfile, or CApath for validating the server certificate. I have the two pem files

RE: cannot read PEM key file - no start line

2014-09-09 Thread Liz Fall
. Thanks for your help, Liz From: owner-openssl-us...@openssl.org [mailto:owner-openssl-us...@openssl.org] On Behalf Of Jeffrey Walton Sent: Tuesday, September 09, 2014 5:09 AM To: OpenSSL Users List Subject: Re: cannot read PEM key file - no start line On Sun, Sep 7, 2014 at 10:26 PM

RE: cannot read PEM key file - no start line

2014-09-09 Thread Dave Thompson
List Subject: Re: cannot read PEM key file - no start line On Sun, Sep 7, 2014 at 10:26 PM, Liz Fall f...@sbcglobal.net wrote: All, I am getting the following with my client cert when trying to connect to an SSL-enabled MongoDB: 2014-09-03T13:37:56.881-0500 ERROR: cannot read PEM

Re: cannot read PEM key file - no start line

2014-09-08 Thread Jeffrey Walton
On Sun, Sep 7, 2014 at 10:26 PM, Liz Fall f...@sbcglobal.net wrote: I am getting the following with my client cert when trying to connect to an SSL-enabled MongoDB: 2014-09-03T13:37:56.881-0500 ERROR: cannot read PEM key file:

Re: cannot read PEM key file - no start line

2014-09-08 Thread Viktor Dukhovni
On Sun, Sep 07, 2014 at 07:26:05PM -0700, Liz Fall wrote: I have checked and verified that there is no whitespace. Also, the BEGIN and END statements look correct. However, each line in the cert is 76 chars in length, except for the last line. Should the lines be 64-characters long? Yes.

Re: cannot read PEM key file - no start line

2014-09-08 Thread Michael Sierchio
On Sun, Sep 7, 2014 at 10:26 PM, Liz Fall f...@sbcglobal.net wrote: I am getting the following with my client cert when trying to connect to an SSL-enabled MongoDB: 2014-09-03T13:37:56.881-0500 ERROR: cannot read PEM key file:

RE: cannot read PEM key file - no start line

2014-09-08 Thread Liz Fall
, 2014 5:42 AM To: openssl-users@openssl.org Subject: Re: cannot read PEM key file - no start line On Sun, Sep 07, 2014 at 07:26:05PM -0700, Liz Fall wrote: I have checked and verified that there is no whitespace. Also, the BEGIN and END statements look correct. However, each line in the cert

Re: cannot read PEM key file - no start line

2014-09-08 Thread Viktor Dukhovni
On Mon, Sep 08, 2014 at 05:03:58PM -0700, Liz Fall wrote: Thank you so much for your response. Do I need to request for a specific certificate that will is base64? No, you can just re-wrap the base64 data you have to 64 characters per line. There are two different 64's here. The size of

RE: cannot read PEM key file - no start line

2014-09-08 Thread Liz Fall
...@openssl.org] On Behalf Of Viktor Dukhovni Sent: Monday, September 08, 2014 5:20 PM To: openssl-users@openssl.org Subject: Re: cannot read PEM key file - no start line On Mon, Sep 08, 2014 at 05:03:58PM -0700, Liz Fall wrote: Thank you so much for your response. Do I need to request

RE: cannot read PEM key file - no start line

2014-09-08 Thread Liz Fall
: owner-openssl-us...@openssl.org [mailto:owner-openssl-us...@openssl.org] On Behalf Of Viktor Dukhovni Sent: Monday, September 08, 2014 5:20 PM To: openssl-users@openssl.org Subject: Re: cannot read PEM key file - no start line On Mon, Sep 08, 2014 at 05:03:58PM -0700, Liz Fall wrote: Thank you so

RE: cannot read PEM key file - no start line

2014-09-08 Thread Dave Thompson
From: owner-openssl-us...@openssl.org On Behalf Of Viktor Dukhovni Sent: Monday, September 08, 2014 08:42 On Sun, Sep 07, 2014 at 07:26:05PM -0700, Liz Fall wrote: I have checked and verified that there is no whitespace. Also, the BEGIN and END statements look correct. However, each

RE: cannot read PEM key file - no start line

2014-09-08 Thread Liz Fall
CERTIFICATE- -Original Message- From: owner-openssl-us...@openssl.org [mailto:owner-openssl-us...@openssl.org] On Behalf Of Dave Thompson Sent: Monday, September 08, 2014 7:29 PM To: openssl-users@openssl.org Subject: RE: cannot read PEM key file - no start line From: owner-openssl-us

Re: cannot read PEM key file - no start line

2014-09-08 Thread Viktor Dukhovni
On Mon, Sep 08, 2014 at 07:44:56PM -0700, Liz Fall wrote: This is what my cert looks like below: What are you saying I should do? Thanks for the clarification. These are the certificates for an intermediate CA and the issuing root CA. Generally, you'd append these to a certificate file with

RE: cannot read PEM key file - no start line

2014-09-08 Thread Liz Fall
clarify this? Thanks, Liz -Original Message- From: owner-openssl-us...@openssl.org [mailto:owner-openssl-us...@openssl.org] On Behalf Of Viktor Dukhovni Sent: Monday, September 08, 2014 7:54 PM To: openssl-users@openssl.org Subject: Re: cannot read PEM key file - no start line On Mon, Sep

Re: cannot read PEM key file - no start line

2014-09-08 Thread Viktor Dukhovni
On Mon, Sep 08, 2014 at 08:14:32PM -0700, Liz Fall wrote: I am trying to connect to a MongoDB SSL-enable database. This is the API: // only really need a PEM on the server side mongo::sslGlobalParams.sslPEMKeyFile = path/to/keyfile.pem; The comment is highly misleading. PEM is a

cannot read PEM key file - no start line

2014-09-07 Thread Liz Fall
All, I am getting the following with my client cert when trying to connect to an SSL-enabled MongoDB: 2014-09-03T13:37:56.881-0500 ERROR: cannot read PEM key file: /users/apps/tstlrn/u019807/DTCD9C3B2F42757.ent.wfb.bank.corp_mongo_wells.pem error:0906D06C:PEM routines:PEM_read_bio:no start