Skip to content

Commit 6fa9716

Browse files
authored
Merge pull request #440 from augjoh/master
[CRL] Allow alternative algorithms to sign CRLs
2 parents 591bb2c + 01c57bb commit 6fa9716

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/asn1x509-1.0.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1370,7 +1370,7 @@ KJUR.asn1.x509.CRL = function(params) {
13701370
this.sign = function() {
13711371
this.asn1SignatureAlg = this.asn1TBSCertList.asn1SignatureAlg;
13721372

1373-
sig = new KJUR.crypto.Signature({'alg': 'SHA1withRSA', 'prov': 'cryptojs/jsrsa'});
1373+
sig = new KJUR.crypto.Signature({'alg': this.asn1SignatureAlg.nameAlg, 'prov': 'cryptojs/jsrsa'});
13741374
sig.init(this.prvKey);
13751375
sig.updateHex(this.asn1TBSCertList.getEncodedHex());
13761376
this.hexSig = sig.sign();

0 commit comments

Comments
 (0)