How to get optional certificate in openssl -
i used openssl create smime.
i have valid certificate.i tried parse certificate using following function
int pkcs12_parse(pkcs12 *p12, const char *pass, evp_pkey **pkey, x509 **cert, stack_of(x509) **ca);
the certificate parsed , able pkey
, cert
values.but ca
comes out null
.
how stack_of(x509)
value certificate. want use stack_of(x509)
value in pkcs7_sign
function.
if ca
comes out null
, have no additional certificates in pkcs12 structure. not need additional certificates - if certificate signed directly ca certificate known recipient, can supply certs = null
pkcs7_sign()
, no additional certificates included in signed message.
Comments
Post a Comment