2.17 驗證並取得郵件簽章
2.17.1 Api 資訊
| 測試環境 | |
|---|---|
| 真實環境 | https://portal.racent.com/ssl/verifyPAC |
| 請求方式 | POST |
| content-type | multipart/form-data |
| 描述 | 根據 collectionCode 取得 Sectigo 郵件簽章 |
2.17.2 參數定義
| 參數名稱 | 參數類型 | 必填 | 說明 |
|---|---|---|---|
| api_token | String | Y | 身分憑據,生成 token 請聯絡 Racent 技術支援。 |
| certId | String | Y | racent 憑證 id |
| collectionCode | String | Y | 傳送到申請信箱的 collectionCode |
函式回傳
| 參數名稱 | 參數類型 | 必填 | 說明 |
|---|---|---|---|
| code | Int | Y | 回傳狀態,具體說明請參見附錄 3.1 |
| data | Object | N | 當回傳狀態為成功時,此參數為 Y。具體描述如下: |
| beginDate | String | N | 開始時間 |
| endDate | String | N | 終止時間 |
| certificate | String | N | 證書 |
| caCertificate | String | N | 中繼憑證 |
| privateKey | String | N | 私鑰 |
| errors | Object or String | N | 當回傳狀態為錯誤時,具體錯誤資訊。 |