Skip to content

Commit

Permalink
prevented addition of two id-oracle-pkcs12-trusted-key-usage attribut…
Browse files Browse the repository at this point in the history
…es in PKCS12 files. Fix for github #1945
  • Loading branch information
dghgit committed Dec 24, 2024
1 parent 2c933e0 commit 2018415
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1943,6 +1943,11 @@ private SafeBag createSafeBag(String certId, Certificate cert, boolean overwrite
continue;
}

if (oid.equals(MiscObjectIdentifiers.id_oracle_pkcs12_trusted_key_usage))
{
continue;
}

ASN1EncodableVector fSeq = new ASN1EncodableVector();

fSeq.add(oid);
Expand Down

0 comments on commit 2018415

Please sign in to comment.