24 lines
475 B
Markdown
24 lines
475 B
Markdown
# 安裝公鑰
|
|
|
|
```console
|
|
./mkcert -install
|
|
```
|
|
|
|
# 產生憑證
|
|
|
|
```console
|
|
./mkcert -key-file ./config/jsc.idv.me+4-key.pem -cert-file ./config/jsc.idv.me+4.pem jsc.idv.me *.jsc.idv.me localhost 127.0.0.1 ::1
|
|
```
|
|
|
|
# 取得公鑰
|
|
|
|
```console
|
|
cp ~/.local/share/mkcert/rootCA.pem ./config
|
|
```
|
|
|
|
# 產生憑證匯入檔
|
|
|
|
```console
|
|
openssl pkcs12 -export -out ./jsc.idv.me.pfx -inkey ./config/jsc.idv.me+4-key.pem -in ./config/jsc.idv.me+4.pem -certfile ./config/rootCA.pem
|
|
```
|