Skip to content

Commit

Permalink
10.5.27 release
Browse files Browse the repository at this point in the history
  • Loading branch information
kjur committed Aug 19, 2022
1 parent 6513aca commit c665ebc
Show file tree
Hide file tree
Showing 21 changed files with 543 additions and 362 deletions.
8 changes: 8 additions & 0 deletions ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@

ChangeLog for jsrsasign

extend CertificationRequestInfo class for challengePassword and unstructuredName
* Changes from 10.5.26 to 10.5.27 (2022-Aug-19)
- src/asn1csr.js
- CertificationRequestInfo class
- add support for challengePassword and unstructuredName (#522)
- "attrs" member support in constructure argument
- test/qunit-do-asn1csr.html

CSRUtil class enhancement
* Changes from 10.5.25 to 10.5.26 (2022-Jul-14)
- src/asn1csr.js
Expand Down
2 changes: 1 addition & 1 deletion api/files.html
Original file line number Diff line number Diff line change
Expand Up @@ -586,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.5.26 asn1csr 2.0.6 (2022-Jul-14)</dd>
<dd>jsrsasign 10.5.27 asn1csr 2.0.7 (2022-Aug-19)</dd>



Expand Down
4 changes: 2 additions & 2 deletions api/symbols/KJUR.asn1.cms.Attribute.html
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ <h1 class="classTitle">
This is an abstract class for CMS attribute
ASN.1 encoder as defined in
<a href="https://tools.ietf.org/html/rfc5652#section-5.3">
RFC 5652 CMS 5.3 SignerInfo.</div>
RFC 5652 CMS 5.3 SignerInfo</a>.</div>
</td>
</tr>
</tbody>
Expand Down Expand Up @@ -667,7 +667,7 @@ <h1 class="classTitle">
This is an abstract class for CMS attribute
ASN.1 encoder as defined in
<a href="https://tools.ietf.org/html/rfc5652#section-5.3">
RFC 5652 CMS 5.3 SignerInfo.
RFC 5652 CMS 5.3 SignerInfo</a>.
<pre>
Attributes ::= SET OF Attribute
Attribute ::= SEQUENCE {
Expand Down
33 changes: 30 additions & 3 deletions api/symbols/KJUR.asn1.csr.CertificationRequestInfo.html
Original file line number Diff line number Diff line change
Expand Up @@ -617,13 +617,24 @@ <h1 class="classTitle">
version INTEGER { v1(0) } (v1,...),
subject Name,
subjectPKInfo SubjectPublicKeyInfo{{ PKInfoAlgorithms }},
attributes [0] Attributes{{ CRIAttributes }} }
attributes [0] Attributes {{ CRIAttributes }} }
</pre>
<br/>
<br/>
CAUTION:
NOTE1:
Argument "params" JSON value format have been changed without
backward compatibility since jsrsasign 9.0.0 asn1csr 2.0.0.
backward compatibility since jsrsasign 9.0.0 asn1csr 2.0.0.<br/>
NOTE2:
From jsrsasign 10.5.27, "attrs" member in the constructor argument
object have been supported to support more Attributes type.
Currently following Attribute types are supported:
<ul>
<li>challengePassword</li>
<li>unstructuredName - member "names" will be array of
DirectoryStrings. (ex. [{prnstr: "aaa"},{utf8str: "bbb"}]</li>
<li>extensionRequest - any <a href="../symbols/KJUR.asn1.x509.Extensions.html">KJUR.asn1.x509.Extensions</a>
constructor argument can be specified for "ext" member value.</li>
</ul>

</div>

Expand All @@ -635,6 +646,20 @@ <h1 class="classTitle">
extreq: [
{extname:"subjectAltName", array:[{dns:"example.com"}]}
]});
csri.tohex() &rarr; "30..."

// From jsrsasign 10.5.27, "attrs" supported
csri = new KJUR.asn1.csr.CertificationRequestInfo({
subject: {str: '/C=US/CN=b'},
sbjpubkey: <<PUBLIC KEY PEM>>,
attrs: [
{attr: "challengePassword", password: "secret"},
{attr: "unstructuredName", names: [{utf8str:"aaa"},{ia5str:"bbb"}]},
{attr: "extensionRequest", ext: [
{extname: "basicConstraints", cA: true},
{extname: "subjectKeyIdentifier", kid: "1a2b..."}
]}
]});
csri.tohex() &rarr; "30..."</pre>


Expand Down Expand Up @@ -668,6 +693,8 @@ <h1 class="classTitle">

<dd><a href="../symbols/KJUR.asn1.csr.CertificationRequest.html">KJUR.asn1.csr.CertificationRequest</a></dd>

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

</dl>


Expand Down
6 changes: 3 additions & 3 deletions api/symbols/src/asn1cades-1.0.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@
<span class='line'>251</span> </span><span class="WHIT"> </span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">params</span><span class="WHIT"> </span><span class="PUNC">!=</span><span class="WHIT"> </span><span class="NAME">undefined</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="NAME">this.setByParam</span><span class="PUNC">(</span><span class="NAME">params</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>252</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>253</span> </span><span class="NAME">extendClass</span><span class="PUNC">(</span><span class="NAME">KJUR.asn1.cades.SignaturePolicyIdentifier</span><span class="PUNC">,</span><span class="WHIT">
<span class='line'>254</span> </span><span class="WHIT"> </span><span class="NAME">KJUR.asn1.cms.Attribute</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>254</span> </span><span class="WHIT"> </span><span class="NAME">KJUR.asn1.cms.Attribute</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>255</span>
<span class='line'>256</span> </span><span class="COMM">/**
<span class='line'>257</span> * RFC 5126 CAdES SignaturePolicyId ASN.1 structure class&lt;br/>
Expand Down Expand Up @@ -564,7 +564,7 @@
<span class='line'>557</span> </span><span class="WHIT"> </span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">params</span><span class="WHIT"> </span><span class="PUNC">!=</span><span class="WHIT"> </span><span class="KEYW">null</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="NAME">this.setByParam</span><span class="PUNC">(</span><span class="NAME">params</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>558</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>559</span> </span><span class="NAME">extendClass</span><span class="PUNC">(</span><span class="NAME">KJUR.asn1.cades.SignatureTimeStamp</span><span class="PUNC">,</span><span class="WHIT">
<span class='line'>560</span> </span><span class="WHIT"> </span><span class="NAME">KJUR.asn1.cms.Attribute</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>560</span> </span><span class="WHIT"> </span><span class="NAME">KJUR.asn1.cms.Attribute</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>561</span>
<span class='line'>562</span> </span><span class="COMM">/**
<span class='line'>563</span> * class for RFC 5126 CAdES CompleteCertificateRefs attribute&lt;br/>
Expand Down Expand Up @@ -645,7 +645,7 @@
<span class='line'>638</span> </span><span class="WHIT"> </span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">params</span><span class="WHIT"> </span><span class="PUNC">!=</span><span class="WHIT"> </span><span class="NAME">undefined</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="NAME">this.setByParam</span><span class="PUNC">(</span><span class="NAME">params</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>639</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>640</span> </span><span class="NAME">extendClass</span><span class="PUNC">(</span><span class="NAME">KJUR.asn1.cades.CompleteCertificateRefs</span><span class="PUNC">,</span><span class="WHIT">
<span class='line'>641</span> </span><span class="WHIT"> </span><span class="NAME">KJUR.asn1.cms.Attribute</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>641</span> </span><span class="WHIT"> </span><span class="NAME">KJUR.asn1.cms.Attribute</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>642</span>
<span class='line'>643</span> </span><span class="COMM">/**
<span class='line'>644</span> * class for OtherCertID ASN.1 object
Expand Down
2 changes: 1 addition & 1 deletion api/symbols/src/asn1cms-1.0.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
<span class='line'> 90</span> * This is an abstract class for CMS attribute
<span class='line'> 91</span> * ASN.1 encoder as defined in
<span class='line'> 92</span> * &lt;a href="https://tools.ietf.org/html/rfc5652#section-5.3">
<span class='line'> 93</span> * RFC 5652 CMS 5.3 SignerInfo.
<span class='line'> 93</span> * RFC 5652 CMS 5.3 SignerInfo&lt;/a>.
<span class='line'> 94</span> * &lt;pre>
<span class='line'> 95</span> * Attributes ::= SET OF Attribute
<span class='line'> 96</span> * Attribute ::= SEQUENCE {
Expand Down
Loading

0 comments on commit c665ebc

Please sign in to comment.