Skip to content

Commit

Permalink
10.5.16 release
Browse files Browse the repository at this point in the history
  • Loading branch information
kjur committed Apr 8, 2022
1 parent 86ae22d commit 3474c5d
Show file tree
Hide file tree
Showing 222 changed files with 21,044 additions and 17,760 deletions.
34 changes: 34 additions & 0 deletions ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,41 @@

ChangeLog for jsrsasign

Add NameConstraints extension and modify getEncodedHex to tohex
* Changes from 10.5.15 to 10.5.16 (2022-Apr-08)
- src/asn1x509.js
- NameConstraints and GeneralSubtree class added
- add support for nameConstraints in Extensions class
- remove old GeneralName code
- src/x509.js
- getExtNameConstraints and getGeneralSubbtree method added
- add support for nameConstraints in getParam method
- X509.getParam supports optional arguments:
- tbshex: to return hexadecimal tbsCertificate value
- nodnarray: delete array member of subject and issuer
in the result.
- src/x509crl.js
- X509CRL.getParam supports optional arguments:
- tbshex: to return hexadecimal tbsCertList value
- nodnarray: delete array member of subject and issuer
in the result.
- src/asn1.js
- ASN1Object.tohex() method added
- ASN1Object.getEncodedHex() method is now DEPRECATED.
Please use ASN1Object.tohex() instead.
- clean up some codes
- src/*.js
- update for ASN1Object.tohex()
- test/qunit-do-x509-ext.html
- getExtNameConstraints and getGeneralSubtree method test added
- test/qunit-do-asn1x509.html
- NameConstraints and GeneralSubtree class test added
- test/qunit-do-asn1-newobj.html
- int and tag test refactoring
- bugfix

X509.getExtCRLDistributionPointsURI small fix
* Changes from 10.5.14 to 10.5.15 (2022-Apr-06)
- src/x509.js
- fix X509.getExtCRLDistributionPointsURI. This returns
undefined when no CDP extension as specified in document
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ jsrsasign
[![githubsponsors](https://img.shields.io/badge/github-donate-yellow.svg)](https://github.com/sponsors/kjur)
[![cryptocurrency](https://img.shields.io/badge/crypto-donate-yellow.svg)](https://github.com/kjur/jsrsasign#cryptocurrency)

jsrsasign [TOP](https://kjur.github.io/jsrsasign/) | [github](https://github.com/kjur/jsrsasign) | [[Wiki|Home]] | [DOWNLOADS](https://github.com/kjur/jsrsasign/releases) | [TUTORIALS](https://github.com/kjur/jsrsasign/wiki#programming-tutorial) | [API REFERENCE](https://kjur.github.io/jsrsasign/api/) | [Online Tool](https://github.com/kjur/jsrsasign/wiki/jsrsasign-Online-Tools) | [DEMO](https://github.com/kjur/jsrsasign/wiki/jsrsasign-Demo) | [[NODE TOOL|Sample Node Tool List]] | [[AddOn|jsrsasign-Add-On]] | [DONATE](https://github.com/kjur/jsrsasign#donations)

The 'jsrsasign' (RSA-Sign JavaScript Library) is an opensource free cryptography library supporting RSA/RSAPSS/ECDSA/DSA signing/validation, ASN.1, PKCS#1/5/8 private/public key, X.509 certificate, CRL, OCSP, CMS SignedData, TimeStamp, CAdES JSON Web Signature/Token/Key in pure JavaScript.

Public page is https://kjur.github.io/jsrsasign .
Expand Down Expand Up @@ -37,7 +39,7 @@ HIGHLIGHTS
- no dependency to other library
- no dependency to [W3C Web Cryptography API](https://www.w3.org/TR/WebCryptoAPI/) nor [OpenSSL](https://www.openssl.org/)
- no dependency on newer ECMAScirpt function. So old browsers also supported.
- very popular crypto library with [0.6M+ npm downloads/month](https://npm-stat.com/charts.html?package=jsrsasign&from=2016-05-01&to=2022-02-23)
- very popular crypto library with [0.6M+ npm downloads/month](https://npm-stat.com/charts.html?package=jsrsasign&from=2016-05-01&to=2022-04-02)

INSTALL
-------
Expand Down
28 changes: 16 additions & 12 deletions api/files.html
Original file line number Diff line number Diff line change
Expand Up @@ -428,10 +428,14 @@ <h2>Classes</h2>

<li><a href="symbols/KJUR.asn1.x509.GeneralNames.html">KJUR.asn1.x509.GeneralNames</a></li>

<li><a href="symbols/KJUR.asn1.x509.GeneralSubtree.html">KJUR.asn1.x509.GeneralSubtree</a></li>

<li><a href="symbols/KJUR.asn1.x509.IssuerAltName.html">KJUR.asn1.x509.IssuerAltName</a></li>

<li><a href="symbols/KJUR.asn1.x509.KeyUsage.html">KJUR.asn1.x509.KeyUsage</a></li>

<li><a href="symbols/KJUR.asn1.x509.NameConstraints.html">KJUR.asn1.x509.NameConstraints</a></li>

<li><a href="symbols/KJUR.asn1.x509.NoticeReference.html">KJUR.asn1.x509.NoticeReference</a></li>

<li><a href="symbols/KJUR.asn1.x509.OCSPNoCheck.html">KJUR.asn1.x509.OCSPNoCheck</a></li>
Expand Down Expand Up @@ -525,7 +529,7 @@ <h2><a href="symbols/src/asn1-1.0.js.html">asn1-1.0.js</a></h2>


<dt class="heading">Version:</dt>
<dd>jsrsasign 10.5.4 asn1 1.0.23 (2022-Feb-14)</dd>
<dd>jsrsasign 10.5.16 asn1 1.0.24 (2022-Apr-08)</dd>



Expand All @@ -544,7 +548,7 @@ <h2><a href="symbols/src/asn1cades-1.0.js.html">asn1cades-1.0.js</a></h2>


<dt class="heading">Version:</dt>
<dd>jsrsasign 10.0.5 asn1cades 2.0.1 (2021-Jan-17)</dd>
<dd>jsrsasign 10.5.16 asn1cades 2.0.2 (2022-Apr-08)</dd>



Expand All @@ -563,7 +567,7 @@ <h2><a href="symbols/src/asn1cms-1.0.js.html">asn1cms-1.0.js</a></h2>


<dt class="heading">Version:</dt>
<dd>jsrsasign 10.1.5 asn1cms 2.0.4 (2021-Jan-17)</dd>
<dd>jsrsasign 10.5.16 asn1cms 2.0.5 (2022-Apr-08)</dd>



Expand All @@ -582,7 +586,7 @@ <h2><a href="symbols/src/asn1csr-1.0.js.html">asn1csr-1.0.js</a></h2>


<dt class="heading">Version:</dt>
<dd>jsrsasign 10.1.0 asn1csr 2.0.4 (2022-Mar-08)</dd>
<dd>jsrsasign 10.5.16 asn1csr 2.0.5 (2022-Apr-08)</dd>



Expand All @@ -601,7 +605,7 @@ <h2><a href="symbols/src/asn1hex-1.1.js.html">asn1hex-1.1.js</a></h2>


<dt class="heading">Version:</dt>
<dd>jsrsasign 10.5.12 asn1hex 1.2.13 (2022-Mar-13)</dd>
<dd>jsrsasign 10.5.16 asn1hex 1.2.14 (2022-Apr-08)</dd>



Expand All @@ -620,7 +624,7 @@ <h2><a href="symbols/src/asn1ocsp-1.0.js.html">asn1ocsp-1.0.js</a></h2>


<dt class="heading">Version:</dt>
<dd>jsrsasign 10.5.8 asn1ocsp 1.1.6 (2022-Feb-22)</dd>
<dd>jsrsasign 10.5.16 asn1ocsp 1.1.7 (2022-Apr-08)</dd>



Expand All @@ -639,7 +643,7 @@ <h2><a href="symbols/src/asn1tsp-1.0.js.html">asn1tsp-1.0.js</a></h2>


<dt class="heading">Version:</dt>
<dd>jsrsasign 10.1.4 asn1tsp 2.0.4 (2020-Nov-22)</dd>
<dd>jsrsasign 10.5.16 asn1tsp 2.0.5 (2022-Apr-08)</dd>



Expand All @@ -658,7 +662,7 @@ <h2><a href="symbols/src/asn1x509-1.0.js.html">asn1x509-1.0.js</a></h2>


<dt class="heading">Version:</dt>
<dd>jsrsasign 10.5.3 asn1x509 2.1.12 (2022-Feb-09)</dd>
<dd>jsrsasign 10.5.16 asn1x509 2.1.13 (2022-Apr-08)</dd>



Expand Down Expand Up @@ -734,7 +738,7 @@ <h2><a href="symbols/src/ecdsa-modified-1.0.js.html">ecdsa-modified-1.0.js</a></


<dt class="heading">Version:</dt>
<dd>jsrsasign 10.5.1 ecdsa-modified 1.2.1 (2021-Dec-01)</dd>
<dd>jsrsasign 10.5.16 ecdsa-modified 1.2.2 (2022-Apr-08)</dd>



Expand Down Expand Up @@ -810,7 +814,7 @@ <h2><a href="symbols/src/keyutil-1.0.js.html">keyutil-1.0.js</a></h2>


<dt class="heading">Version:</dt>
<dd>jsrsasign 10.5.14 keyutil 1.2.6 (2022-Mar-28)</dd>
<dd>jsrsasign 10.5.16 keyutil 1.2.7 (2022-Apr-08)</dd>



Expand Down Expand Up @@ -886,7 +890,7 @@ <h2><a href="symbols/src/x509-1.1.js.html">x509-1.1.js</a></h2>


<dt class="heading">Version:</dt>
<dd>jsrsasign 10.5.15 x509 2.0.15 (2022-Apr-06)</dd>
<dd>jsrsasign 10.5.16 x509 2.0.16 (2022-Apr-08)</dd>



Expand All @@ -905,7 +909,7 @@ <h2><a href="symbols/src/x509crl.js.html">x509crl.js</a></h2>


<dt class="heading">Version:</dt>
<dd>jsrsasign 10.5.7 x509crl 1.0.4 (2021-Feb-19)</dd>
<dd>jsrsasign 10.5.16 x509crl 1.0.5 (2022-Apr-08)</dd>



Expand Down
16 changes: 16 additions & 0 deletions api/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -428,10 +428,14 @@ <h2>Classes</h2>

<li><a href="symbols/KJUR.asn1.x509.GeneralNames.html">KJUR.asn1.x509.GeneralNames</a></li>

<li><a href="symbols/KJUR.asn1.x509.GeneralSubtree.html">KJUR.asn1.x509.GeneralSubtree</a></li>

<li><a href="symbols/KJUR.asn1.x509.IssuerAltName.html">KJUR.asn1.x509.IssuerAltName</a></li>

<li><a href="symbols/KJUR.asn1.x509.KeyUsage.html">KJUR.asn1.x509.KeyUsage</a></li>

<li><a href="symbols/KJUR.asn1.x509.NameConstraints.html">KJUR.asn1.x509.NameConstraints</a></li>

<li><a href="symbols/KJUR.asn1.x509.NoticeReference.html">KJUR.asn1.x509.NoticeReference</a></li>

<li><a href="symbols/KJUR.asn1.x509.OCSPNoCheck.html">KJUR.asn1.x509.OCSPNoCheck</a></li>
Expand Down Expand Up @@ -1240,6 +1244,12 @@ <h2><a href="symbols/KJUR.asn1.x509.GeneralNames.html">KJUR.asn1.x509.GeneralNam
</div>
<hr />

<div>
<h2><a href="symbols/KJUR.asn1.x509.GeneralSubtree.html">KJUR.asn1.x509.GeneralSubtree</a></h2>
GeneralSubtree ASN.1 structure class
</div>
<hr />

<div>
<h2><a href="symbols/KJUR.asn1.x509.IssuerAltName.html">KJUR.asn1.x509.IssuerAltName</a></h2>
IssuerAltName ASN.1 structure class
Expand All @@ -1252,6 +1262,12 @@ <h2><a href="symbols/KJUR.asn1.x509.KeyUsage.html">KJUR.asn1.x509.KeyUsage</a></
</div>
<hr />

<div>
<h2><a href="symbols/KJUR.asn1.x509.NameConstraints.html">KJUR.asn1.x509.NameConstraints</a></h2>
NameConstraints ASN.1 structure class
</div>
<hr />

<div>
<h2><a href="symbols/KJUR.asn1.x509.NoticeReference.html">KJUR.asn1.x509.NoticeReference</a></h2>
NoticeReference ASN.1 structure class
Expand Down
4 changes: 4 additions & 0 deletions api/symbols/ASN1HEX.html
Original file line number Diff line number Diff line change
Expand Up @@ -433,10 +433,14 @@ <h2>Classes</h2>

<li><a href="../symbols/KJUR.asn1.x509.GeneralNames.html">KJUR.asn1.x509.GeneralNames</a></li>

<li><a href="../symbols/KJUR.asn1.x509.GeneralSubtree.html">KJUR.asn1.x509.GeneralSubtree</a></li>

<li><a href="../symbols/KJUR.asn1.x509.IssuerAltName.html">KJUR.asn1.x509.IssuerAltName</a></li>

<li><a href="../symbols/KJUR.asn1.x509.KeyUsage.html">KJUR.asn1.x509.KeyUsage</a></li>

<li><a href="../symbols/KJUR.asn1.x509.NameConstraints.html">KJUR.asn1.x509.NameConstraints</a></li>

<li><a href="../symbols/KJUR.asn1.x509.NoticeReference.html">KJUR.asn1.x509.NoticeReference</a></li>

<li><a href="../symbols/KJUR.asn1.x509.OCSPNoCheck.html">KJUR.asn1.x509.OCSPNoCheck</a></li>
Expand Down
4 changes: 4 additions & 0 deletions api/symbols/Base64x.html
Original file line number Diff line number Diff line change
Expand Up @@ -433,10 +433,14 @@ <h2>Classes</h2>

<li><a href="../symbols/KJUR.asn1.x509.GeneralNames.html">KJUR.asn1.x509.GeneralNames</a></li>

<li><a href="../symbols/KJUR.asn1.x509.GeneralSubtree.html">KJUR.asn1.x509.GeneralSubtree</a></li>

<li><a href="../symbols/KJUR.asn1.x509.IssuerAltName.html">KJUR.asn1.x509.IssuerAltName</a></li>

<li><a href="../symbols/KJUR.asn1.x509.KeyUsage.html">KJUR.asn1.x509.KeyUsage</a></li>

<li><a href="../symbols/KJUR.asn1.x509.NameConstraints.html">KJUR.asn1.x509.NameConstraints</a></li>

<li><a href="../symbols/KJUR.asn1.x509.NoticeReference.html">KJUR.asn1.x509.NoticeReference</a></li>

<li><a href="../symbols/KJUR.asn1.x509.OCSPNoCheck.html">KJUR.asn1.x509.OCSPNoCheck</a></li>
Expand Down
17 changes: 11 additions & 6 deletions api/symbols/KEYUTIL.html
Original file line number Diff line number Diff line change
Expand Up @@ -433,10 +433,14 @@ <h2>Classes</h2>

<li><a href="../symbols/KJUR.asn1.x509.GeneralNames.html">KJUR.asn1.x509.GeneralNames</a></li>

<li><a href="../symbols/KJUR.asn1.x509.GeneralSubtree.html">KJUR.asn1.x509.GeneralSubtree</a></li>

<li><a href="../symbols/KJUR.asn1.x509.IssuerAltName.html">KJUR.asn1.x509.IssuerAltName</a></li>

<li><a href="../symbols/KJUR.asn1.x509.KeyUsage.html">KJUR.asn1.x509.KeyUsage</a></li>

<li><a href="../symbols/KJUR.asn1.x509.NameConstraints.html">KJUR.asn1.x509.NameConstraints</a></li>

<li><a href="../symbols/KJUR.asn1.x509.NoticeReference.html">KJUR.asn1.x509.NoticeReference</a></li>

<li><a href="../symbols/KJUR.asn1.x509.OCSPNoCheck.html">KJUR.asn1.x509.OCSPNoCheck</a></li>
Expand Down Expand Up @@ -1899,14 +1903,15 @@ <h5>EXAMPLE</h5>



<pre class="code">KEUUTIL.getPEM(publicKey) =&gt; generates PEM PKCS#8 public key
KEUUTIL.getPEM(privateKey, "PKCS1PRV") =&gt; generates PEM PKCS#1 plain private key
KEUUTIL.getPEM(privateKey, "PKCS5PRV", "pass") =&gt; generates PEM PKCS#5 encrypted private key
<pre class="code">KEUUTIL.getPEM(publicKey) &rarr; generates PEM PKCS#8 public key
KEUUTIL.getPEM(privateKey) &rarr; generates PEM PKCS#8 plain private key by default
KEUUTIL.getPEM(privateKey, "PKCS1PRV") &rarr; generates PEM PKCS#1 plain private key
KEUUTIL.getPEM(privateKey, "PKCS5PRV", "pass") &rarr; generates PEM PKCS#5 encrypted private key
with DES-EDE3-CBC (DEFAULT)
KEUUTIL.getPEM(privateKey, "PKCS5PRV", "pass", "DES-CBC") =&gt; generates PEM PKCS#5 encrypted
KEUUTIL.getPEM(privateKey, "PKCS5PRV", "pass", "DES-CBC") &rarr; generates PEM PKCS#5 encrypted
private key with DES-CBC
KEUUTIL.getPEM(privateKey, "PKCS8PRV") =&gt; generates PEM PKCS#8 plain private key
KEUUTIL.getPEM(privateKey, "PKCS8PRV", "pass") =&gt; generates PEM PKCS#8 encrypted private key
KEUUTIL.getPEM(privateKey, "PKCS8PRV") &rarr; generates PEM PKCS#8 plain private key
KEUUTIL.getPEM(privateKey, "PKCS8PRV", "pass") &rarr; generates PEM PKCS#8 encrypted private key
with PBKDF2_HmacSHA1_3DES</pre>


Expand Down
Loading

0 comments on commit 3474c5d

Please sign in to comment.