x509 request attributes

2004-09-30 Thread Paul Forgey
I'm trying to pass an pkcs9_challengePassword in an X509 request object, which appears to be considered an "attribute". So I'm adding it with: X509_REQ_add1_attr_by_NID (req, NID_pkcs9_challengePassword, V_ASN1_T61STRING, "test passphrase", 15); The request gets DER encoded and decoded on the r

PEM_write_X509

2004-09-10 Thread Paul Forgey
I'm writing a rather specialized application doing weird things with certificates. I'm able to retrieve certificates from an X509_LOOKUP object, verify them, signed other certificates with them, etc. But I can't write them to a PEM file. No error occurs if I try, but the result is a small ab