var https=require('https'); var ws=require('ws'); var fs=require('fs'); var keypath=process.cwd()+'/server.key';//我把秘钥文件放在运行命令的目录下测试 var certpath=process.cwd()+'/server.crt';//console.log(keypath); //console.log(certpath); var options = { key: fs.rea…