Skip to content

Commit

Permalink
fix createUserNotice parameter order
Browse files Browse the repository at this point in the history
The usernotice certificate policy extensions qualifier can contain an
organizationname, noticenumbers and explicittext field. The explicittext
and noticenumbers fields are not handled correctly, causing the error
"wrong notice numbers" when submitting a CSR on a certificate profile
that contains a value in explicittext.
  • Loading branch information
jmisset-cb authored and edewata committed Nov 7, 2024
1 parent 847ddbc commit 62d2052
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ public void setValue(String name, Locale locale,
+ i + SEPARATOR + CONFIG_PREFIX1 + j + SEPARATOR
+ CONFIG_USERNOTICE_TEXT);
org.mozilla.jss.netscape.security.x509.PolicyQualifierInfo qualifierInfo = createUserNotice(orgName,
explicitText, noticenumbers);
noticenumbers, explicitText);
if (qualifierInfo != null)
policyQualifiers.add(qualifierInfo);
}
Expand Down Expand Up @@ -703,7 +703,7 @@ public CertificatePoliciesExtension createExtension() throws EProfileException {
String explicitText = substore1.getString(CONFIG_USERNOTICE_TEXT);

PolicyQualifierInfo qualifierInfo = createUserNotice(orgName,
explicitText, noticenumbers);
noticenumbers, explicitText);

if (qualifierInfo != null) {
policyQualifiers.add(qualifierInfo);
Expand Down

0 comments on commit 62d2052

Please sign in to comment.