第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

https.js 無(wú)法運(yùn)行

E:\NodeJS>node https.js

fs.js:640

? return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);

? ? ? ? ? ? ? ? ?^


Error: ENOENT: no such file or directory, open 'E:\NodeJS\ssh_key.pem'

? ? at Error (native)

? ? at Object.fs.openSync (fs.js:640:18)

? ? at Object.fs.readFileSync (fs.js:508:33)

? ? at Object.<anonymous> (E:\NodeJS\https.js:5:9)

? ? at Module._compile (module.js:556:32)

? ? at Object.Module._extensions..js (module.js:565:10)

? ? at Module.load (module.js:473:32)

? ? at tryModuleLoad (module.js:432:12)

? ? at Function.Module._load (module.js:424:3)

? ? at Module.runMain (module.js:590:10)



正在回答

6 回答

Error: ENOENT: no such file or directory, open 'E:\NodeJS\ssh_key.pem'

這個(gè)文件打開(kāi)失敗了。看看這個(gè)目錄下有沒(méi)有這個(gè)文件

0 回復(fù) 有任何疑惑可以回復(fù)我~

我最后是 用阿里云他們生成好的用了。

0 回復(fù) 有任何疑惑可以回復(fù)我~

具體如何生成 這個(gè)問(wèn)題有人能回答一下嗎


0 回復(fù) 有任何疑惑可以回復(fù)我~

#### 使用 openssl 命令創(chuàng)建 privatekey.pem 和 certificate.pem(對(duì)應(yīng)視頻中的ssh_key.pem和ssh_cert.pem):

? ? ? openssl genrsa -out privatekey.pem 1024?

? ? ? openssl req -new -key privatekey.pem -out certrequest.csr

? ? ? openssl x509 -req -in certrequest.csr -signkey privatekey.pem -out certificate.pem -days 365 //控制有效期限為365天,默認(rèn)為30天

? ?

#### 出現(xiàn)錯(cuò)誤

在win7下使用openssl

openssl genrsa -out privatekey.pem 1024 ? //成功創(chuàng)建


openssl req -new -key privatekey.pem -out certrequest.csr ?//報(bào)錯(cuò),信息如下

unable to load config info from /usr/local/ssl/openssl.cnf

原因?yàn)檎也坏給penssl.cnf文件


#### 解決方案

1. 在Git/usr/ssl/下可找到該文件

2. 將該文件復(fù)制到c盤(pán)根目錄下

3. 執(zhí)行命令openssl req -new -key privatekey.pem -out certrequest.csr -config C:\openssl.cnf


1 回復(fù) 有任何疑惑可以回復(fù)我~

感覺(jué)要自己生成,我安裝了openssl后就不知道怎么破,好像還要弄點(diǎn)其它東西。有沒(méi)有人知道怎么簡(jiǎn)單生成私鑰和證書(shū),求解答。

0 回復(fù) 有任何疑惑可以回復(fù)我~

。。沒(méi)有,怎么辦

0 回復(fù) 有任何疑惑可以回復(fù)我~

舉報(bào)

0/150
提交
取消
進(jìn)擊Node.js基礎(chǔ)(二)
  • 參與學(xué)習(xí)       76727    人
  • 解答問(wèn)題       242    個(gè)

本教程帶你攻破 Nodejs,讓 JavaScript流暢運(yùn)行在服務(wù)器端

進(jìn)入課程

https.js 無(wú)法運(yùn)行

我要回答 關(guān)注問(wèn)題
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢(xún)優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)