Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |
Tags
- 검사
- Background
- schedule
- PHP
- jobdispatcher
- jobschduler
- firebase
- Library
- alarmanager
- Service
- Job
- 빈
- livedatam
- epmty
- Android
- shceduler
- workmanager
Archives
- Today
- Total
에몽이
nodejs let's Encrypt ssl 인증방식 본문
Node.js
var https = require('https');
var fs = require('fs');
var options = {
key: fs.readFileSync('/etc/letsencrypt/live/example.com/privkey.pem'),
cert: fs.readFileSync('/etc/letsencrypt/live/example.com/cert.pem'),
ca: fs.readFileSync('/etc/letsencrypt/live/example.com/chain.pem')
};
https.createServer(options, function (req, res) {
res.writeHead(200);
res.end("hello world\n");
}).listen(8000);
출처:https://gist.github.com/davestevens/c9e437afbb41c1d5c3ab
'web > webRTC' 카테고리의 다른 글
webrtc 직접 전부다 설치하는거에 대한 고찰 글 (0) | 2017.04.13 |
---|---|
depot_tools 설치 참고자료_1 (0) | 2017.04.13 |
crosswalk 최종 임베디드 방식 (0) | 2017.04.13 |
nodejs기반 웹브라우저 전용 webrtc (인도아저씨) (0) | 2017.04.13 |
Node.js v7.9.0 https (0) | 2017.04.13 |
Comments