getCertificateList
    • PDF

    getCertificateList

    • PDF

    Article Summary

    当該コンテンツは、ローカリゼーションサービスを準備しております。早急にローカライズサービスをご提供できるよう、努めております。

    Overview

    SSL証明書を照会します。

    Request

    MethodRequest URI
    GEThttps://certificatemanager.apigw.ntruss.com/api/v1/certificates

    リクエストヘッダー

    ヘッダー名説明
    x-ncp-apigw-timestamp1970年1月1日00:00:00協定世界時(UTC)からの経過時間をミリ秒(Millisecond)で表したものです。
    API Gatewayサーバとの時間差が5分以上の場合、有効ではないリクエストと見なす
    x-ncp-iam-access-keyNAVERクラウドプラットフォームから発行されたAPI KeyまたはIAMから発行されたAccessKey
    x-ncp-apigw-signature-v2リクエストパスやヘッダーをAccessKeyとマッピングするSecretKeyで暗号化した署名で
    HMACの暗号化アルゴリズムはHmacSHA256を使用

    IAM認証が必要なAPIを呼び出すを参照してください。
    acceptapplication/jsonに指定

    リクエストパラメータ

    パラメータ名必須タイプ説明
    certificateNameNoString証明書名でフィルタリングして照会します。
    Default:すべての証明書を照会します。
    certificateNoNoInteger証明書番号でフィルタリングして照会します。
    Default:すべての証明書を照会します。
    instanceNoNoIntegerインスタンス番号でフィルタリングして照会します。
    Default:すべての証明書を照会します。

    レスポンス

    レスポンスボディ

    フィールド名タイプ説明
    returnCodeStringリクエストに対する処理結果コード
    returnMessageStringリクエストに対する処理結果メッセージ
    totalRowsIntegersslCertificateListのobject数
    sslCertificateList[]Stringリクエストした証明書の照会結果
    リストにobjectがある場合:当該証明書あり
    リストにobjectがない場合:当該証明書なし

    リクエスト例

    curl -X GET "https://certificatemanager.apigw.ntruss.com/api/v1/certificates" 
    -H "accept: application/json" 
    -H "x-ncp-iam-access-key: 72A565A16F1827A27DD5" 
    -H "x-ncp-apigw-timestamp: 1594646226859" 
    -H "x-ncp-apigw-signature-v2: y0hqZ1RyFtJjTq7ZLcu6ds1d8HyzoTgT1XoPjkyoYA8=" 
    -H "cache-control: no-cache" 
    -H "pragma: no-cache"
    

    レスポンス例

    レスポンスヘッダー

    connection: keep-alive 
    content-type: application/json;charset=UTF-8 
    date: Mon, 13 Jul 2020 13:17:08 GMT 
    referrer-policy: unsafe-url 
    server: nginx 
    transfer-encoding: chunked 
    x-ncp-apigw-response-origin: ENDPOINT 
    x-ncp-trace-id: 32e1m6kp3acr43gohj6li30e36 
    

    レスポンスボディ

    {
      "returnCode": "0",
      "returnMessage": "Success",
      "totalRows": 3,
      "sslCertificateList": [
        {
          "certificateNo": 3,
          "certificateName": "myCertificate-03",
          "memberNo": "1",
          "dnInfo": "CN=www.example.com, O=NAVER Cloud Corp., L=Bundang-gu, S=Seongnam-si, C=KR",
          "domainAddress": "www.example.com",
          "subDomainAddress": "",
          "regDate": "2020-07-13 13:52:36",
          "issueDate": null,
          "validStartDate": "2019-10-21 09:00:00",
          "validEndDate": "2021-10-20 21:00:00",
          "disuseDate": null,
          "disuseMsg": null,
          "requestId": null,
          "statusCode": "1",
          "statusName": "Normal",
          "externalYn": "N",
          "domainCode": "PUB",
          "caInfo": "NAVER Secure Certification Authority 1",
          "certSerialNumber": "e9af6050aea0e2af700519217c00f95",
          "certPublicKeyInfo": "Sun RSA public key, 2048 bits",
          "certSignAlgorithmName": "SHA256withRSA",
          "usedInstanceNoList": null
        },
        {
          "certificateNo": 2,
          "certificateName": "myCertificate-02",
          "memberNo": "1",
          "dnInfo": "CN=mail.example.com",
          "domainAddress": "mail.example.com",
          "subDomainAddress": "mail2.example.com",
          "regDate": "2020-07-13 13:36:57",
          "issueDate": null,
          "validStartDate": "2019-10-21 09:00:00",
          "validEndDate": "2021-10-20 21:00:00",
          "disuseDate": null,
          "disuseMsg": null,
          "requestId": null,
          "statusCode": "1",
          "statusName": "Normal",
          "externalYn": "Y",
          "domainCode": "PUB",
          "caInfo": "ABC RSA CA 2018",
          "certSerialNumber": "d9af6050bea0e2af700518217c00695",
          "certPublicKeyInfo": "Sun RSA public key, 2048 bits",
          "certSignAlgorithmName": "SHA256withRSA",
          "usedInstanceNoList": null
        },
        {
          "certificateNo": 1,
          "certificateName": "myCertificate-01",
          "memberNo": "1",
          "dnInfo": "CN=exmaple.net",
          "domainAddress": "exmaple.net",
          "subDomainAddress": "www.exmaple.net",
          "regDate": "2020-05-30 14:40:48",
          "issueDate": null,
          "validStartDate": "2019-07-10 09:00:00",
          "validEndDate": "2021-07-10 08:59:59",
          "disuseDate": null,
          "disuseMsg": null,
          "requestId": null,
          "statusCode": "1",
          "statusName": "Normal",
          "externalYn": "Y",
          "domainCode": "PUB",
          "caInfo": "XYZ RSA Domain Validation Secure Server CA",
          "certSerialNumber": "bfc9f64ca4532d9897d542c72988d61f",
          "certPublicKeyInfo": "Sun RSA public key, 2048 bits",
          "certSignAlgorithmName": "SHA256withRSA",
          "usedInstanceNoList": null
        }
      ]
    }
    

    エラーコード

    以下のエラーコードは、このアクション(Action)で発生する特徴的なエラーです。共通して発生するエラーに対する詳細説明は、NaverクラウドプラットフォームAPIを参考にしてください

    HTTPレスポンスコードerrorCodemessage説明
    2002200No certificate was found.証明書の検索結果はありません。

    この記事は役に立ちましたか?

    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.