Skip to content

Commit 944d05a

Browse files
Update manifesto.js
1 parent b2d889d commit 944d05a

File tree

1 file changed

+26
-1
lines changed

1 file changed

+26
-1
lines changed

manifesto.js

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,31 @@ yeah ok, a full coding manifesto section, can you go back to all the things weve
6464

6565

6666

67+
examples
68+
========
69+
70+
const serverCert = fs.readFileSync(path.join(__dirname, 'certs', 'example.com.crt'));
71+
const serverKey = fs.readFileSync(path.join(__dirname, 'certs', 'example.com.key'));
72+
const secureContext = tls.createSecureContext({
73+
cert: serverCert,
74+
key: serverKey,
75+
});
76+
77+
=>
78+
79+
var cert = fs.readFileSync('cert.pem');
80+
var key = fs.readFileSync('key.pem');
81+
var secureContext = tls.createSecureContext({cert,key});
82+
6783

84+
======
85+
86+
87+
var fnstr = (fn,_,js,i1,i2)=>(js=fn+'',i1=js.indexOf('{'),i2=js.lastIndexOf('}'),js.slice(i1+1,i2));
88+
89+
====
90+
6891

69-
92+
93+
94+

0 commit comments

Comments
 (0)