Marek Marcola wrote:

First up...

server167# ls
mrtablecloth-vi.com.crt mrtablecloth-vi.com.csr mrtablecloth-vi.com.pem
private.key

> I suggest:
>  - check that certificate is readable with:
>       $ openssl x509 -in cert.pem -text -noout
>   
server167# openssl x509 -in mrtablecloth-vi.com.pem -text -noout
unable to load certificate
67298:error:0906D06C:PEM routines:PEM_read_bio:no start
line:/usr/src/secure/lib/libcrypto/../../../crypto/openssl/crypto/pem/pem_lib.c:637:Expecting:
TRUSTED CERTIFICATE

>  - remove all text up to "-----BEGIN CERT ..." line
>       (some libraries do not like this human readable info)
>   
Did that and got the same above results
>  - check if you have compatible cert and key:
>       $ openssl x509 -in cert.pem -modulus -noout
>       $ openssl rsa -in key.pem -modulus -noout
>   
server167# openssl rsa -in key.pem -modulus -noout
Error opening Private Key key.pem
67421:error:02001002:system library:fopen:No such file or
directory:/usr/src/secure/lib/libcrypto/../../../crypto/openssl/crypto/bio/bss_file.c:278:fopen('key.pem','r')
67421:error:20074002:BIO routines:FILE_CTRL:system
lib:/usr/src/secure/lib/libcrypto/../../../crypto/openssl/crypto/bio/bss_file.c:280:
unable to load Private Key

Looks like I have a number of problems ;) Thanks for this excellent
help. Please help me understand what to do about the trusted cert and
why the private key won't load.
TIA,
beno
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to