String tmpAlias = getKeyAliasInternal(options, tmpKs);
options.log("console.getPrivateKey");
final PrivateKey tmpPk = (PrivateKey) tmpKs.getKey(tmpAlias, options.getKeyPasswdX());
options.log("console.getCertChain");
final Certificate[] tmpChain = tmpKs.getCertificateChain(tmpAlias);
PrivateKeyInfo tmpResult = new PrivateKeyInfo(tmpPk, tmpChain);
return tmpResult;
}