Error verifying a pkcs7

2002-11-20 Thread MALA_SOMBRA
Hi all, I have an error when I've tryed to verify a PKCS#7 using openssl smime. openssl smime -inform PEM -in firma.p7 -verify -content firma1.txt - certfile crt.pem -CAfile cacert.pem And I get this error: ... firma1.txt content ... Verification failure 21381:error:21071065:PKCS7 routines:PKCS7

Error signing

2002-11-20 Thread MALA_SOMBRA
Hi all, I'm trying to sign a file with a key, but I get this error: openssl rsautl -sign -in texto.txt -inkey key.pem -out firma.p7 Enter PEM pass phrase: RSA operation error 9183:error:0406C06E:rsa routines:RSA_padding_add_PKCS1_type_1:data too large for key size:rsa_pk1.c:73: Howe can I solve

Get the public key from a cert

2002-11-14 Thread MALA_SOMBRA
Hi, I'm trying to get the public key using (from opensslman.odf): openssl x509 −in test/testx509.pem −pubout −noout >pubkey.pem But it doesn't work. anyone knows how can I do it? Thanks Juanan __ OpenSSL Project

add an attribute to the subject

2002-10-29 Thread MALA_SOMBRA
Hello all, I'm trying to add an attibute to a cert's subject. This is an example: Subject: 1.2.3.4.5=A000, C=ES, O=pepe S.A., CN=yo [EMAIL PROTECTED] But I don't no how to do it. I've tryed to do it writting in the openssl.cnf this: [ policy_match ] countryName = match localit