1. 무료 SSL(90일) Let’s encrypt 설치
2. SSL 자동 갱신위한 auto-sni 설치 및 세팅
https://www.npmjs.com/package/auto-sni?source=post_page--------------------------- 참조
3. https 포트 여는걸 잊어서 삽질..
4. 서버 시작, https 접속 에러난다.. (미해결)
TypeError: Cannot read property 'set' of undefined
at Object.certReq.setChallenge (***/node_modules/greenlock/lib/core.js:374:59)
at getReadyToValidate (***/node_modules/le-acme-core/lib/get-certificate.js:180:15)
at ***/node_modules/le-acme-core/lib/get-certificate.js:105:9
at Request._callback (***/node_modules/le-acme-core/lib/acme-client.js:113:7)
at Request.self.callback (***/node_modules/request/request.js:186:22)
at Request.emit (events.js:198:13)
at Request. (***/node_modules/request/request.js:1163:10)
at Request.emit (events.js:198:13)
at IncomingMessage. (***/node_modules/request/request.js:1085:12)
at Object.onceWrapper (events.js:286:20)
'개발' 카테고리의 다른 글
node.js(with express) https 적용 2 성공! (0) | 2019.07.26 |
---|---|
크롤링 Selenium Chrome 에러 (0) | 2019.07.06 |