bad end line:pem_lib.c:762

bad end line:pem_lib.c:762

am 13.11.2002 18:55:11 von Ed Loehr

I just received a new cert from Verisign via email for use in Apache
1.3.27 with mod_ssl-2.8.12-1.3.27. When I cut-n-paste it into a file
(server.cert) and attempt to verify it matches the server key and CSR
by comparing md5 sums, I get the following error:

$ openssl x509 -noout -modulus -in server.cert | openssl md5
unable to load certificate
26567:error:0906D066:PEM routines:PEM_read_bio:bad end
line:pem_lib.c:762:
d41d8cd98f00b204e9800998ecf8427e

I've looked at the cert and it looks identical in form to the
snakeoil certs that come with Apache/modssl. This is with openssl
0.9.6g.

Any clues?

Regards,
Ed Loehr
____________________________________________________________ __________
Apache Interface to OpenSSL (mod_ssl) www.modssl.org
User Support Mailing List modssl-users@modssl.org
Automated List Manager majordomo@modssl.org

Re: bad end line:pem_lib.c:762

am 13.11.2002 20:41:33 von Ed Loehr

On Wednesday 13 November 2002 12:17 pm, you wrote:
>
> $ openssl x509 -noout -modulus -in server.cert | openssl md5
> unable to load certificate
> 26567:error:0906D066:PEM routines:PEM_read_bio:bad end
> line:pem_lib.c:762:
> d41d8cd98f00b204e9800998ecf8427e


D'oh! An unfaithful cut-n-paste added an extraneous space and left
out a newline at the end.
____________________________________________________________ __________
Apache Interface to OpenSSL (mod_ssl) www.modssl.org
User Support Mailing List modssl-users@modssl.org
Automated List Manager majordomo@modssl.org