On Thu, Aug 21, 2003, Pierre-Philipp Braun wrote:

> Hi all,
> i'm trying to make a certificate for use with S/MIME into Pine.
> But when i type,
> 
> /usr/pkg/bin/openssl pkcs7 -in pk7 -print_certs -out cert
> 
> i get,
> 
> unable to load PKCS7 object
> 9966:error:0906D066:PEM routines:PEM_read_bio:bad end line:pem_lib.c:762:
> 
> whereas i did like explained there:
> https://www.tbs-internet.com/ssl/cert-smime-signe-unix.html
> with the "-----* PKCS7-----" formatted 'pk7' file.
> BTW i get the same error msg with "-----* PKCS #7 SIGNED DATA-----" format.
> 
> FYI, I'm using openssl-0.9.6gnb2 package on NetBSD.
> 
> Any advice to get around this would be appreciated.
> Thanks in advance

The before the base64 encoded data should be:

-----BEGIN PKCS7-----

and the line  the base64 encoded stuff:

-----END PKCS7-----

make sure this is *exactly* what is there, i.e. make sure there are 5 -'s in
there. That error message means it doesn't like the end line.

This is assuming what you've got is base64 encoded data if it looks like
binary then add the -inform DER switch to the command.

Steve.
--
Dr Stephen N. Henson.
Core developer of the   OpenSSL project: http://www.openssl.org/
Freelance consultant see: http://www.drh-consultancy.demon.co.uk/
Email: [EMAIL PROTECTED], PGP key: via homepage.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to