forked from kjur/jsrsasign
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ChangeLog.txt
executable file
·1957 lines (1808 loc) · 69.9 KB
/
ChangeLog.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
ChangeLog for jsrsasign
remove all YUI dependency
* Changes from 10.2.0 to 10.3.0
- remove YUI library dependency
- LICENSE.txt
- remove YUI license
- src/base64x.js
- add extendClass function to replace YUI class extend
- src/*.js
- replace YAHOO.lang.extend to extendClass all
- src/keyutil.js
- change to raise exception in KEYUTIL class with Error class
- src/asn1x509.js
- API document update for Extesions and CRLReason class
- npm_util/package.json
- fix dependencies (#482)
- test/qunit-do-*.html
- updated to follow above
- test/qunit-do-base64x-class.html added
- test for extendClass function
CVE-2021-30246 RSAKey.verify issue fix
* Changes from 10.1.13 to 10.2.0 (2021-04-14)
- src/rsasign.js
- CVE-2021-30246 RSAKey.verify issue was fixed (#478)
- src/asn1cms.js
- IssuerSerial, IsseruAndSerialNumber API document update
- sample_node/asn1extract2
- change to "/usr/bin/env node"
add non-ascii BMPString support
* Changes from 10.1.12 to 10.1.13 (2021-03-08)
- src/base64x.js
- add ucs2hextoutf8 function
- src/x509.js
- X509.getAttrTypeAndValue supports non-ascii BMPString (#474)
- src/asn1hex.js
- ASN1HEX.dump supports non-ascii BMPString
- test/qunit-do-{asn1hex-dump,x509-ext,base64x}.html
- updated to follow above
fix for wrong UTF-8 encoding in distinguished name parser
* Changes from 10.1.11 to 10.1.12 (2021-02-25)
- src/x509.js
- fix X509.getAttrTypeValue (#473)
- attribute value is converted by hextoutf8 not hextorstr
- X509.getIssuerString update to use getIssuer
- X509.getSubjectString update to use getSubject
- X509.dnarraytostr fix to escape "+" and "/"
- X509.hex2dn update to use getX500Name
- test/qunit-do-x509-ext.html
- updated to follow above
update X509.getVersion and add jsrsasign-util saveFileJSON
* Changes from 10.1.10 to 10.1.11 (2021-02-19)
- src/x509.js
- X509.getVersion supports other than
empty(DEFAULT =v1) and [0] {INTEGER 2} (=v3).
Thus version checking is relaxed. (#471)
- src/nodeutil.js (jsrsasign-util 1.0.4)
- add saveFileUTF8
- saveFileJSON API document fix
extend support for distinguished name
* Changes from 10.1.9 to 10.1.10 release (2021-02-14)
- src/asn1x509.js
- AttributeTypeAndValue
- add support for OID and oid name constructor
AttributeTypeAndValue({str: "/streetAddress=foo"})
AttributeTypeAndValue({str: "/2.5.4.9=foo"})
- OID.name2oidList
- add givenName
- test/qunit-do-asn1x509.html
- updated to follow above
Add SubjectDirectoryAttributes extension support
* Changes from 10.1.8 to 10.1.9 release (2021-02-12)
- src/asn1x509.js
- SubjectDirectoryAttributes class added
- Extensions class updated to support
SubjectDirectoryAttributes
- OID class update to support OIDs
such as gender, placeOfBirth et.al. for
SubjectDirectoryAttributes.
- SubjectDirectoryAttributes parser is
needed to be implemented in X509.js future.
- test/qunit-do-asn1x509.html
- updated to follow above
KEYUTIL supports PKCS8 private key with extension
* Changes from 10.1.5 to 10.1.8 release (2021-02-08)
- src/keyutil.js
- KEYUTIL.parsePlainPrivatePKCS8Hex now supports
private key extsion and and issue #454 fixed.
- test/qunit-do-keyutil-eprv.html
- updated to follow above
CAdES-T support update and fix
* Changes from 10.1.4 to 10.1.5 release (2021-01-17)
- tool/tool_cades.html fix (#465)
- now works fine again for CAdES-T demo
- src/asn1cms.js
- SignerInfo class
- unsigned attribute support again
- Attribute class
- add signaturePolicyIdentifier support
- add signatureTimeStamp support
- CMSParser class
- add signaturePolicyIdentifier support
- add setSignaturePolicyIdentifier method
- src/asn1cades.js
- CAdESUtil class
- parseSignedDataForAddingUnsigned modified to use CMSParser
- addSigTS removed since it was empty method
- parseSignerInfoForAddingUnsigned is deprecated since
parseSignedDataForAddingUnsigned will not call it.
- src/crypto.js
- Mac API document fix (#466)
getPKIStatusInfo bugfix
* Changes from 10.1.3 to 10.1.4 release (2020-11-23)
- asn1tsp.js
- TSPParser class
- getPKIStatusInfo out parameter name bugfix
- test/qunit-do-asn1hex.html
- updated to follow above
TSPParser.getPKIStatusInfo update
* Changes from 10.1.2 to 10.1.3 release (2020-11-22)
- asn1tsp.js
- TSPParser class
- getPKIStatusInfo updated to
supports PKIFreeText and PKIFailureInfo
- getPKIFreeText added
- getPKIFailureInfo added
- asn1hex.js
- ASN1HEX class
- getString added
- getInt method updated to supports ASN.1 BitString
- base64x.js
- function bitstrtoint, inttobitstr added
- test/qunit-do-{asn1hex,asn1tsp,base64x}.html
- updated to follow above
add SigningCertificateV2 for CMSParser and issue fix
* Changes from 10.1.1 to 10.1.2 release (2020-11-21)
- src/asn1cms.js
- CMSParser
- getAttribute updated to support
SigningCertificateV2
- add setSigningCertificateV2 method
- add getESSCertIDv2 method
- change sortflag of result parameter to true in
CMSParser.getCertificateSet
- test/qunit-do-asn1cms.html
- updated to follow above
CMSSignedData and TimeStamp parser bugfix
* Changes from 10.1.0 to 10.1.1 release (2020-11-20)
- src/asn1tsp.js
- "serialNumber" parameter was changed to
"serial" in TSTInfo class and TSPParser.getTSTInfo
method.
- src/asn1cms.js
- change method name CMSParser.getAttributeArray to
CMSParser.getAttributeList to align to the name
AttributeList class.
- getAttributeList returns JSON parameter which
can be accepted by AttributeList constructor.
- wrong sighex value for signature value
by getSignerInfo method was fixed.
- test/qunit-do-asn1tsp.html
- updated to follow above
add new CMSSignedData and TimeStamp parser and X500Name update
* Changes from 10.0.5 to 10.1.0 release (2020-11-19)
- add new CMSSignedData and TimeStamp parser
- X500.get{X500Name,GeneralName,GeneralNames} result change
- src/asn1cms.js
- new CMSParser class for CMS SignedData
- get{CMSSignedData,SignedData,HashAlgArray,
EContent,SignerInfos,SignerInfo,SignerIdentifier,
IssuerAndSerialNumber,AttributeArray,
Attribute,ESSCertID,IssuerSerial,CertificateSet}
- set{ContentType,SigningTime,MessageDigest,
SigningCertificate}
- src/asn1tsp.js
- new TSPParser class to parser RFC 3161 TSP protocol
- get{Response,Token,TSTInfo,Accuracy,MessageImprint,
PKIStatusInfo}
- setTSTInfo
- src/asn1.js
- DERObjectIdentifier class update to use new oidtohex
- src/asn1hex.js
- add ASN1HEX.{getInt,getOID,getOIDName}
- src/asn1csr.js
- CSRUtil.getParam result "subject" parameter result is changed
because of X509.getX500Name update.
- src/asn1x509.js
- small update for Time class
- small update for Certificate.sign method
- document fix (issue #463)
- src/base64x.js
- function "oidtohex" and "hextooid" added.
- function "ishex" added
- KJUR.lang.String.isHex now *DEPRECATED*. Please use "ishex".
- src/x509.js
- X509.getX500Name update
- X509.get{Issuer,Subject,GeneralNames,GeneralName}
- add X509.{getX500NameArray,dnarraytostr}
- src/x509crl.js
- X509CRL.getIssuer update for X509.getX500Name update
- test/qunit-do-{asn1tsp,asn1cms,asn1hex,asn1x509-newcert-veri,
base64x,x509-ext,x509crl}.html
- updated to follow above
small issue fixes and updates
* Changes from 10.0.4 to 10.0.5 release
- src/base64x.js
- utf8tob64u, b64utoutf8
replace new Buffer() to Buffer.from() for
Node.JS deprecation (issue #460)
- src/asn1x509.js
- P-256 oid added in OID class (PR #461 #333)
- src/x509.js
- document fix
- tool/tool_csr.html
- update to show ASN.1 dump of CSR
- test/qunit-do-base64x.html, npm/test/t_base64x.js
- update test code to follow above
add methods to modify some extension parameters
* Changes from 10.0.3 to 10.0.4 (2020-Oct-23)
- src/x509.js
- add X509.updateExt{CDPFullURI,AIAOCSP,AIACAIssuer} method
- src/nodeutil.js
- add read{JSON,JSONC},saveJSON,printJSON method added
- jrsasign-util npm package updated
- test/qunit-do-x509-param.html
- updated to follow above
add findExt method in X509 class
* Changes from 10.0.2 to 10.0.3 (2020-Oct-21)
- src/x509.js
- add X509.findExt method
- test/qunit-do-x509-param.html
- updated to follow above
AdobeTimeStamp X.509v3 extension parser bugfix
* Changes from 10.0.1 to 10.0.2 (2020-Oct-14)
- src/x509.js
- X509.getExtAdobeTimeStamp method bugfix
AdobeTimeStamp X.509v3 certificate extension added
* Changes from 10.0.0 to 10.0.1 (2020-Oct-13)
- src/asn1x509.js
- AdobeTimeStamp class added
- add AdobeTimeStamp support in Extension class
- add "adobeTimeStamp" OID in OID class
- src/x509.js
- add getExtAdobeTimeStamp method to X509 class
- add "adobeTimeStamp" support in getExtParam
- src/asn1.js
- DERBoolean add support for "false" value.
- test/qunit-do-{asn1,asn1x509,x509}.html
- updated to follow above
Major update for CMS SigneData TimeStamp and CAdES
* Changes from 9.1.9 to 10.0.0 (2020-Sep-24)
- major update for CMS SignedData related classes
to allow more simple ASN.1 generation
- src/asn1cms.js
- new architecture updates in
SignedData, Attribute
- all implemented Attributes such as
ContentType, SigningTime are also
updated.
- new class added
- ESSCertID
- ESSCertIDv2
- SignerIdentifier
- SubjectKeyIdentifier
- CertificateSet
- RevocationInfoChoices
- RevocationInfoChoice
- OtherRevocationFormat
- following class/methods are now *deprecated*
- CMSUtil.newSignedData
- src/asn1tsp.js
- aligned to new architecture:
- TSTInfo, Accuracy, PKIStatusInfo,
PKIStatus, PKIFreeText, PKIFailureInfo,
- new class added
- TimeStampToken
- following class/methods are now *deprecated*
- SimpleTSAAdapter, FixedTSAAdapter,
TSPUtil.newTimeStampToken
- src/asn1cades.js
- aligned to new architecture
- SignaturePolicyIdentifier, OtherHashAlgAndValue,
SignatureTimeStamp, CompleteCertificateRefs,
OtherCertID, OtherHash
- new class added
- SignaturePolicyId, OtherHashValue
- src/asn1.js
- DERTaggedObject add support for simple
argument for explicit "tage" and implicit "tagi"
- newObject add support for "asn1" property
- DERObjectIdentifier constructor argument
now accepts name and OID. method
setValueNameOrOid added.
- src/x509.js
- X509(certPemOrHex)
X509 class constructor add support for
PEM or hex string of certificate as
argument.
- src/asn1x509.js
- OID class: signaturePolicyIdentifier attribute
OID added.
wrong encoding in CRLReason in OCSP CertStatus fixed
* Changes from 9.1.8 to 9.1.9 (2020-Sep-08)
- src/asn1ocsp.js
- BUGFIX: wrong encoding in CRLeason in OCSP CertStatus fixed
- test/qunit-do-asn1ocsp.html
- follow to above update
wrong encoding in byKey of OCSP ResponderID fixed
* Changes from 9.1.7 to 9.1.8 (2020-Sep-08)
- src/asn1ocsp.js
- BUGFIX: wrong encoding in byKey of OCSP ResponderID fixed
- test/qunit-do-asn1ocsp.html
- follow to above update
nextUpdate encoding bugfix in ocsp SingleResponse
* Changes from 9.1.6 to 9.1.7 (2020-Sep-08)
- src/asn1ocsp.js
- BUGFIX: nextUpdate encoding fix in SingleResponse
- CertStatus document fix
- test/qunit-do-asn1ocsp.html
- follow to above update
add OCSP response and request encoder
* Changes from 9.1.5 to 9.1.6 (2020-Sep-05)
- src/asn1ocsp.js
- OCSPResponse class added
- ResponseBytes class added
- BasicOCSPResponse class added
- ResponseData class added
- ResponderID class added
- SingleResponseList class added
- SingleResponse class added
- CertID class updated
- changed properties to specify
isserNameHash, issuerKeyHash and serialNumber
without backward compatibility
- CertStatus class added
- OCSPParser class added
- only OCSP request parser methods are available
- src/asn1x509.js
- OCSPNonce class OCSP extension added
- OCSPNoCheck class certificate extension added
- Extensios class supports OCSPNonce and OCSPNoCheck
- OID clas supports ocspNonce, ocspNoCheck and ocspBasic
- src/x509.js
- X509.getExtParam supports OCSPNonce and OCSPNoCheck
- X509.getExtOCSPNoCheck added
- X509.getExtOCSPNonce added
- src/asn1.js
- ASN1Object class: add tlv parameter support
- src/asn1hex.js
- ASN1HEX.dump: enable to show tagged primitive
ASN1HEX getChildIdx bug for too many children
* Changes from 9.1.4 to 9.1.5 (2020-Aug-29)
- src/asn1hex.js
- BUGFIX: ASN1HEX.getChildIdx didn't returns
proper result when too many child items
such as over 200 children.
- add ASN1HEX.getTLVblen method
- DEPRECATED: getNextSiblingIdx. Please
use getTLVblen instead.
X509CRL parser revokedCertificate bugfix
* Changes from 9.1.3 to 9.1.4 (2020-Aug-28)
- src/asn1hex.js
- get{Idx,V,TLV}byList return value aligned to
get{Idx,V,TLV}byListEx.
- src/x509crl.js
- BUGFIX: error when nextUpdate exists and
no revokedCertificates
missed to export X509CRL in npm package
* Changes from 9.1.2 to 9.1.3 (2020-Aug-28)
- npm/lib/footer.js
- export X509CRL
- NOTE: only npm package released
add private extension support for Cert CRL and CSR
* Changes from 9.1.1 to 9.1.2 (2020-Aug-27)
- undefined extension regarded as private extesion
in extension parser X509.getExtParam.
Thus certificate, CRL and CSR parser will
not raise error when undefined extension
is parsed.
- src/x509.js
- unknown extension is parsed as
private extension.
- test/qunit-do-{x509-param}.html
- add test case to follow above update
new CRL parser and private extension encoder support
* Changes from 9.1.0 to 9.1.1 (2020-Aug-27)
- add new X509CRL class for CRL parser
- add Certificate, CSR and CRL private extension support
- src/x509crl.js (new)
- X509CRL class
- src/x509.js
- new X509.getExtCRLNumber method for extension parser
- new X509.getExtCRLReason method for extension parser
- new X509.getExtParam method for parsing one extension
- NOTE: not yet support for private extension
- src/asn1x509.js
- Extensions class: add support for private extension
- PrivateExtension class added
- OID.name2oid: add support OID (ex. "1.2.3.4") as argument
- src/asn1csr.js
- CSRUtil.getParam update to support X509.getExtParamArray and
not using X509.parseExt
- src/asn1.js
- getLengthHexFromValue small update for exception
- test/qunit-do-{asn1x509,asn1x509-tbscert,x509}.html
- update to follow above updates
- test/x509csr.html (new)
new CRL APIs and other updates
* Changes from 9.0.3 to 9.1.0 (2020-Aug-24)
- CRL constructor update to align Certificate
class without backward compatibility.
- BUGFIX: SigningCertificate{,V2} encoding bugifx
- src/asn1cms.js
- BUGFIX: SigningCertificate{,V2} encoding have been
missign SEQUENCE. (#448)
- src/asn1csr.js
- CertificationRequestInfo class updated to
new KJUR.asn1.x509.Extension class.
- src/asn1x509.js
- CRL and TBSCertList class constructor have
been updated to align Certificate and
CertificationRequestInfo style in 9.0.0
without backward compatibility.
- this update makes more extension and
entry extension support in the future.
- CRLEntry class is *deprecated* since
no more used in updated TBSCertList.
- new CRLNumber extension class added
- new CRLReason entry extension class added
- OID class updated to support
cRLNumber and cRLReason oids
- TBSCertificate.getExtDERSequence method
was moved to new Extensions class.
- ASN1HEX.dump updated to support ENUMERATED
- test/qunit-do-{asn1cms,asn1tsp,asn1x509-tbscert,
asn1x509} updated to follow above updates.
TimeStampToken ASN.1 encoding error fix
* Changes from 9.0.2 to 9.0.3 (2020-Aug-22)
- BUGFIX: tsa field of TSTInfo was not encoded properly. (#450)
- BUGFIX: CMSSignedData version of TimestampToken was not 3. (#448)
- src/asn1tsp.js
- TSTInfo tsa field fix
- TSTUtil.newTimeStampToken method to set
CMSVersion 3.
PolicyInformation named policy OID bug fix
* Changes from 9.0.1 to 9.0.2 (2020-Aug-22)
- BUGFIX: KJUR.asn1.tsp.PolicyInformation class constructor
have not been accepted named policy OID such as "anyPolicy".
The issue was fixed.
- src/asn1x509.js
- PolicyInformation bugfix for above.
- test/qunit-do-asn1x509.html
- updated to follow above.
TimeStampToken contentType attribute bug fix
* Changes from 9.0.0 to 9.0.1 (2020-Aug-21)
- BUGFIX: KJUR.asn1.tsp.TimeStampToken class generates have
generated with wrong contentType attribute
with value "data". (#448)
- src/asn1tsp.js
- TimeStampToken class constructor will add
contentType attribute with "tstinfo" for bugfix. (#448).
- src/asn1cms.js
- SignerInfo.setForContentAndHash class constructor
parameter can have "contentType" property additionaly
to set "tstinfo" as above.
- src/asn1x509.js
- some attribute type oids for CMS signedData are
added to OID.name2oidList.
Certificate and CSR generator and parser API major updates
* Changes from 8.0.24 to 9.0.0 (2020-Aug-19)
- Please see migration notes in wiki:
https://github.com/kjur/jsrsasign/wiki/NOTE-jsrsasign-8.0.x-to-9.0.0-Certificate-and-CSR-API-migration-guide
- CAUTION: some certificate and CSR APIs are missing
backward compatibility so you may need to change your code
to upgrade jsrsasign 9.0.0.
- src/asn1x509.js
- JSON argument format of Certificate and all certificate
extension class were changed without backward compatibility.
- They can accept JSON objects from ASN.1 parser methods
in X509 class as an parameter arguments.
- Certificate class constructor can automatically
generate TBSCertificate and sign by params argument.
So no need to call sign method or TBSCertificate
constructor.
- JSON argument format are aligned to the same manner
among all certificate extension class.
- For CRLDistributionPoints class, JSON argument format
of DistributionPoint and DistributionPointName
was changed.
- Extension.appendByNameToArray method was removed.
- "array" key was added to X500Name class constructor
JSON argument.
- AttributeTypeAndValue constructor argument also
extended to support {type:"CN",value:"Test",ds:"prn"}
style JSON object.
- X509Util.newCertPEM argument format is updated to
align Certificate class and is *deprecated*.
- src/x509.js
- returned JSON object format by all "get*" parser method
was changed to accept by related class defined in asn1x509.js
without backward compatibility.
- all certificate extension parsing methods are
changed to have "hExtV" and "critical" as arguments.
- following methods are added:
getAlgorithmIdentifierName, getIssuer, getSubject,
getGeneralNames, getGeneralName, getDistributionPoint,
getDistributionPointName, getExtAuthorityInfoAccess,
getPolicyInformation, getPolicyQualifierInfo,
getUserNotice, getDisplayText, getX500NameRule,
getX500Name, getRDN, getAttrTypeAndValue, getParam,
getExtParamArray
- following methods are *deprecated*:
getExtSubjectAltName2, getExtAIAInfo,
getExtCRLDistributionPointsURI.
- X509Util.newCertPEM bugfix.
Got error when cakey is PKCS#5 plain PEM key string
- src/asn1csr.js
- JSON argument format was changed in CertificationRequest,
CertificationRequestInfo, CSRUtil.netCSRPEM without
backward compatibility.
- CSRUtil.getInfo was renamed to CSRUtil.getParam
- CSRUtil.netCSRPEM is now *deprecated*
- src/asn1.js
- ASN1Util.newObject can also conclude ASN1Object
as well as JSON parameter.
- tool/tool_{ca,ca2}.html
- changed to follow above updates.
- test/*.html
- following test pages are updated to follow above:
qunit-do-{asn1csr,asn1tsp,asn1x509-newcrt,asn1x509,base64x,
ecdsmod-s,keyutil-getpem,package-jwths,x509-ext,
x509-key,x509-kid,x509}.html
- following test pages are added:
qunit-do-{asn1x509-tbscert,x509-param}.html
fix SigningCertificate v1 v2 attribute ASN.1 encoding
* Changes from 8.0.23 to 8.0.24 (2020-Aug-18)
- KJUR.asn1.cms.{SigningCertificate,SigningCertificateV2}
wrong ASN.1 encoding issue was fixed (#448)
- src/asn1cms.js
- KJUR.asn1.cms.{SigningCertificate,SigningCertificateV2}
ASN.1 encoding issue fixed (#448)
- added KJUR.asn1.cms.IssuerSerial
- src/base64x.js
- String.{isPritable,isIA5,isMail} methods added
- test/qunit-do-asn1{cms,tsp}.html
- updated for above issue
add CertificatePolicies BMPString and VisibleString support
* Changes from 8.0.22 to 8.0.23 (2020-Aug-06)
- src/asn1x509.js
- CertificatePolicies class added
- update Estension.appendByNameToArray for
CertificatePolicies
- PolicyInformation, PolicyQualifierInfo, UserNotice,
NoticeReference and DisplayText class added
- src/asn1.js
- BMPString and VisibleString class added
- update ASN1Util.newObject for {BMP,Visible}String
- src/asn1hex.js
- update ASN1HEX.dump for {BMP,Visible}String
- test qunit-do-{asn1,asn1-newobj,asn1x509,asn1hex-dump}.html
ASN1HEX and X509 class minior bug fix
* Changes from 8.0.21 to 8.0.22 (2020-Aug-05)
- src/asn1hex.js
- dump method update for BitString encapsulated
- src/x509.js
- getKeyUsageBin bugfix for such keyCertSign and cRLSign only
- fix to stop raising error when X509 constructor called and
asn1x509 doesn't loaded
- TODO: getKeyUsageBin still has bug when decipherOnly(8) bit exists
- test
- qunit-do-{asn1hex-dump,x509-{ext,key}}.html to follow above updates
Donation program started, more RSA-PSS support and add ASN1HEX.get{Idx,TLV,V}byListEx
* Changes from 8.0.20 to 8.0.21 (2020-Aug-01)
- *donation program* have been started.
Please consider donation to sustain this project
https://github.com/kjur/jsrsasign#donations
- RSA-PSS support in AlgorithmIdentifier, Signature,
X509 and newCertPEM
- new method to access ASN.1 decendant object
ASN1HEX.get{Idx,TLV,V}byListEx added
Its tutorial page will be provided by following URL near in future
https://github.com/kjur/jsrsasign/wiki/Tutorial-for-accessing-deep-inside-of-ASN.1-structure-by-using-new-ASN1HEX.getIdxbyListEx
- src/x509.js
- update getSignatureAlgorithmField to support
RSA-PSS(SHA{,256,384,512}withRSAandMGF1) algorithms
- update verifySignature to support
RSA-PSS(SHA{,256,384,512}withRSAandMGF1) algorithms
- src/crypto.js
- Signature class
- SHAwithRSAandMGF1 supported (the same as SHA1withRSAandMGF1)
- src/asn1hex.js
- ASN1HEX.getIdxbyList
- add get{Idx,TLV,V}byListEx for context specific tag
- add ASN1HEX.isContextTag to check context
specific tag
- get{Idx,TLV,V} will be deprecated near in the future version
Please consider to move get{Idx,TLV,V}byListEx.
- src/{asn1csr,dsa,rsapem,ecdsa-modified}.js
- replace to use get{Idx,TLV,V}byListEx
- test/qunit-do-asn1x509.html
- add Certificate class test for RSA-PSS
- add TBSCertificate class test for RSA-PSS
- add AlgorithmIdentifier class test for
SHA{,256,384,512}withRSAandMGF1
- test/qunit-do-crypto-pss.html
- add Signature class test for
SHAwithRSAandMGF1.
- test/qunit-do-asn1x509-newcrt.html
- add newCertPEM test for RSA-PSS
- test/qunit-do-x509.html
- add getSignatureAlgorithmField test for
SHA{,256,384,512}withRSAandMGF1
- sample_node/asn1extract2
- bug fix for -v(--vonly) option
- test/qunit-do-asn1hex.html
- add test for ASN1HEX.isContextTag
add CSR support for subjectAltName
* Changes From 8.0.19 to 8.0.20
- src/asn1csr.js
- CSRUtil.getInfo
- add ext parameter to show subjectAltName property
- change not to raise error when subject name is empty in CSR
- src/x509.js
- X509.parseExt
- add support for CSR extension request field
- src/asn1hex.js
- ASN1HEX.getIdxbyList
- small update for exception
- test/
- qunit-do-{asn1csr, x509}.html to add tests for above.
ECDSA signature validation maleability fix and others
* Changes from 8.0.18 to 8.0.19
- src/ecdsa-mod.js
- ECDSA.verifyHex fixed for some types of maleability (#437)
- src/asn1hex.js
- ASN1HEX.checkStrictDER added
- src/asn1x509.js
- It's founded that OpenSSL's DN representation like
"/C=US/O=test" is "compat" format. So those methods
are added and existing method is now deprecated.
- X500Name.{ldapToOneline, onelineToLdap} are now deprecated.
- X500Name.{ldapToCompat, compatToLdap} are added.
- src/x509.js
- update for compatToLdap and ldapToCompat
- src/crypto.js
- document update
RSA decryption and RSA signature validation maleability fix
* Changes from 8.0.17 to 8.0.18
- ext/rsa2.js
- CVE-2020-14967 RSADecrypt fixed for zero prepending maleability (#439)
- RSADecryptOAEP fixed for zero prepending maleability
- src/rsasign.js
- verifyWithMessageHash fixed for zero prepending maleability
- test
- qunit-do-crypto-cipher.html: some test case added for above
* Changes from 8.0.16 to 8.0.17
- src/rsasign.js
- CVE-2020-14968
verifyWithMessageHashPSS fixed for prepending zeros maleability (#438)
- src/asn1x509.js
- allow alternative algorithms to sign CRLs (#440)
- src/asn1cms.js
- improve CMSUtil.newSignedData helper with detached signatures (#441)
- ext/rsa2.js
- RSAGenerate fixed for not having requesting key length (#442)
- sample_node
- pemtobin was fixed for pemtohex function
- test
- qunit-do-rsagenkeylen.html new test code for (#442)
- qunit-do-rsasign-pss.html add maleability test code (#438)
- index.html, qunit-do-x509.html link update
extended Authority/SubjectKeyIdentifier support
* Changes from 8.0.15 to 8.0.16 (2020-Mar-29)
- src/asn1x509.js
- AuthorityKeyIdentifier class
- issuerDN ASN.1 encoding bug fixed
- now keyIdentifier is automatically calculated
by certificate or key
- issuer dn and serial number can be set
by certificate
- SubjectKeyIdentifier class
- now keyIdentifier is automatically calculated
by certificate or key
- X500Name class
- certissuer and certsubject parameter is added
to set value by issuer or subject of certificate.
- GeneralName class
- dn parameter support was updated.
- src/keyutil.js
- getKeyID method added to calcalate a key identifier
for certificate.
- crypto.js
- Util.isKey static method added
- Signature.{sign,verify} method bug fix for ECDSA
- code refactoring
- src/asn1csr.js
- strict mode fix (pull #410)
- src/jws.js
- strict mode fix (pull #347)
- src/jwsjs.js
- readJWSJS fix (pull #373)
- sample_node/asn1extract2
- sample added. more flexible use than asn1extract.
- test/qunit-do-crypto.html
- getRandom test fix
- test/qunit-do-asn1x509-newcrt.html
- test case expected value fix
SHA384/512withECDSA wrong signature fix and add some curves support
* Changes from 8.0.14 to 8.0.15 (2020-Apr-13)
- src/ecdsa-modified.js
- SHA384withECDSA, SHA512withECDSA signature
wrong validation result issue was fixed (issue #394)
- secp192k1, secp224r1 curve are now supported
- test/qunit-do-ecdsamod.html
testcase added for SHA1/SHA384/SHA512 and
secp192k1/secp224r1
- sample_node command added
- genkey: keypair generation
- eckey2hex: show EC PKCS#1/8 private/public key in hex format
* Changes from 8.0.13 to 8.0.14 (2020-Apr-03)
- src/asn1x509-1.0.js
- add SubjectKeyIdentifier class (issue #402)
- add SubjectKeyIdentifier support in
TBSCertificate.appendExtensionByName method
- test/qunit-do-asn1x509.html
SubjectKeyIdentifier test added
- src/base64x.js
- add multi section support for pemtohex
such as EC PRIVATE KEY and EC PARAMETRS
- test/qunit-do-base64x.html
pemtohex testcase added
- src/keyutil.js (pull #415)
- add support for multi section plain PKCS#5 EC PRIVATE KEY
- test/qunit-do-keyutil-ec.html
plain PKCS#5 EC PRIVATE KEY testcase added
- src/asn1csr-1.0.js
document fix (pull #356)
- npm_util/Makefile
merged (pull #216)
- src/rsasign-1.2.js
merged for RegExp (pull #419)
- src/asn1-1.0.js
merged for strict fix (pull #389)
- src/crypto-1.0.js
document fix in return of decrypt method (issue #383)
- src/x509-1.1.js
onelineToLDAP sample added in document (issue #428)
* Changes from 8.0.12 to 8.0.13 (2020-Mar-31)
- LICENSE.txt
- fixed wrong description from BSD to MIT License
- ext/ec.js
- mitigate Minerva timing attack in ECPointFp.multiply method
https://minerva.crocs.fi.muni.cz/
https://www.npmjs.com/advisories/1505
- test/qunit-do-crypto-ecdsa.html
- testcase fix
- sample_node/tsr2certs added
- script to extract certificates from timestamp response or token
- npm
- ECPointFp, ECCurveFp and ECFieldElementFp are now exported.
* Changes from 8.0.11 to 8.0.12 (2018-Apr-22)
- base64x 1.1.13 to 1.1.14
- function iptohex added
- fix hextoipv6 for wrong "::" shrinking
- asn1x509 1.1.5 to 1.1.6
- KeyUsage class now supports names parameter such as
['digitalSignature', 'nonRepudiation'].
- some refactoring
- tool/tool_ca2.html added for
yet another certificate generation tool by.
- testcase added for above methods/functions
- qunit-do-base64x.html
- qunit-do-asn1x509.html
* Changes from 8.0.10 to 8.0.11 (2018-Apr-17)
- asn1x509 1.1.4 to 1.1.5
- X500Name.setByString fix for attribute value with slash.
- testcase added to confirm above fixes.
- qunit-do-asn1x509.html
* Changes from 8.0.9 to 8.0.10 (2018-Apr-09)
- IPv6 address support in certificate
- LICENSE.txt
- conclude third party licenses.
- asn1x509 1.1.3 to 1.1.4
- IPv4/v6 iPAddress support in GeneralName
- base64x 1.1.2 to 1.1.3
- ipv6tohex, hextoipv6 and hextoip functions
added for IPv6 string conversion.
- x509 1.1.19 to 1.1.20
- add IPAddress support in getExtSubjectAltName2
- testcase added for above methods/functions
- qunit-do-asn1x509.html
- qunit-do-base64x.html
- qunit-do-x509-ext.html
- tool/tool_ca.html
- use SHA256withRSA and RSA 2048bit key
by default.
- add IPAddress support in subjectAltName
* Changes from 8.0.8 to 8.0.9 (2018-Apr-04)
- critical bug fix for ASN.1 string class.
When UTF-8 string is set to ASN.1 object,
string has been garbled.
- src/asn1 1.0.13 to 1.0.14
- DERAbstractString.setString fixed for utf8.
- src/asn1 1.1.2 to 1.1.3
- following OIDs are added:
T/title (2.5.4.12)
description (2.5.4.13)
organizationIdentifier (2.5.4.97)
* Changes from 8.0.7 to 8.0.8 (2018-Apr-02)
- src/asn1x509 1.1.1 to 1.1.2
- GeneralName fix for dn and ldapdn of explicit.
This have caused wrong GeneralName dn/ldapdn ASN.1
encoding.
- CRL.sign fix for init
- tool/tool_ca.html
- subjectAltName extension support added.
- subjectPublicKeyInfo setting fix.
- test/qunit-do-asn1x509
- fix for CRL and GeneralName dn/ldapdn test
- npm/test/t_sig_rsasha1.js added
* Changes from 8.0.6 to 8.0.7 (2018-Mar-25)
- src/jws 3.3.10 to 3.3.11
- verify method returns false in case of
without all of head, payload and signature
to fix issue #332.
- src/jwsjs 2.2.0 to 2.2.1
- readJWSJS fix for wrong initialization as #336
- src/asn1x509 1.1.0 to 1.1.1
- add DN uniqueIdentifier(2.5.4.45) and
description(2.5.4.13) attribute type by PR #335.
- ext/{rsa,rsa2}
- OAEP fix by PR #303.
* Changes from 8.0.5 to 8.0.6 (2018-Feb-10)
- src/x509 1.1.18 to 1.1.19
- fix getSubjectAltName for IP addr of PR #317
- test/qunit-do-x509-ext
- add test getSubjectAltName for DNS and IP
- src/rsa, rsa2
- fix for alert function for issue #325
- src/ecdsa-modified
- fix asn1SigToConcatSig for issue #315
- npm/lib
- jsrsasign-{all,jwths,rsa}-min.js are added
per requested issue #314, #313
* Changes from 8.0.4 to 8.0.5 (2018-Jan-27)
- tool/tool_asn1dumper.html
- #304 pemtohex issue fix
- tool/tool_roca.html added to check ROCA vulnerablity for public key
- src/asn1csr 1.0.6 to 1.0.7
- fix init of fix #308
- src/jws 3.3.10
- fix aud verification in vertifyJWT document #318
* Changes from 8.0.3 to 8.0.4 (2017-Sep-15)
- asn1cms 1.0.4 to 1.0.5
- add KJUR.asn1.cms.CMSUtil.verifySignedData method to
verify CMS signed data.
- crypto 1.2.0 to 1.2.1
- small refactoring
- x509 1.1.17 to 1.1.18
- fix getInfo() to support no extension.
- add sample_node/cmssign
- fix sample/sample-ecdsa.html in sig.init.
- fix sample_node/asn1extract in ASN1HEX method call
- merge PR #292 for https
- merge PR #283 to fix document and example
- merge PR #281 to fix JWK Thumbprint RFC number
* Changes from 8.0.2 to 8.0.3 (2017-Jul-11)
- jws 3.3.9 to 3.3.10
- fix JWS.verify fail for #276
* Changes from 8.0.1 to 8.0.2 (2017-Jul-08)
- jws 3.3.8 to 3.3.9
- fix for jsrsasign-jwths-min.js
- sample/sample-rsasign.html fix for #274.
- test qunit-do-package-rsa.html fix
* Changes from 8.0.0 to 8.0.1 (2017-Ju1-01)
- x509 1.1.16 to 1.1.17
- add getExtSubjectAltName2 which supports
GeneralName type
- make getExtSubjectAltName deprecated
- fix getExtCRLDistributionPointsURI() for #269.
caused error if CDP containts directory name.
now fixed.
- getInfo now supports certificatePolicies
- tool/tool_certview.html
- SHA1 fingerprint issue fixed for #273
* Changes from 7.2.2 to 8.0.0 (2017-Jun-30)
- all of deprecated classes, methods and files are
removed.
- get smaller all-min.js than before.
- following files are refactored:
- asn1hex, asn1x509, crypto, jwsjs, keyutil,
rsapem, rsasign, x509.
- npm/lib/footer.js fix for issue #270.
* Changes from 7.2.1 to 7.2.2 (2017-Jun-23)
- jws 3.3.7 to 3.3.8
- merge pull request #266
- x509 1.1.15 to 1.1.16
- read X.509v3 certificate without any extension
supported in readCertHex.
- ext/yahoo.js
- remove most of codes and keep YAHOO.lang.extend only.
So all of Yahoo YUI vulnerabilities are removed.
* Changes from 7.2.0 to 7.2.1 (2017-Jun-04)
- base64x 1.1.11 to 1.1.12
- function hextopem, pemtohex added
- asn1hex 1.1.11 to 1.1.12
- make ASN1HEX.pemToHex deprecated
- asn1 1.0.12 to 1.0.13
- make KJUR.asn1.ASN1Util.getPEMStringFromHex deprecated
- rsapem 1.2.1 to 1.2.2
- make RSAKey.pemToBase64 deprecated
- x509 1.1.14 to 1.1.15
- make X509.pemToBase64 deprecated
- further refactoring. reducing min.js size by refactoring
- asn1 1.0.12 to 1.0.13
- asn1cades 1.0.2 to 1.0.3
- asn1cms 1.0.3 to 1.0.4
- asn1csr 1.0.4 to 1.0.5
- asn1ocsp 1.0.2 to 1.0.3
- asn1tsp 1.0.2 to 1.0.3
- asn1x509 1.0.23 to 1.0.24
- jws 3.3.6 to 3.3.7
- jwsjs 2.1.0 to 2.1.1
- keyutil 1.1.1 to 1.1.2
- pkcs5pkey 1.1.1 to 1.1.2
- x509 1.1.14 to 1.1.15
* Changes from 7.1.4 to 7.2.0 (2017-May-21)
- major refactoring before reducing file size
- major refactoring for ASN1HEX
- asn1hex 1.1.10 to 1.1.11
- make most of long method name deprecated and
provide new short names.
- DEPRECATED: getHexOf{TLV/V/L}_AtObj
getIntOfL}_AtObj
get{StartPosOfV/ByteLengthOfL}_AtObj
- NEW: get{TLV/V/Vlen/Vidx/L/Lblen}
getChildIdx, getTLVbyList, oidname
- asn1cades 1.0.1 to 1.0.2