Re: [openssl-users] Openssl failed to decrypt certificate without \r\n

2017-09-18 Thread Zhang, Lily (USD)
I used OpenSSL 1.0.2h OpenSSL> version OpenSSL 1.0.2h 3 May 2016 Thanks Lily From: openssl-users [mailto:openssl-users-boun...@openssl.org] On Behalf Of Benjamin Kaduk via openssl-users Sent: Monday, September 18, 2017 8:24 PM To: openssl-users@openssl.org; Viktor Dukhovni Subject: Re:

Re: [openssl-users] Openssl failed to decrypt certificate without \r\n

2017-09-18 Thread Benjamin Kaduk via openssl-users
On 09/18/2017 12:59 AM, Viktor Dukhovni wrote: >> On Sep 17, 2017, at 10:23 PM, Zhang, Lily (USD) wrote: >> >> Would you help me to take a look this certificate issue? >> In order to send out the file, I added ".txt" in the file name. Please >> remove it before test it. >>

Re: [openssl-users] Error in X509_check_private_key when using pkcs11 engine (OpenSSL 1.0.2j)

2017-09-18 Thread Anton Gerasimov
On 09/16/2017 12:18 AM, Dr. Stephen Henson wrote: > On Fri, Sep 15, 2017, Anton Gerasimov wrote: > >> So it turns out load_privkey() function of engine_pkcs11.so sets pub_key >> in the returned 'struct ec_key_st' to NULL. Is it a failure inside >> engine_pkcs11.so? >> > Well sort of. OpenSSL

Re: [openssl-users] Openssl failed to decrypt certificate without \r\n

2017-09-18 Thread Zhang, Lily (USD)
I can decrypt the root.cer successfully. And my error of leaf_no_rn.cer is different from you. OpenSSL> x509 -in C:\Temp\leaf_no_rn.cer -text unable to load certificate error in x509 OpenSSL> version OpenSSL 1.0.2h 3 May 2016 OpenSSL> x509 -in C:\Temp\root.cer -text Certificate: Data:

Re: [openssl-users] Openssl failed to decrypt certificate without \r\n

2017-09-18 Thread Viktor Dukhovni
> On Sep 18, 2017, at 3:21 AM, Zhang, Lily (USD) wrote: > > Why it can decrypt attached root.cer, it also has long lines in root.cer? > > The OpenSSL PEM code cannot decode that file. Its lines are too long: $ PS2=""; openssl x509 -subject -noout

Re: [openssl-users] Openssl failed to decrypt certificate without \r\n

2017-09-18 Thread Zhang, Lily (USD)
Hi, Viktor Thanks for your reply. Why it can decrypt attached root.cer, it also has long lines in root.cer? Thanks Lily -Original Message- From: openssl-users [mailto:openssl-users-boun...@openssl.org] On Behalf Of Viktor Dukhovni Sent: Monday, September 18, 2017 2:00 PM To:

Re: [openssl-users] Openssl failed to decrypt certificate without \r\n

2017-09-18 Thread Viktor Dukhovni
> On Sep 17, 2017, at 10:23 PM, Zhang, Lily (USD) wrote: > > Would you help me to take a look this certificate issue? > In order to send out the file, I added ".txt" in the file name. Please remove > it before test it. > > Leaf_no_rn.cer doesn't have \r\n in the BASE64