Re: [openssl-users] Validation error on generated csr

2013-03-18 Thread Tim Tassonis
14:07, Tim Tassonis a écrit : Hi I am trying to generate a csr in a c program by having the signing part done by pkcs11 calls, and while I get no errors, the resulting csr fails upon validation: $ openssl req -verify -in wltx.csr verify failure 2948:error:0D07207B:asn1 encoding

Re: [openssl-users] Validation error on generated csr

2013-03-18 Thread Tim Tassonis
Hi Stephen Thanks a lot, that did the trick, the verify now returns ok. Kind regards Tim On 03/18/2013 02:26 PM, Dr. Stephen Henson wrote: On Mon, Mar 18, 2013, Tim Tassonis wrote: Hi Erwann What you have to do it hash your data, prepare an X509_SIG object, set its algor to SHA1

Validation error on generated csr

2013-03-15 Thread Tim Tassonis
Hi I am trying to generate a csr in a c program by having the signing part done by pkcs11 calls, and while I get no errors, the resulting csr fails upon validation: $ openssl req -verify -in wltx.csr verify failure 2948:error:0D07207B:asn1 encoding routines:ASN1_get_object:header too

Re: Validation error on generated csr

2013-03-15 Thread Tim Tassonis
Hi Steve Thanks a lot for your reply. Just another quick question. Do you know by chance an openssl function that would convert the raw sha1 into a digestinfo structure? Kind regards Tim On 03/15/2013 02:36 PM, Dr. Stephen Henson wrote: On Fri, Mar 15, 2013, Tim Tassonis wrote: Hi I

Problems creating csr with openssl/ pkcs11

2013-03-14 Thread Tim Tassonis
Hi all I trying to create a csr (in a c program) that uses a hardware private public key and I am accessing this token by pkcs11. However, the csr is always invalid, with the following message: $ openssl req -verify -in wltx.csr verify failure 1996:error:0D07207B:asn1 encoding

Problems creating csr with openssl/ pkcs11

2013-03-14 Thread Tim Tassonis
Hi all I trying to create a csr (in a c program) that uses a hardware private public key and I am accessing this token by pkcs11. However, the csr is always invalid, with the following message: $ openssl req -verify -in wltx.csr verify failure 1996:error:0D07207B:asn1 encoding

Key length used in SMIME Mails

2004-03-02 Thread Tim Tassonis
Hi I've got to find out the keysize used in an S/MIME encrypted mail. I looked around in the openssl code and tried the following: X509_ALGOR *alg; PKCS7 *p7; int p7_type; BIO *mail_bio *indata; ... p7 = SMIME_read_PKCS7(mail_bio, indata); p7_type = OBJ_obj2nid(p7-type); switch (p7_type) {

CRL Formats

2001-02-01 Thread Tim Tassonis
Hi I've got a question regarding crl formats. Until now, I found two mime types for use with crl's: "application/pkix-crl", which seems to be either a DER or PEM formatted crl as in openssl crl. "application/x-pkcs7-crl", which, I would guess at least by its name, should be a pkcs7 file

Re: Certificate form for LDAP userCertificate

2000-10-16 Thread Tim Tassonis
In a LDAP directory, certificates can be stored as binary data under the attribute "userCertificate". Which of the certificate formats that OpenSSL can produce is the correct one to use for this? You can load a DER encoded x509 certificate with ldapmodify or so. Don't forget to specify

Re: idea and copyright

2000-10-02 Thread Tim Tassonis
In the worst case, can somebody point me to another free simmetric algorithm with a 128 bit key ??? RC4 would be my recommendation. sorry but, according to openssl readme "RC4 is a trademark of RSA Security, so use of this label should perhaps only be used with RSA

Re: bad mac decode in ssl handshake

2000-09-25 Thread Tim Tassonis
al Message - From: "Tim Tassonis" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, September 22, 2000 9:17 AM Subject: bad mac decode in ssl handshake Hi When I try to contact the following SSL site with s_client, I cannot connect: www.genowebpayment.de:443 I have