Skip to content

Commit

Permalink
10.0.4 release
Browse files Browse the repository at this point in the history
  • Loading branch information
kjur committed Oct 23, 2020
1 parent 13ebb5b commit 38ff72e
Show file tree
Hide file tree
Showing 27 changed files with 1,541 additions and 508 deletions.
10 changes: 10 additions & 0 deletions ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@

ChangeLog for jsrsasign

add methods to modify some extenstion 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
Expand Down
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ FILES_MIN = \
min/x509-1.1.min.js \
min/jws-3.3.min.js \
min/jwsjs-2.0.min.js \
min/x509crl.min.js
min/x509crl.min.js \
min/nodeutil-1.0.min.js

FILES_EXT_MIN = \
ext/ec-min.js \
Expand All @@ -43,7 +44,7 @@ gitadd-all-doc:
git add api/*.html api/symbols/*.html api/symbols/src/*.html

gitadd-release:
git add ChangeLog.txt Makefile bower.json jsrsasign-*-min.js min/*.js src/*.js npm/package.json npm/lib/jsrsasign*.js npm/lib/{header,footer,lib}.js src/*.js test/qunit-do-*.html README.md npm/README.md tool/*.html
git add ChangeLog.txt Makefile bower.json jsrsasign-*-min.js min/*.js src/*.js npm/package.json npm/lib/jsrsasign*.js npm/lib/{header,footer,lib}.js src/*.js test/qunit-do-*.html README.md npm/README.md tool/*.html npm_util/*.* npm_util/lib/*.*

gitadd: gitadd-all-doc gitadd-release
@echo done
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,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=2020-10-11)
- very popular crypto library with [0.6M+ npm downloads/month](https://npm-stat.com/charts.html?package=jsrsasign&from=2016-05-01&to=2020-10-20)

INSTALL
-------
Expand Down
4 changes: 2 additions & 2 deletions api/files.html
Original file line number Diff line number Diff line change
Expand Up @@ -821,7 +821,7 @@ <h2><a href="symbols/src/nodeutil-1.0.js.html">nodeutil-1.0.js</a></h2>


<dt class="heading">Version:</dt>
<dd>1.0.0 (2015-Nov-11)</dd>
<dd>jsrsasign-util 1.0.1 nodeutil 1.0.1 (2020-Oct-23)</dd>



Expand Down Expand Up @@ -878,7 +878,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.0.3 x509 2.0.7 (2020-Oct-21)</dd>
<dd>jsrsasign 10.0.4 x509 2.0.8 (2020-Oct-23)</dd>



Expand Down
250 changes: 250 additions & 0 deletions api/symbols/X509.html
Original file line number Diff line number Diff line change
Expand Up @@ -1321,6 +1321,41 @@ <h1 class="classTitle">
</td>
</tr>

<tr>
<td class="attributes">&nbsp;</td>
<td class="nameDescription">
<div class="fixedFont"><b><a href="../symbols/X509.html#updateAIACAIssuer">updateAIACAIssuer</a></b>(aExt, newURI)
</div>
<div class="description">update authorityInfoAccess caIssuer in parameter<br/>
This method updates "caIssuer" accessMethod URI of
AuthorityInfoAccess extension
in the extension parameter array if it exists.</div>
</td>
</tr>

<tr>
<td class="attributes">&nbsp;</td>
<td class="nameDescription">
<div class="fixedFont"><b><a href="../symbols/X509.html#updateAIAOCSP">updateAIAOCSP</a></b>(aExt, newURI)
</div>
<div class="description">update authorityInfoAccess ocsp in parameter<br/>
This method updates "ocsp" accessMethod URI of
AuthorityInfoAccess extension
in the extension parameter array if it exists.</div>
</td>
</tr>

<tr>
<td class="attributes">&nbsp;</td>
<td class="nameDescription">
<div class="fixedFont"><b><a href="../symbols/X509.html#updateCDPFullURI">updateCDPFullURI</a></b>(aExt, newURI)
</div>
<div class="description">update CRLDistributionPoints Full URI in parameter<br/>
This method updates Full URI of CRLDistributionPoints extension
in the extension parameter array if it exists.</div>
</td>
</tr>

<tr>
<td class="attributes">&nbsp;</td>
<td class="nameDescription">
Expand Down Expand Up @@ -5774,6 +5809,221 @@ <h1 class="classTitle">



<hr />

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


<b>updateAIACAIssuer</b>(aExt, newURI)

</div>
<div class="description">
update authorityInfoAccess caIssuer in parameter<br/>
This method updates "caIssuer" accessMethod URI of
AuthorityInfoAccess extension
in the extension parameter array if it exists.


</div>



<pre class="code">aExt = [
{extname:"authorityKeyIdentifier",kid:{hex:"12ab..."}},
{extname:"authoriyInfoAccess",
array:[
{ocsp: "http://ocsp1.example.com"},
{caissuer: "http://example.com/a.crt"}
]}
];
x = new X509();
x.updateAIACAIssuer(aExt, "http://example.net/b.crt");</pre>




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

<dt>
<span class="light fixedFont">{Array}</span> <b>aExt</b>

</dt>
<dd>array of extension parameters</dd>

<dt>
<span class="light fixedFont">{String}</span> <b>newURI</b>

</dt>
<dd>string of new uri</dd>

</dl>



<dl class="detailList">
<dt class="heading">Since:</dt>
<dd>jsrsasign 10.0.4 x509 2.0.8</dd>
</dl>
</dl>





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

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

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

</dl>


<hr />

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


<b>updateAIAOCSP</b>(aExt, newURI)

</div>
<div class="description">
update authorityInfoAccess ocsp in parameter<br/>
This method updates "ocsp" accessMethod URI of
AuthorityInfoAccess extension
in the extension parameter array if it exists.


</div>



<pre class="code">aExt = [
{extname:"authorityKeyIdentifier",kid:{hex:"12ab..."}},
{extname:"authoriyInfoAccess",
array:[
{ocsp: "http://ocsp1.example.com"},
{caissuer: "http://example.com/a.crt"}
]}
];
x = new X509();
x.updateAIAOCSP(aExt, "http://ocsp2.example.net");</pre>




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

<dt>
<span class="light fixedFont">{Array}</span> <b>aExt</b>

</dt>
<dd>array of extension parameters</dd>

<dt>
<span class="light fixedFont">{String}</span> <b>newURI</b>

</dt>
<dd>string of new uri</dd>

</dl>



<dl class="detailList">
<dt class="heading">Since:</dt>
<dd>jsrsasign 10.0.4 x509 2.0.8</dd>
</dl>
</dl>





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

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

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

</dl>


<hr />

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


<b>updateCDPFullURI</b>(aExt, newURI)

</div>
<div class="description">
update CRLDistributionPoints Full URI in parameter<br/>
This method updates Full URI of CRLDistributionPoints extension
in the extension parameter array if it exists.


</div>



<pre class="code">aExt = [
{extname:"authorityKeyIdentifier",kid:{hex:"12ab..."}},
{extname:"cRLDistributionPoints",
array:[{dpname:{full:[{uri:"http://example.com/a.crl"}]}}]},
];
x = new X509();
x.updateCDPFullURI(aExt, "http://crl2.example.new/b.crl");</pre>




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

<dt>
<span class="light fixedFont">{Array}</span> <b>aExt</b>

</dt>
<dd>array of extension parameters</dd>

<dt>
<span class="light fixedFont">{String}</span> <b>newURI</b>

</dt>
<dd>string of new uri</dd>

</dl>



<dl class="detailList">
<dt class="heading">Since:</dt>
<dd>jsrsasign 10.0.4 x509 2.0.8</dd>
</dl>
</dl>





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

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

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

</dl>


<hr />

<a name="verifySignature"> </a>
Expand Down
Loading

0 comments on commit 38ff72e

Please sign in to comment.