跳至主要内容

2.5 取得檔案驗證資訊

2.5.1 Api 資訊

測試環境
正式環境https://portal.racent.com/ssl/validatefile
請求方式POST
content-typemultipart/form-data
描述此介面用於取得網域驗證檔案。驗證正確則傳回相關檔案,錯誤則傳回對應的錯誤代碼。錯誤代碼請見附錄 3.1

2.5.2 參數定義

參數名稱參數類型必填說明
api_tokenStringY身分驗證憑據,如需生成 token 請聯絡 Racent 技術支援。
certIdStringY前述訂購介面回傳的 certId(證書 ID)。

函式回傳

參數名稱參數類型必填說明
codeIntY回傳狀態,詳細說明請參閱附錄 3.1
dataObjectN當回傳狀態為成功時,此參數為 Y。具體說明如下:
DCVfileNameStringN檔案驗證檔名
DCVfileContentStringN檔案驗證檔案內容
DCVdnsHostStringNDNS 驗證主機值
DCVdnsValueStringNDNS 驗證記錄值
DCVdnsTypeStringNDNS 驗證記錄類型
DCVfilePathStringN檔案驗證檔案路徑
dcvInfoObjectN申請證書中的每個網域驗證值不同時,此項為 Y
每項類型為 Object,每項物件名為申請的網域,例如:racent.com。每項詳情如下:
DCVfileNameStringN檔案驗證檔案名稱
DCVfileContentStringN檔案驗證檔案內容
DCVdnsHostStringNDNS 驗證主機值
DCVdnsValueStringNDNS 驗證記錄值
DCVdnsTypeStringNDNS 驗證記錄類型
DCVfilePathStringN檔案驗證檔案路徑