command
Version:
v0.1.1-0...-9af79c7
Opens a new window with list of versions in this module.
Published: Apr 23, 2019
License: MIT
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Demo Program
A demo program using a PKCS#11-protected key to authenticate a web server.
To use with nShield PKCS#11, assuming an OCS-protected key:
generatekey -b pkcs11req protect=token type=rsa size=2048 plainname=demo \
selfcert=yes embedsavefile=hkey.pem digest=sha256 \
x509country=GB x509province=England x509locality=Rutland x509org=org x509orgunit=any \
x509dnscommon=www.example.com
CKNFAST_DEBUG=2 CRYPTO11_CONFIG_PATH=../configs/config.nshield go run server.go
plainname
corresponds to CKA_LABEL.
Documentation
¶
A demo program using a PKCS#11-protected key to authenticate a web server.
To use with nShield PKCS#11, assuming an OCS-protected key:
generatekey -b pkcs11req protect=token type=rsa size=2048 plainname=demo \
selfcert=yes embedsavefile=hkey.pem digest=sha256 \
x509country=GB x509province=England x509locality=Rutland x509org=org x509orgunit=any \
x509dnscommon=www.example.com
CKNFAST_DEBUG=2 CRYPTO11_CONFIG_PATH=../configs/config.nshield go run server.go
'plainname' corresponds to CKA_LABEL.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.