Skip to content

Commit

Permalink
10.5.8 release
Browse files Browse the repository at this point in the history
  • Loading branch information
kjur committed Feb 24, 2022
1 parent 77f3961 commit ba87473
Show file tree
Hide file tree
Showing 26 changed files with 4,518 additions and 4,068 deletions.
13 changes: 11 additions & 2 deletions ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,18 @@

ChangeLog for jsrsasign

* Changes from 10.5.7 to next release
- x509.js
OCSP CertID and X509 class update
* Changes from 10.5.7 to 10.5.8 (2022-Feb-25)
- src/asn1ocsp.js
- CertID class refactoring
- CertID.getParamByCerts method added
- src/x509.js
- DEPRECATED getPublicKeyHex method (use getSPKI instead)
- getSPKI, getSPKIValue method added
- getExtCRLDistributionPointsURI bugfix
- API document fix
- test/qunit-do-{asn1ocsp,x509-ext,x509,x509-v1}.html
- test case update and bugfix for above updates.

X509CRL.findRevCert bugfix for empty revCerts
* Changes from 10.5.6 to 10.5.7 (2022-Feb-19)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,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-04)
- 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)

INSTALL
-------
Expand Down
4 changes: 2 additions & 2 deletions api/files.html
Original file line number Diff line number Diff line change
Expand Up @@ -620,7 +620,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.4.0 asn1ocsp 1.1.5 (2021-Aug-17)</dd>
<dd>jsrsasign 10.5.8 asn1ocsp 1.1.6 (2022-Feb-22)</dd>



Expand Down Expand Up @@ -886,7 +886,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.3 x509 2.0.12 (2022-Feb-10)</dd>
<dd>jsrsasign 10.5.8 x509 2.0.13 (2022-Feb-25)</dd>



Expand Down
89 changes: 89 additions & 0 deletions api/symbols/KJUR.asn1.ocsp.CertID.html
Original file line number Diff line number Diff line change
Expand Up @@ -589,6 +589,15 @@ <h1 class="classTitle">
</thead>
<tbody>

<tr>
<td class="attributes">&nbsp;</td>
<td class="nameDescription">
<div class="fixedFont"><b><a href="../symbols/KJUR.asn1.ocsp.CertID.html#getParamByCerts">getParamByCerts</a></b>(issuerCert, subjectCert, algName, associative)
</div>
<div class="description">calculate CertID parameter by certificates.</div>
</td>
</tr>

<tr>
<td class="attributes">&nbsp;</td>
<td class="nameDescription">
Expand Down Expand Up @@ -719,6 +728,79 @@ <h1 class="classTitle">
Method Detail
</div>

<a name="getParamByCerts"> </a>
<div class="fixedFont">


<b>getParamByCerts</b>(issuerCert, subjectCert, algName, associative)

</div>
<div class="description">
calculate CertID parameter by certificates.<br/>
This method calculates issuer name hash, issuer key hash and subject serial
number then returns an associative array with alg, issname, isskey and sbjsn members.


</div>



<pre class="code">o = new KJUR.asn1.ocsp.CertID();
o.getParamByCerts("-----BEGIN...", "-----BEGIN...", "sha256") &rarr;
{
alg: "sha256",
issname: "12abcd...",
isskey: "23cdef...",
sbjsn: "57b3..."
}</pre>




<dl class="detailList">
<dt class="heading">Parameters:</dt>

<dt>
<span class="light fixedFont">{string}</span> <b>issuerCert</b>

</dt>
<dd>string of PEM issuer certificate</dd>

<dt>
<span class="light fixedFont">{string}</span> <b>subjectCert</b>

</dt>
<dd>string of PEM subject certificate to be verified by OCSP</dd>

<dt>
<span class="light fixedFont">{string}</span> <b>algName</b>

</dt>
<dd>hash algorithm name used for above arguments (ex. "sha1") DEFAULT: sha1</dd>

<dt>
<span class="light fixedFont">{object}</span> <b>associative</b>

</dt>
<dd>array with alg, issname, isskey and sbjsn members</dd>

</dl>



<dl class="detailList">
<dt class="heading">Since:</dt>
<dd>jsrsasign 10.5.7 asn1ocsp 1.1.6</dd>
</dl>
</dl>






<hr />

<a name="setByCert"> </a>
<div class="fixedFont">

Expand Down Expand Up @@ -765,6 +847,13 @@ <h1 class="classTitle">
</dl>


<dl class="detailList">
<dt class="heading">Deprecated:</dt>
<dt>
since jsrsasign 10.5.7 asn1ocsp 1.1.6. Please use setByParam instead.
</dt>
</dl>


<dl class="detailList">
<dt class="heading">Since:</dt>
Expand Down
2 changes: 1 addition & 1 deletion api/symbols/KJUR.asn1.x509.OCSPNoCheck.html
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,7 @@ <h1 class="classTitle">

<dd><a href="../symbols/KJUR.asn1.x509.Extensions.html">KJUR.asn1.x509.Extensions</a></dd>

<dd><a href="../symbols/X509.html#getExtOCSPNoCheck">X509#getExtOCSPNoCheck</a></dd>
<dd>X509#getExtOCSPNoCheck</dd>

</dl>

Expand Down
2 changes: 1 addition & 1 deletion api/symbols/KJUR.asn1.x509.OCSPNonce.html
Original file line number Diff line number Diff line change
Expand Up @@ -664,7 +664,7 @@ <h1 class="classTitle">

<dd><a href="../symbols/KJUR.asn1.x509.Extensions.html">KJUR.asn1.x509.Extensions</a></dd>

<dd><a href="../symbols/X509.html#getExtOCSPNonce">X509#getExtOCSPNonce</a></dd>
<dd>X509#getExtOCSPNonce</dd>

</dl>

Expand Down
Loading

0 comments on commit ba87473

Please sign in to comment.