用戶可以在Linux 系統上產生自簽電子憑證(self-signed certificate),產生後再導入NAS。請參考以下請依照步驟:
1. 產生CA私有金鑰
#openssl genrsa -des3 -out ./myrootca.key 2048
2. 利用CA私有金鑰
#openssl req -new -key ./myrootca.key -out ./myrootca.req
3. 簽署CA請求
#openssl x509 -req -days 7305 -sha1 \
-extfile /etc/ssl/openssl.cnf -extensions v3_ca \
-signkey ./myrootca.key \
-in ./myrootca.req -out ./myrootca.crt
4. 產生host私有金鑰(private key)
#openssl genrsa -out ./myhost.key 2048
5. 使用host 產生host證書簽名請求(sign request)
#openssl req -new -key ./myhost.key -out ./myhost.req
6. 簽署host請求
#openssl x509 -req -days 3650 -sha1 \
-extfile /etc/ssl/openssl.cnf -extensions v3_req \
-CA ./myrootca.crt -CAkey ./myrootca.key \
-CAserial /etc/ssl/myrootca.srl -CAcreateserial \
-in ./myhost.req -out ./myhost.crt
7. 將host憑證增加至host私有金鑰
#cat myhost.crt >> myhost.key
8. 輸入 myhost.key 至 ASUSTOR NAS
ASUSTOR NAS如何產生自簽電子憑證(self-signed certificate)?
-
- 文章: 71
- youtube meble na wymiar Warszawa
- 註冊時間: 週二 10月 01, 2013 3:11 pm