diff options
author | Patrick Vacek <patrickvacek@gmail.com> | 2018-10-01 16:49:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-01 16:49:31 +0200 |
commit | a9d43a87ed1cc6b61257299d534b7922644c6ecd (patch) | |
tree | 0dfbf98077d7701343bdda2f61532f5d4b27db43 /recipes-support/softhsm-testtoken/files/createtoken.sh | |
parent | 9476fa542cc7bc7695c58b54398b104f8e7023b6 (diff) | |
parent | e689954dc9a07f1ceef65c797056f805daad90a9 (diff) | |
download | meta-updater-a9d43a87ed1cc6b61257299d534b7922644c6ecd.tar.gz |
Merge pull request #383 from advancedtelematic/feat/OTA-719/nodeploy
Add SOTA_DEPLOY_CREDENTIALS variable to control whether the built image should be provisioned
Diffstat (limited to 'recipes-support/softhsm-testtoken/files/createtoken.sh')
-rw-r--r-- | recipes-support/softhsm-testtoken/files/createtoken.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/recipes-support/softhsm-testtoken/files/createtoken.sh b/recipes-support/softhsm-testtoken/files/createtoken.sh index b142945..fa4569d 100644 --- a/recipes-support/softhsm-testtoken/files/createtoken.sh +++ b/recipes-support/softhsm-testtoken/files/createtoken.sh | |||
@@ -13,7 +13,8 @@ fi | |||
13 | mkdir -p /var/lib/softhsm/tokens | 13 | mkdir -p /var/lib/softhsm/tokens |
14 | softhsm2-util --init-token --slot 0 --label "Virtual token" --pin 1234 --so-pin 1234 | 14 | softhsm2-util --init-token --slot 0 --label "Virtual token" --pin 1234 --so-pin 1234 |
15 | 15 | ||
16 | softhsm2-util --import /var/sota/import/pkey.pem --label "pkey" --id 02 --token 'Virtual token' --pin 1234 | 16 | openssl pkcs8 -topk8 -inform PEM -outform PEM -nocrypt -in /var/sota/import/pkey.pem -out /var/sota/import/pkey.p8 |
17 | softhsm2-util --import /var/sota/import/pkey.p8 --label "pkey" --id 02 --token 'Virtual token' --pin 1234 | ||
17 | openssl x509 -outform der -in /var/sota/import/client.pem -out /var/sota/import/client.der | 18 | openssl x509 -outform der -in /var/sota/import/client.pem -out /var/sota/import/client.der |
18 | pkcs11-tool --module=/usr/lib/softhsm/libsofthsm2.so --id 1 --write-object /var/sota/import/client.der --type cert --login --pin 1234 | 19 | pkcs11-tool --module=/usr/lib/softhsm/libsofthsm2.so --id 1 --write-object /var/sota/import/client.der --type cert --login --pin 1234 |
19 | 20 | ||