8223063: Support CNG RSA keys

Reviewed-by: mullan
This commit is contained in:
Weijun Wang 2019-05-14 08:47:13 +08:00
parent b567fe0101
commit 0f56400907
6 changed files with 197 additions and 33 deletions

View file

@ -3578,6 +3578,11 @@ public final class Main {
{
Key key = null;
if (KeyStoreUtil.isWindowsKeyStore(storetype)) {
key = keyStore.getKey(alias, null);
return Pair.of(key, null);
}
if (keyStore.containsAlias(alias) == false) {
MessageFormat form = new MessageFormat
(rb.getString("Alias.alias.does.not.exist"));