Skip to content

Commit 19608d2

Browse files
committed
10.8.0 release
1 parent 574e9ad commit 19608d2

29 files changed

+4841
-4010
lines changed

ChangeLog.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,19 @@
11

22
ChangeLog for jsrsasign
33

4+
UserNotice of CertificatePolicies support and more
5+
* Changes from 10.7.0 to 10.8.0 (2023-Apr-8)
6+
- x509.js
7+
- X509.getUserNotice supports NoticeReference
8+
- add asn1ToDisplayText method
9+
- base64x.js
10+
- add function msectozulu
11+
- add aryval for nested JSON value access
12+
- asn1.js
13+
- DERInteger refactoring
14+
- test/qunit-do-{asn1,asn1x509,base64x,x509-ext}.html
15+
- update and add some test cases for above
16+
417
custom X.509 extension support and utility functions
518
* Changes from 10.6.1 to 10.7.0 (2023-Mar-12)
619
- x509.js

README.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,22 @@ Public page is https://kjur.github.io/jsrsasign .
1818

1919
Your bugfix and pull request contribution are always welcomed :)
2020

21+
NOTICE FOR COMMING 11.0.0 RELEASE
22+
---------------------------------
23+
The "jsrsasign" library is a long lived JavaScript library from 2010 developed with old JavaScript style and backword compatibility. From coming release 11.0.0, following are planed and suport them gradually:
24+
- Stop to support Internet Explorer.
25+
- Stop to support bower.
26+
- Modern ECMA functions will be introduced such as Promise, let, Array methods or class.
27+
- API document generator will be changed from Jsdoc Toolkit to JSDoc3.
28+
- Module bandler will be used such as browserify or webpack.
29+
- Not to use YUI compressor.
30+
- Unit test framework will be changed from QUnit and mocha to jest.
31+
- W3C Web Crypto API support.
32+
- split into some modules besides jsrsasign have been all in package before 11.0.0.
33+
2134
NEWS
2235
----
36+
- 2023-Mar-12: [10.7.0 Release](https://github.com/kjur/jsrsasign/releases/tag/10.7.0). Now supports custom X.509 extension and custom OIDs by new "Add-on" architecture. ([See here in detail](https://github.com/kjur/jsrsasign/wiki/jsrsasign-Add-On2))
2337
- 2021-Nov-21: [10.5.0 Release](https://github.com/kjur/jsrsasign/releases/tag/10.5.0). Now supports secp521r1(P-521) ECDSA.
2438
- 2021-Apr-14: [Security advisory](https://github.com/kjur/jsrsasign/security/advisories/GHSA-27fj-mc8w-j9wg) and [update](https://github.com/kjur/jsrsasign/releases/tag/10.2.0) for CVE-2021-30246 RSA signature validation vulnerability published
2539
- 2020-Oct-05: jsrsasign won [Google Open Source Peer Bonus Award](https://opensource.googleblog.com/2020/10/announcing-latest-google-open-source.html). Thank you Google.
@@ -39,7 +53,8 @@ HIGHLIGHTS
3953
- no dependency to other library
4054
- no dependency to [W3C Web Cryptography API](https://www.w3.org/TR/WebCryptoAPI/) nor [OpenSSL](https://www.openssl.org/)
4155
- no dependency on newer ECMAScirpt function. So old browsers also supported.
42-
- very popular crypto library with [1M+ npm downloads/month](https://npm-stat.com/charts.html?package=jsrsasign&from=2016-05-01&to=2022-11-18)
56+
- very popular crypto library with [1M+ npm downloads/month](https://npm-stat.com/charts.html?package=jsrsasign&from=2016-05-01&to=2023-04-05)
57+
- supports "Add-on" architecture
4358

4459
INSTALL
4560
-------

api/files.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@ <h2><a href="symbols/src/asn1-1.0.js.html">asn1-1.0.js</a></h2>
535535

536536

537537
<dt class="heading">Version:</dt>
538-
<dd>jsrsasign 10.5.22 asn1 1.0.26 (2022-May-24)</dd>
538+
<dd>jsrsasign 10.8.0 asn1 1.0.27 (2023-Apr-08)</dd>
539539

540540

541541

@@ -687,7 +687,7 @@ <h2><a href="symbols/src/base64x-1.1.js.html">base64x-1.1.js</a></h2>
687687

688688

689689
<dt class="heading">Version:</dt>
690-
<dd>jsrsasign 10.7.0 base64x 1.1.31 (2023-Mar-11)</dd>
690+
<dd>jsrsasign 10.8.0 base64x 1.1.32 (2023-Apr-08)</dd>
691691

692692

693693

@@ -896,7 +896,7 @@ <h2><a href="symbols/src/x509-1.1.js.html">x509-1.1.js</a></h2>
896896

897897

898898
<dt class="heading">Version:</dt>
899-
<dd>jsrsasign 10.7.0 x509 2.1.2 (2023-Mar-11)</dd>
899+
<dd>jsrsasign 10.8.0 x509 2.1.3 (2023-Apr-08)</dd>
900900

901901

902902

api/symbols/KJUR.asn1.DERInteger.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -789,7 +789,8 @@ <h1 class="classTitle">
789789

790790
<pre class="code">new KJUR.asn1.DERInteger(123);
791791
new KJUR.asn1.DERInteger({'int': 123});
792-
new KJUR.asn1.DERInteger({'hex': '1fad'});</pre>
792+
new KJUR.asn1.DERInteger({'hex': '1fad'});
793+
new KJUR.asn1.DERInteger({'bigint': new BigInteger("1234", 10)});</pre>
793794

794795

795796

api/symbols/X509.html

Lines changed: 106 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -659,6 +659,19 @@ <h1 class="classTitle">
659659
</thead>
660660
<tbody>
661661

662+
<tr>
663+
<td class="attributes">&nbsp;</td>
664+
<td class="nameDescription">
665+
<div class="fixedFont"><b><a href="../symbols/X509.html#asn1ToDisplayText">asn1ToDisplayText</a></b>(pASN1)
666+
</div>
667+
<div class="description">convert ASN1Object parameter to DisplayText parameter
668+
This method converts from KJUR.asn1.ASN1Util#newObject paramter to
669+
<a href="../symbols/KJUR.asn1.x509.DisplayText.html">KJUR.asn1.x509.DisplayText</a> paramter
670+
for <a href="https://tools.ietf.org/html/rfc5280#section-4.2.1.4">
671+
DisplayText</a> ASN.1 structure.</div>
672+
</td>
673+
</tr>
674+
662675
<tr>
663676
<td class="attributes">&nbsp;</td>
664677
<td class="nameDescription">
@@ -1853,6 +1866,85 @@ <h1 class="classTitle">
18531866
Method Detail
18541867
</div>
18551868

1869+
<a name="asn1ToDisplayText"> </a>
1870+
<div class="fixedFont">
1871+
1872+
<span class="light">{Object}</span>
1873+
<b>asn1ToDisplayText</b>(pASN1)
1874+
1875+
</div>
1876+
<div class="description">
1877+
convert ASN1Object parameter to DisplayText parameter
1878+
This method converts from KJUR.asn1.ASN1Util#newObject paramter to
1879+
<a href="../symbols/KJUR.asn1.x509.DisplayText.html">KJUR.asn1.x509.DisplayText</a> paramter
1880+
for <a href="https://tools.ietf.org/html/rfc5280#section-4.2.1.4">
1881+
DisplayText</a> ASN.1 structure.
1882+
<pre>
1883+
DisplayText ::= CHOICE {
1884+
ia5String IA5String (SIZE (1..200)),
1885+
visibleString VisibleString (SIZE (1..200)),
1886+
bmpString BMPString (SIZE (1..200)),
1887+
utf8String UTF8String (SIZE (1..200)) }
1888+
</pre>
1889+
Result of this method can be passed to
1890+
<a href="../symbols/KJUR.asn1.x509.DisplayText.html">KJUR.asn1.x509.DisplayText</a> constructor.
1891+
1892+
1893+
</div>
1894+
1895+
1896+
1897+
<pre class="code">x = new X509();
1898+
x.asn1ToDisplayText({utf8str: {str: "aaa"}}) &rarr {type: 'utf8', str: 'aaa'}
1899+
x.asn1ToDisplayText({bmpstr: {str: "aaa"}}) &rarr {type: 'bmp', str: 'aaa'}</pre>
1900+
1901+
1902+
1903+
1904+
<dl class="detailList">
1905+
<dt class="heading">Parameters:</dt>
1906+
1907+
<dt>
1908+
<span class="light fixedFont">{Object}</span> <b>pASN1</b>
1909+
1910+
</dt>
1911+
<dd>ASN1Object paramter for DisplayText</dd>
1912+
1913+
</dl>
1914+
1915+
1916+
1917+
<dl class="detailList">
1918+
<dt class="heading">Since:</dt>
1919+
<dd>jsrsasign 10.8.0 x509 2.1.3</dd>
1920+
</dl>
1921+
</dl>
1922+
1923+
1924+
1925+
<dl class="detailList">
1926+
<dt class="heading">Returns:</dt>
1927+
1928+
<dd><span class="light fixedFont">{Object}</span> DisplayText paramter</dd>
1929+
1930+
</dl>
1931+
1932+
1933+
1934+
<dl class="detailList">
1935+
<dt class="heading">See:</dt>
1936+
1937+
<dd><a href="../symbols/X509.html#getDisplayText">X509#getDisplayText</a></dd>
1938+
1939+
<dd><a href="../symbols/KJUR.asn1.x509.DisplayText.html">KJUR.asn1.x509.DisplayText</a></dd>
1940+
1941+
<dd>KJUR.asn1.ASN1Util#newObject</dd>
1942+
1943+
</dl>
1944+
1945+
1946+
<hr />
1947+
18561948
<a name="c14nRDNArray"> </a>
18571949
<div class="fixedFont">
18581950

@@ -6448,20 +6540,28 @@ <h1 class="classTitle">
64486540
UserNotice ::= SEQUENCE {
64496541
noticeRef NoticeReference OPTIONAL,
64506542
explicitText DisplayText OPTIONAL }
6543+
NoticeReference ::= SEQUENCE {
6544+
organization DisplayText,
6545+
noticeNumbers SEQUENCE OF INTEGER }
64516546
</pre>
64526547
Result of this method can be passed to
6453-
<a href="../symbols/KJUR.asn1.x509.NoticeReference.html">KJUR.asn1.x509.NoticeReference</a> constructor.
6548+
<a href="../symbols/KJUR.asn1.x509.UserNotice.html">KJUR.asn1.x509.UserNotice</a> constructor.
64546549
<br/>
6455-
NOTE: NoticeReference parsing is currently not supported and
6456-
it will be ignored.
6550+
NOTE: NoticeReference supported from jsrsasign 10.8.0.
64576551

64586552

64596553
</div>
64606554

64616555

64626556

64636557
<pre class="code">x = new X509();
6464-
x.getUserNotice("30...") &rarr; {exptext: {type: 'utf8', str: 'aaa'}}</pre>
6558+
x.getUserNotice("30...") &rarr; {
6559+
noticeref: {
6560+
org: {type: 'utf8', str: 'test org'},
6561+
noticenum: [1]
6562+
},
6563+
exptext: {type: 'utf8', str: 'test text'}
6564+
}</pre>
64656565

64666566

64676567

@@ -6505,6 +6605,8 @@ <h1 class="classTitle">
65056605

65066606
<dd><a href="../symbols/X509.html#getPolicyQualifierInfo">X509#getPolicyQualifierInfo</a></dd>
65076607

6608+
<dd><a href="../symbols/KJUR.asn1.x509.UserNotice.html">KJUR.asn1.x509.UserNotice</a></dd>
6609+
65086610
</dl>
65096611

65106612

0 commit comments

Comments
 (0)