@@ -617,13 +617,24 @@ <h1 class="classTitle">
617617 version INTEGER { v1(0) } (v1,...),
618618 subject Name,
619619 subjectPKInfo SubjectPublicKeyInfo{{ PKInfoAlgorithms }},
620- attributes [0] Attributes{{ CRIAttributes }} }
620+ attributes [0] Attributes {{ CRIAttributes }} }
621621</ pre >
622622< br />
623623< br />
624- CAUTION :
624+ NOTE1 :
625625Argument "params" JSON value format have been changed without
626- backward compatibility since jsrsasign 9.0.0 asn1csr 2.0.0.
626+ backward compatibility since jsrsasign 9.0.0 asn1csr 2.0.0.< br />
627+ NOTE2:
628+ From jsrsasign 10.5.27, "attrs" member in the constructor argument
629+ object have been supported to support more Attributes type.
630+ Currently following Attribute types are supported:
631+ < ul >
632+ < li > challengePassword</ li >
633+ < li > unstructuredName - member "names" will be array of
634+ DirectoryStrings. (ex. [{prnstr: "aaa"},{utf8str: "bbb"}]</ li >
635+ < li > extensionRequest - any < a href ="../symbols/KJUR.asn1.x509.Extensions.html "> KJUR.asn1.x509.Extensions</ a >
636+ constructor argument can be specified for "ext" member value.</ li >
637+ </ ul >
627638
628639 </ div >
629640
@@ -635,6 +646,20 @@ <h1 class="classTitle">
635646 extreq: [
636647 {extname:"subjectAltName", array:[{dns:"example.com"}]}
637648 ]});
649+ csri.tohex() → "30..."
650+
651+ // From jsrsasign 10.5.27, "attrs" supported
652+ csri = new KJUR.asn1.csr.CertificationRequestInfo({
653+ subject: {str: '/C=US/CN=b'},
654+ sbjpubkey: < < PUBLIC KEY PEM > > ,
655+ attrs: [
656+ {attr: "challengePassword", password: "secret"},
657+ {attr: "unstructuredName", names: [{utf8str:"aaa"},{ia5str:"bbb"}]},
658+ {attr: "extensionRequest", ext: [
659+ {extname: "basicConstraints", cA: true},
660+ {extname: "subjectKeyIdentifier", kid: "1a2b..."}
661+ ]}
662+ ]});
638663csri.tohex() → "30..."</ pre >
639664
640665
@@ -668,6 +693,8 @@ <h1 class="classTitle">
668693
669694 < dd > < a href ="../symbols/KJUR.asn1.csr.CertificationRequest.html "> KJUR.asn1.csr.CertificationRequest</ a > </ dd >
670695
696+ < dd > < a href ="../symbols/KJUR.asn1.x509.Extensions.html "> KJUR.asn1.x509.Extensions</ a > </ dd >
697+
671698 </ dl >
672699
673700
0 commit comments