Hi,

I want to write a script to make a CSR using Engine and where the PIN of the card is passed as an argument. I'm using the last stable release of opensc and engine.

On a test linux (Fedora core 5) platform, I've done this:
openssl
engine -t dynamic -pre SO_PATH:/usr/local/lib/engines/engine_pkcs11.so -pre ID:pkcs11 -post PIN:1234 -pre LIST_ADD:1 -pre LOAD -pre MODULE_PATH:/usr/local/lib/opensc-pkcs11.so req -engine pkcs11 -new -key id_50 -keyform engine -out req.pem -text -x509 -subj "/CN=Jo Test"

Even with the PIN passed as argument in the engine command, at the req command I still get a "PKCS#11 token PIN:"... How can avoid it? Do I miss something?

Cheers,

Jean-Pierre

_______________________________________________
opensc-devel mailing list
opensc-devel@lists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-devel

Reply via email to