在某些情況下,可能需要匯出憑證,以在稍後匯入憑證 (例如匯入其他主機)。也可以使用 Directory Server 管理主控台以執行此作業。
匯出憑證。
msgcert export-cert [-o OUTPUT_FILE] CERT_ALIAS |
例如:
$ ./msgcert export-cert -o /tmp/first-certificate "First Certificate" $./msgcert export-cert -o /tmp/first-server-certificate Server-Cert Choose the PKCS#12 file password: Confirm the PKCS#12 file password: $ls /tmp first-server-certificate /tmp/first-certificate |
匯入憑證。
$ msgcert import-cert CERT_FILE |
例如,若要匯入憑證:
$ msgcert import-cert /tmp/first-server-certificate Enter the PKCS#12 file password: $ |