Skip to content
This repository was archived by the owner on Apr 10, 2025. It is now read-only.

Commit ba901c0

Browse files
authored
GeneXusXmlSignature - Add Issuer serial to xml signature when using KeyInfoType X509Certificate (#77)
1 parent fb14e05 commit ba901c0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

GeneXusXmlSignature/src/main/java/com/genexus/dsig/XmlDSigSigner.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,7 @@ private String Sign(Document xmlInput, PrivateKeyManager key, CertificateX509 ce
371371
try {
372372
X509Certificate x509Certificate = certificate.Cert();
373373
X509Data x509data = new X509Data(sig.getDocument());
374+
x509data.addIssuerSerial(x509Certificate.getIssuerDN().getName(), x509Certificate.getSerialNumber());
374375
x509data.addSubjectName(x509Certificate);
375376
x509data.addCertificate(x509Certificate);
376377
sig.getKeyInfo().add(x509data);

0 commit comments

Comments
 (0)