fix gen-key parameters
This commit is contained in:
parent
8977420bc7
commit
81ec9854f3
1 changed files with 2 additions and 3 deletions
|
|
@ -63,15 +63,14 @@ rlJournalStart
|
|||
rlRun -s "p11sak ls-key 3des --slot $SLOT --pin $pkcsUSER_PIN"
|
||||
rlAssertGrep "3DES | 3des_key" $rlRun_LOG
|
||||
|
||||
rlRun -s "p11sak gen-key rsa 2048 --exponent 257 --slot $SLOT --pin $pkcsUSER_PIN --label rsa_key"
|
||||
rlRun -s "p11sak gen-key rsa 2048 --exponent 65537 --slot $SLOT --pin $pkcsUSER_PIN --label rsa_key"
|
||||
rlAssertGrep "Generate asymmetric key: RSA_PKCS" $rlRun_LOG
|
||||
rlAssertGrep "Asymmetric key pair generation successful!" $rlRun_LOG
|
||||
rlRun -s "p11sak ls-key rsa --slot $SLOT --pin $pkcsUSER_PIN"
|
||||
rlAssertGrep "public RSA | rsa_key:pub" $rlRun_LOG
|
||||
rlAssertGrep "private RSA | rsa_key:prv" $rlRun_LOG
|
||||
|
||||
# The soft token does not support EC mechanisms right now.
|
||||
rlRun -s "p11sak gen-key ec prime192 --slot $SLOT --pin $pkcsUSER_PIN --label ec_key" 112,64
|
||||
rlRun -s "p11sak gen-key ec prime256v1 --slot $SLOT --pin $pkcsUSER_PIN --label ec_key"
|
||||
rlAssertGrep "Generate asymmetric key: EC" $rlRun_LOG
|
||||
rlRun -s "p11sak ls secret --long --slot $SLOT --pin $pkcsUSER_PIN"
|
||||
rlAssertGrep "Label: aes_key" $rlRun_LOG
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue