change function
This commit is contained in:
parent
c48e08e9c2
commit
01f5325468
1 changed files with 1 additions and 1 deletions
|
@ -858,7 +858,7 @@ token(){
|
|||
|
||||
token-extract-pubkey() {
|
||||
if pkcs11-tool --module $P11M --list-token-slots >&2 ;then
|
||||
ssh-keygen -i -m pkcs8 -f <(pkcs11-tool --module $P11M -r --type pubkey $1 $2 |openssl rsa -pubin -inform DER )
|
||||
ssh-keygen -i -m pkcs8 -f <(pkcs11-tool --module $P11M -r --type pubkey ${1:---label} ${1} |openssl rsa -pubin -inform DER )
|
||||
if [ $? -gt 0 ] ; then
|
||||
token-list-objects
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue