You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pki-server instance-externalcert-add command will prompt for the password when token name is invalid. It should throws the error like no such token.
Steps to Reproduce:
1. pki-server instance-externalcert-add -i topology-02-CA
--cert-file /tmp/tempCert.pem --trust-args ',,'
--nickname user --token asodjfl
2. It imports the certificate in the CA's alias directory.
3. If certificate is manually deleted (using certutil) and again try to add
then it shows following result :
pki-server instance-externalcert-add -i topology-02-CA
--cert-file /tmp/tempCert.pem --trust-args ',,'
--nickname user --token asodjfl
ERROR: Certificate already imported for instance topology-02-CA.
Actual results:
Enter password for asodjfl:
certutil: could not find the slot asodjfl: SEC_ERROR_NO_TOKEN:
The security card or token does not exist, needs to be initialized,
or has been removed.
-------------------------------------------------
Certificate imported for instance topology-02-CA.
-------------------------------------------------
Expected results:
It should throw the error if token is invalid,
and not show the certificate imported message.
The text was updated successfully, but these errors were encountered:
This issue was migrated from Pagure Issue #2842. Originally filed by mharmsen (@mharmsen) on 2017-10-25 20:18:53:
pki-server instance-externalcert-add command will prompt for the password when token name is invalid. It should throws the error like no such token.
Steps to Reproduce:
Actual results:
Expected results:
The text was updated successfully, but these errors were encountered: