ENGINE_init fails on TPM engine

2019-10-16 Thread Yichun Ding
openssl version: *1.0.1e* During reboot, the following code is used to set up the tpm engine: ENGINE_load_builtin_engines(); e = ENGINE_by_id("tpm"); if(!e) { /* the engine isn't available */ ERR("ENGINE_by_id failed."); ERR_print_errors_fp(stderr);

pkcs12 password for openssl

2014-08-12 Thread Yichun Ding
Hi, I would like to know if I can always pass the export password of the .p12 client certificate to openssl without worrying about the pass phrase that needs to be set on generating the .p12 file. I looked function int PKCS12_parse(PKCS12 *p12, const char *pass, EVP_PKEY **pkey, X509 **cert,