|
|
|
|
|
今天在一臺(tái)VPS上安裝PHP,結(jié)果執(zhí)行wget命令下載PHP安裝包時(shí)提示有錯(cuò),錯(cuò)誤信息如下:
ERROR: cannot verify xxx's certificate, issued by '/C-PL/0-Unizeto Technologies S.A./OU-Certun Certification Authorrity/CN-Certun Domain Validation CA SHA2':
Unable to locally verify the issuer's authority.
To connect to xxx insecurely, use '--no-check-certificate'.
按照提示,在wget
命令后加上--no-check-certificate
參數(shù):
wget --no-check-certificate https域名網(wǎng)址
結(jié)果命令成功執(zhí)行。
--no-check-certificate
是什么意思呢,這里簡(jiǎn)單說(shuō)一說(shuō)。
wget --no-check-certificate
這個(gè)參數(shù)會(huì)讓你在 wget
進(jìn)行對(duì) https 站點(diǎn)的請(qǐng)求時(shí)不再檢查證書(shū)。
如果缺少這個(gè)參數(shù),那么命令適用于http的網(wǎng)站域名。