File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed
Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change @@ -1149,6 +1149,37 @@ For example:
11491149console .log (tls .getCiphers ()); // ['AES128-SHA', 'AES256-SHA', ...]
11501150```
11511151
1152+ ## tls.parseCertString(str)
1153+ <!-- YAML
1154+ added: v0.3.3
1155+ -->
1156+
1157+ * ` str ` {string} A Cert string that joins each key-value pair with ` '\n' ` .
1158+
1159+ Returns the parsed object. eg.
1160+
1161+ ``` js
1162+ tls .parseCertString (` C=US
1163+ ST=CA
1164+ L=SF
1165+ O=Joyent
1166+ OU=Node.js
1167+ CN=ca1
1168+ emailAddress=ry@clouds.org` );
1169+ ```
1170+
1171+ This will return
1172+
1173+ ``` js
1174+ { C : ' US' ,
1175+ ST : ' CA' ,
1176+ L : ' SF' ,
1177+ O : ' Joyent' ,
1178+ OU : ' Node.js' ,
1179+ CN : ' ca1' ,
1180+ emailAddress: ' ry@clouds.org' }
1181+ ```
1182+
11521183## tls.DEFAULT_ECDH_CURVE
11531184<!-- YAML
11541185added: v0.11.13
You can’t perform that action at this time.
0 commit comments