From 1f7e7aa14ca88fed39636bb5164731e955000762 Mon Sep 17 00:00:00 2001 From: Pol Henarejos <55573252+polhenarejos@users.noreply.github.com> Date: Sun, 13 Mar 2022 22:14:56 +0100 Subject: [PATCH] Update usage.md --- doc/usage.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/doc/usage.md b/doc/usage.md index e715e3d..b5b9e79 100644 --- a/doc/usage.md +++ b/doc/usage.md @@ -175,6 +175,20 @@ Certificate: 0b:08 ``` +The resulting file `cert.pem` contains the signed certificate in PEM format. Convert it into DER format and load it into the Pico HSM: + +``` +$ openssl x509 -in cert.pem -out cert.der -outform der +$ pkcs11-tool -l --pin 648219 --write-object cert.der --type cert --id 1 +Using slot 0 with a present token (0x0) +Created certificate: +Certificate Object; type = X.509 cert + label: Certificate + subject: DN: C=ES, ST=Some-State, O=Internet Widgits Pty Ltd, CN=patata.com + ID: 01 +``` + +