demo

command
v0.1.1-0...-9af79c7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2019 License: MIT Imports: 10 Imported by: 0

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

Overview

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL