//APIサーバー起動
shell admin
/server
node index.js

//通知送信
shell admin
curl -k -X POST https://10.0.0.20:4000/api/send  -H "Content-Type: application/json"  -d "{\"title\":\"テスト通知\",\"body\":\"Hello iPhone!\"}"






//証明書作成
openssl genrsa -out myCA.key 2048
openssl req -x509 -new -nodes -key myCA.key -sha256 -days 3650 -out myCA.pem \
  -subj "/C=JP/ST=Tokyo/O=MyDevCA/CN=MyDevCA"

openssl genrsa -out server.key 2048
openssl req -new -key server.key -out server.csr \
  -subj "/C=JP/ST=Tokyo/O=MyDev/CN=サーバーIP"

server-san.cnf
[ v3_req ]
subjectAltName = @alt_names

[ alt_names ]
IP.1 = 10.0.0.20
DNS.1 = localhost


openssl x509 -req -in server.csr -CA myCA.pem -CAkey myCA.key -CAcreateserial \
  -out server.crt -days 365 -sha256 -extfile server-san.cnf -extensions v3_req
