example for selfsigned cert

This commit is contained in:
Klas Lindfors
2014-02-10 13:31:20 +01:00
parent 6eb9572056
commit 6889bd09e2
+8 -2
View File
@@ -85,17 +85,23 @@ Example Usage
For help text on all commands --help can be given to the command, for more For help text on all commands --help can be given to the command, for more
output --verbose or --verbose=2 may be added. output --verbose or --verbose=2 may be added.
Generate a new ECC-P256 key on device in slot 9a, will send the public Generate a new ECC-P256 key on device in slot 9a, will print the public
key on stdout: key on stdout:
yubico-piv-tool -s 9a -A ECCP256 -a generate yubico-piv-tool -s 9a -A ECCP256 -a generate
Generate a certificate request with public key given on stdin, will give Generate a certificate request with public key from stdin, will print
the resulting request on stdout: the resulting request on stdout:
yubico-piv-tool -s 9a -S '/CN=foo/OU=test/O=example.com/' -P 123456 \ yubico-piv-tool -s 9a -S '/CN=foo/OU=test/O=example.com/' -P 123456 \
-a verify -a request -a verify -a request
Generate a self-signed certificate with publick key from stdin, will print
the certificate, for later import, on stdout:
yubico-piv-tool -s 9a -S '/CN=bar/OU=test/O=example.com/' -P 123456 \
-a verify -a selfsign
Set a random chuid, import a key and import a certificate from a PKCS12 Set a random chuid, import a key and import a certificate from a PKCS12
file with password test, into slot 9c: file with password test, into slot 9c: