blob: d7cc8845c0d76c64b16a7047f16fe270a38c9064 (
plain)
1
2
3
4
5
6
7
8
9
10
|
'use strict'
var fs = require('fs')
var path = require('path')
var selfsigned = require('selfsigned')
var pems = selfsigned.generate()
fs.writeFileSync(path.join(__dirname, 'key.pem'), pems.private)
fs.writeFileSync(path.join(__dirname, 'cert.pem'), pems.cert)
|