8006946: PKCS12 test failure due to incorrect alias name
Reviewed-by: mullan
This commit is contained in:
parent
355fea6f2a
commit
241fc73e25
@ -2224,11 +2224,11 @@ public final class PKCS12KeyStore extends KeyStoreSpi {
|
|||||||
keyId = "01".getBytes("UTF8");
|
keyId = "01".getBytes("UTF8");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// Trusted certificate
|
||||||
|
if (trustedKeyUsage != null) {
|
||||||
if (alias == null) {
|
if (alias == null) {
|
||||||
alias = getUnfriendlyName();
|
alias = getUnfriendlyName();
|
||||||
}
|
}
|
||||||
// Trusted certificate
|
|
||||||
if (trustedKeyUsage != null) {
|
|
||||||
CertEntry certEntry =
|
CertEntry certEntry =
|
||||||
new CertEntry(cert, keyId, alias, trustedKeyUsage,
|
new CertEntry(cert, keyId, alias, trustedKeyUsage,
|
||||||
attributes);
|
attributes);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user