Sun Java System Messaging Server 6.3 管理指南

Procedure匯出及匯入 CA 簽署伺服器憑證

在某些情況下,可能需要匯出憑證,以在稍後匯入憑證 (例如匯入其他主機)。也可以使用 Directory Server 管理主控台以執行此作業。

  1. 匯出憑證。


    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
  2. 匯入憑證。


    $ msgcert import-cert  CERT_FILE
    

    例如,若要匯入憑證:


    $ msgcert import-cert /tmp/first-server-certificate
    Enter the PKCS#12 file password:
    $