Skip to content

Commit

Permalink
6.1.3 release
Browse files Browse the repository at this point in the history
  • Loading branch information
kjur committed Oct 15, 2016
1 parent cf31c93 commit 3ded8ff
Show file tree
Hide file tree
Showing 16 changed files with 617 additions and 304 deletions.
6 changes: 6 additions & 0 deletions ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@

ChangeLog for jsrsasign

* Changes between 6.1.2 to 6.1.3 (2016-Oct-15)
- asn1csr 1.0.0 to 1.1.1
- CSRUtil.getInfo method added to parse CSR
- asn1ocsp
- OCSPUtil.getOCSPResponseInfo API document added

* Changes between 6.1.1 to 6.1.2 (2016-Oct-08)
- OCSP Response support
- asn1hex 1.1.6 to 1.1.7
Expand Down
2 changes: 1 addition & 1 deletion api/files.html
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ <h2><a href="symbols/src/asn1csr-1.0.js.html">asn1csr-1.0.js</a></h2>


<dt class="heading">Version:</dt>
<dd>1.0.0 (2015-Sep-12)</dd>
<dd>1.0.1 (2016-Oct-15)</dd>



Expand Down
76 changes: 75 additions & 1 deletion api/symbols/KJUR.asn1.csr.CSRUtil.html
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,17 @@ <h1 class="classTitle">
</thead>
<tbody>

<tr>
<td class="attributes">&lt;static&gt; &nbsp;</td>
<td class="nameDescription">
<div class="fixedFont">KJUR.asn1.csr.CSRUtil.<b><a href="../symbols/KJUR.asn1.csr.CSRUtil.html#.getInfo">getInfo</a></b>(sPEM)
</div>
<div class="description">get field values from CSR/PKCS#10 PEM string<br/>
This method parses PEM CSR/PKCS#1 string and retrieves
subject name and public key.</div>
</td>
</tr>

<tr>
<td class="attributes">&lt;static&gt; &nbsp;</td>
<td class="nameDescription">
Expand Down Expand Up @@ -549,6 +560,69 @@ <h1 class="classTitle">
Method Detail
</div>

<a name=".getInfo"> </a>
<div class="fixedFont">&lt;static&gt;

<span class="light">{Object}</span>
<span class="light">KJUR.asn1.csr.CSRUtil.</span><b>getInfo</b>(sPEM)

</div>
<div class="description">
get field values from CSR/PKCS#10 PEM string<br/>
This method parses PEM CSR/PKCS#1 string and retrieves
subject name and public key. Following parameters are available in the
resulted JSON object.
<ul>
<li>subject.name - subject name string (ex. /C=US/O=Test)</li>
<li>subject.hex - hexadecimal string of X.500 Name of subject</li>
<li>pubkey.obj - subject public key object such as RSAKey, KJUR.crypto.{ECDSA,DSA}</li>
<li>pubkey.hex - hexadecimal string of subject public key</li>
</ul>


</div>



<pre class="code">o = KJUR.asn1.csr.CSRUtil.getInfo("-----BEGIN CERTIFICATE REQUEST...");
console.log(o.subject.name) &rarr; "/C=US/O=Test"</pre>




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

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

</dt>
<dd>PEM string of CSR/PKCS#10</dd>

</dl>



<dl class="detailList">
<dt class="heading">Since:</dt>
<dd>jsrsasign 6.1.3 asn1csr 1.0.1</dd>
</dl>
</dl>



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

<dd><span class="light fixedFont">{Object}</span> JSON object with parsed parameters such as name or public key</dd>

</dl>




<hr />

<a name=".newCSRPEM"> </a>
<div class="fixedFont">&lt;static&gt;

Expand Down Expand Up @@ -615,7 +689,7 @@ <h1 class="classTitle">

<dl class="detailList">
<dt class="heading">Since:</dt>
<dd>jsrsasign 4.8.7 asn1csr 1.0.0</dd>
<dd>jsrsasign 4.9.0 asn1csr 1.0.0</dd>
</dl>
</dl>

Expand Down
10 changes: 8 additions & 2 deletions api/symbols/KJUR.asn1.csr.CertificationRequest.html
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,13 @@ <h1 class="classTitle">
// CertificationRequest ::= SEQUENCE {
// certificationRequestInfo CertificationRequestInfo,
// signatureAlgorithm AlgorithmIdentifier{{ SignatureAlgorithms }},
// signature BIT STRING }</pre>
// signature BIT STRING }
//
// CertificationRequestInfo ::= SEQUENCE {
// version INTEGER { v1(0) } (v1,...),
// subject Name,
// subjectPKInfo SubjectPublicKeyInfo{{ PKInfoAlgorithms }},
// attributes [0] Attributes{{ CRIAttributes }} }</pre>



Expand All @@ -583,7 +589,7 @@ <h1 class="classTitle">

<dl class="detailList">
<dt class="heading">Since:</dt>
<dd>jsrsasign 4.8.7 asn1csr 1.0.0</dd>
<dd>jsrsasign 4.9.0 asn1csr 1.0.0</dd>
</dl>


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

<dl class="detailList">
<dt class="heading">Since:</dt>
<dd>jsrsasign 4.8.7 asn1csr 1.0.0</dd>
<dd>jsrsasign 4.9.0 asn1csr 1.0.0</dd>
</dl>


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

<tr>
<td class="attributes">&lt;static&gt; &nbsp;</td>
<td class="nameDescription">
<div class="fixedFont">KJUR.asn1.ocsp.OCSPUtil.<b><a href="../symbols/KJUR.asn1.ocsp.OCSPUtil.html#.getOCSPResponseInfo">getOCSPResponseInfo</a></b>(h)
</div>
<div class="description">parse OCSPResponse<br/>
This static method parse a hexadecimal string of DER OCSPResponse and
returns JSON object of its parsed result.</div>
</td>
</tr>

<tr>
<td class="attributes">&lt;static&gt; &nbsp;</td>
<td class="nameDescription">
Expand Down Expand Up @@ -554,6 +565,68 @@ <h1 class="classTitle">
Method Detail
</div>

<a name=".getOCSPResponseInfo"> </a>
<div class="fixedFont">&lt;static&gt;

<span class="light">{Object}</span>
<span class="light">KJUR.asn1.ocsp.OCSPUtil.</span><b>getOCSPResponseInfo</b>(h)

</div>
<div class="description">
parse OCSPResponse<br/>
This static method parse a hexadecimal string of DER OCSPResponse and
returns JSON object of its parsed result.
Its result has following properties:
<ul>
<li>responseStatus - integer of responseStatus</li>
<li>certStatus - string of certStatus (ex. good, revoked or unknown)</li>
<li>thisUpdate - string of thisUpdate in Zulu(ex. 20151231235959Z)</li>
<li>nextUpdate - string of nextUpdate in Zulu(ex. 20151231235959Z)</li>
</ul>


</div>



<pre class="code">info = KJUR.asn1.ocsp.OCSPUtil.getOCSPResponseInfo("3082...");</pre>




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

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

</dt>
<dd>hexadecimal string of DER OCSPResponse</dd>

</dl>



<dl class="detailList">
<dt class="heading">Since:</dt>
<dd>jsrsasign 6.1.0 asn1ocsp 1.0.1</dd>
</dl>
</dl>



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

<dd><span class="light fixedFont">{Object}</span> JSON object of parsed OCSPResponse</dd>

</dl>




<hr />

<a name=".getRequestHex"> </a>
<div class="fixedFont">&lt;static&gt;

Expand Down
Loading

0 comments on commit 3ded8ff

Please sign in to comment.