Re: [openssl-users] Payload-checksum in PEM?

2018-03-08 Thread Viktor Dukhovni
> On Mar 8, 2018, at 11:52 AM, e...@coderhacks.com wrote: > > I have a certificate (cer.txt; content is enclosed with ---BEGIN/END > CERTIFICATE---). > I can get the public-key out of that. (pubkey.txt; content is enclosed > ---BEGIN/END PUBLIC KEY---). > I have the PEM (pem.txt; content is en

Re: [openssl-users] Payload-checksum in PEM?

2018-03-08 Thread e...@coderhacks.com
Thanks for your help! But I am not sure I do fully understand that - not doing that every day. Please one more hint - thanks. I have a certificate (cer.txt; content is enclosed with ---BEGIN/END CERTIFICATE---). I can get the public-key out of that. (pubkey.txt; content is enclosed ---BEGIN/EN

Re: [openssl-users] Need help regarding openssl errror

2018-03-08 Thread binod kumar via openssl-users
Thanks a lot Matt and Wouter for taking time to look in to this problem and decoding this error code for me. I will try to analyze wireshark log and find that what is causing this error. Will also try to use  ERR_load_crypto_strings() in the code. Thanks again for quick help :) . Regards,Binod K

Re: [openssl-users] Payload-checksum in PEM?

2018-03-08 Thread Viktor Dukhovni
> On Mar 8, 2018, at 11:25 AM, e...@coderhacks.com wrote: > > # openssl cms -sign -in myfile.txt -md md5 -signer cer.txt -inkey key.txt > -outform PEM > pem.txt > > # md5sum myfile.txt > > Can I expect to find the md5sum checksum somewhere in the ASN1 of pem.txt??? > > # openssl asn1parse -i

[openssl-users] Payload-checksum in PEM?

2018-03-08 Thread e...@coderhacks.com
Hi! I have a verification-error in a SMIME-message and I try to check manually the checksums of the payload. Here is my strategy - but I do not know it is even possible. # openssl cms -sign -in myfile.txt -md md5 -signer cer.txt -inkey key.txt -outform PEM > pem.txt # md5sum myfile.txt C

Re: [openssl-users] Need help regarding openssl errror

2018-03-08 Thread Wouter Verhelst
This type of error message is shown when the error strings haven't been loaded. You can fix that by way of the ERR_load_crypto_strings() call. On 08-03-18 14:14, binod kumar via openssl-users wrote: > Hello openssl users, > > Need you help understanding the openssl error > "*error:140760FC:lib(20

Re: [openssl-users] Need help regarding openssl errror

2018-03-08 Thread Matt Caswell
On 08/03/18 13:14, binod kumar via openssl-users wrote: > Hello openssl users, > > Need you help understanding the openssl error > "*error:140760FC:lib(20):func(118):reason(252)*".  I am using SSL server > on Windows machine and am successfully able to connect and make requests > to this server

[openssl-users] Need help regarding openssl errror

2018-03-08 Thread binod kumar via openssl-users
Hello openssl users, Need you help understanding the openssl error "error:140760FC:lib(20):func(118):reason(252)".  I am using SSL server on Windows machine and am successfully able to connect and make requests to this server from other Windows machine. But when requests are being made with same