[pkg-opensc-commit] [engine-pkcs11] 108/152: Add OpenSSL Configuration

Eric Dorland eric at moszumanska.debian.org
Mon Oct 19 03:11:22 UTC 2015


This is an automated email from the git hooks/post-receive script.

eric pushed a commit to branch master
in repository engine-pkcs11.

commit 0c93ddba34ada2393c6776dc3736e4c5bd35eecc
Author: Ludovic Rousseau <ludovic.rousseau+github at gmail.com>
Date:   Thu Jan 1 16:09:48 2015 +0100

    Add OpenSSL Configuration
    
    Again thanks to Petr Pisar email http://sourceforge.net/p/opensc/mailman/message/33195530/
---
 README.md | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/README.md b/README.md
index c090aec..f21e8e8 100644
--- a/README.md
+++ b/README.md
@@ -48,3 +48,24 @@ into any software supporting PKCS#11.
 Unfortunatelly, OpenSSL does not support PKSC#11 (yet). OpenSSL has the engine
 API only (like Windows have CryproAPI). Therefore the engine_pkcs11 exists
 which encapsulated PKCS#11 into the OpenSSL engine API.
+
+## OpenSSL Configuration
+
+To configure OpenSSL to know about the engine and to use OpenSC PKCS#11 module
+by the engine_pkcs11, you add something like this into your global OpenSSL
+configuration file (``/etc/ssl/openssl.cnf`` probably):
+
+```
+[engine_section]
+pkcs11 = pkcs11_section
+
+[pkcs11_section]
+engine_id = pkcs11
+dynamic_path = /usr/lib/engines/engine_pkcs11.so
+MODULE_PATH = /usr/lib/opensc-pkcs11.so
+init = 0
+```
+
+The dynamic_path value is the engine_pkcs11 plug-in, the MODULE_PATH value is
+the OpenSC PKCS#11 plug-in. The engine_id value is an arbitrary identifier for
+OpenSSL applications to select the engine by the identifier.

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-opensc/engine-pkcs11.git



More information about the pkg-opensc-commit mailing list