레이블이 https server인 게시물을 표시합니다. 모든 게시물 표시
레이블이 https server인 게시물을 표시합니다. 모든 게시물 표시

2016년 2월 1일 월요일

Node.js Express4 make https server


Make https server using Node.js + Expressjs v4

1. Make expressjs project

$express https_server
$cd https_server && npm install

2. Make cert, key file

$openssl genrsa 1024 > key.pem

using this key.pem file, make cert file.

$openssl req -x509 -new -key key.pem > cert.pem

Insert these data.

- Country Name
- State or Province Name
- Locality Name
- Organization Name
- Organization Unit Name
- Common Name
- Email Address

cert, key file ready to make https server.

3. Edit server code
(bin/www file code)





4. Run
$npm start

(if you occur error, please run on root)

Good luck!


ps1. bin/www file code added part
https://gist.github.com/pineoc/b1d9c31e5e0600d328fc#file-https-server-bin-www-js-L95-L111
ps2. file dir tree image


JIRA Plugin - ScriptRunner 소개 #2

관련 글 소개 #1:  https://pineoc.blogspot.com/2019/03/scriptrunner-1.html ScriptRunner 소개 #2 지난 글에서는 Behaviours를 보았고 다음 내용인 콘솔, 리스너 등을 ...