Skip to content

Commit

Permalink
Update CMCRequest to support hex revRequest.serial
Browse files Browse the repository at this point in the history
  • Loading branch information
edewata committed Jun 6, 2023
1 parent c725d16 commit 602a238
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@
import org.mozilla.jss.pkix.primitive.SubjectPublicKeyInfo;
import org.mozilla.jss.util.Password;

import com.netscape.certsrv.dbs.certdb.CertId;
import com.netscape.cmsutil.crypto.CryptoUtil;

/**
Expand Down Expand Up @@ -1184,7 +1185,8 @@ private static int addRevRequestAttr(int bpid, SEQUENCE seq,
System.out.println(method + "revocation reason must be supplied");
System.exit(1);
}
INTEGER snumber = new INTEGER(revRequestSerial);
CertId certId = new CertId(revRequestSerial);
INTEGER snumber = new INTEGER(certId.toBigInteger());
ENUMERATED reason = toCRLReason(revRequestReason);

if ((revRequestSharedSecret != null) && (revRequestSharedSecret.length() > 0)) {
Expand Down

0 comments on commit 602a238

Please sign in to comment.