|| command == Command.CERTREQ
|| command == Command.KEYPASSWD
|| command == Command.SELFCERT
// if keystore contains alias, import of a certificate reply
// is considered, otherwise password is unnecessary.
|| (command == Command.IMPORT && keyStore.containsAlias(alias)))) {
param.setKeyPass(tryStorePassAsKeyPass(keyStore, alias, param
.getStorePass()));
}
switch (command) {