[黑客人生] 遜掉的 wget

剛剛唬人斯大長輩說了我纔知道,原來 wget 是可以使用憑證的。這個功能並沒有被寫在 man page 裏面,不過妳可以用 wget -h 看到:

HTTPS (SSL) options:
--sslcertfile=FILE optional client certificate.
--sslcertkey=KEYFILE optional keyfile for this certificate.
--egd-file=FILE file name of the EGD socket.
--sslcadir=DIR dir where hash list of CA's are stored.
--sslcafile=FILE file with bundle of CA's.
--sslcerttype=0/1 Client-Cert type 0=PEM (default) / 1=ASN1 (DER).
--sslcheckcert=0/1 Check the server cert against given CA.
--sslprotocol=0-3 choose SSL protocol; 0=automatic,
1=SSLv2 2=SSLv3 3=TLSv1.
祇不過 wget 祇能接受 pem 格式的檔案,所以妳得把拿到的 PKCS#12 格式的檔案轉回 pem 格式:
openssl pkcs12 -in file.p12 -out file.pem
看來日後從 Tatooine 抓檔案終於能夠比較快了。

附帶一提,這個功能似乎要到 1.9 版之後,纔開始有作用……可是我測了半天還是有問題啊……

可惜 Windows 上面沒有原生的 lftp 可以用……

jedi.org: