> 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 line in the cert is 76
> chars
> > in length, except for the last line.  Should the lines be 64-characters
> > long?
> 
> Yes.  The OpenSSL base64 decoder limits input lines to 64 characters.
> 
Nope. The encoder writes 64 (the original PEM spec), but the decoder 
will accept up to 76 (the less-old MIME spec). As one case I hit often,
Java keytool -exportcert writes 76 and openssl reads it just fine.

And the error here is "no start line". *On Windows* that often occurs 
when Windows editors treat text files as Unicode/UTF-8 with  an
invisible "BOM" (Byte Order Mark) at the beginning of the first line.
Try prepending a semantically-meaningless comment line like:

Hello! This is my Key!! Rah Rah Go Key Go!!
-----BEGIN EC PRIVATE KEY-----
MHcCAQEEIAqD7NQvpg74v7Pik4rAIfk/BIQlQa1fbM9BKkHOkKJBoAoGCCqGSM49
AwEHoUQDQgAE/BR1oMSfz4WgklW7t83E0xClrBh0md1Ata8rsPq8VAsB1WDXPXwk
T7WbcXlsyxuyOb7ok8F544xmr+pKreWbHw==
-----END EC PRIVATE KEY-----


______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to