File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed
tests/RobotFramework/tests/pkcs11 Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -99,6 +99,26 @@ Connects to C8y supporting all TLS13 ECDSA signature algorithms
99
99
type=ecdsa curve=secp384r1
100
100
type=ecdsa curve=secp521r1
101
101
102
+ Creates a private key on the PKCS11 token
103
+ Execute Command cmd=softhsm2-util --init-token --free --label create-key-token --pin=123456 --so-pin=123456
104
+
105
+ ${output } = Execute Command
106
+ ... cmd=p11tool --login --set-pin=123456 --list-privkeys "pkcs11:token=create-key-token"
107
+ ... exp_exit_code=!0
108
+ ... strip=True
109
+ ... stdout=False
110
+ ... stderr=True
111
+ Should Be Equal ${output } No matching objects found
112
+
113
+ Set tedge-p11-server Uri value=pkcs11:token=create-key-token
114
+ Execute Command tedge cert create-key
115
+
116
+ ${output } = Execute Command
117
+ ... cmd=p11tool --login --set-pin=123456 --list-privkeys "pkcs11:token=create-key-token"
118
+ Should Contain ${output } Object 0:
119
+
120
+ [Teardown] Set tedge-p11-server Uri value=
121
+
102
122
Ignore tedge.toml if missing
103
123
Execute Command rm -f ./tedge.toml
104
124
${stderr } = Execute Command tedge-p11-server --config-dir . --module-path xx.so exp_exit_code=!0
You can’t perform that action at this time.
0 commit comments