# Return SSL certificate's info for dedicated IP

This function retrieves information about a certificate that is installed on a domain's dedicated IP address.

Important:

  * If you do not possess a dedicated IP address, this function will fail. For non-dedicated IP addresses, use the SSL::installed_hosts function.
  * When you disable the _Calendars and Contacts_, _Receive Mail_, _Web Disk_ , _Webmail_ , and  _Web Server_ roles, the system disables this function.

Endpoint: GET /SSL/installed_host
Version: 11.138.0.19
Security: BasicAuth

## Query parameters:

  - `domain` (string)
    The domain name.

Note:

The parameter defaults to the account's main domain.
    Example: "example.com"

  - `verify_certificate` (integer)
    Verify the certificate.
* 1 — Verify the certificate.
* 0 — Do not verify the certificate.
    Enum: 0, 1

## Response 200 fields (application/json):

  - `apiversion` (integer)
    The version of the API.
    Example: 3

  - `func` (string)
    The name of the method called.
    Example: "installed_host"

  - `module` (string)
    The name of the module called.
    Example: "SSL"

  - `result` (object)

  - `result.data` (object)

  - `result.data.certificate` (object)
    An object containing the certificate information.

  - `result.data.certificate.domains` (array)
    The domains that the certificate covers.
    Example: ["example.com"]

  - `result.data.certificate.ecdsa_curve_name` (string,null)
    The ECDSA curve that the certificate's key uses.

* prime256v1
* secp384r1
* null — The certificate's key is not an ECDSA key.
    Enum: "prime256v1", "secp384r1"

  - `result.data.certificate.ecdsa_public` (string,null)
    The certificate's key's ECDSA compressed public point, in hexadecimal format.

* null — The certificate's key is not an ECDSA key.

  - `result.data.certificate.id` (string)
    The certificate's ID.
    Example: "example_com_c69ce_37ff5_1397169490_169c717cb2c260281df792788accf041"

  - `result.data.certificate.is_self_signed` (integer)
    Whether the certificate is self-signed.
* 1 — Self-signed.
* 0 — Not self-signed.
    Enum: 0, 1

  - `result.data.certificate.issuer.commonName` (string)
    The issuer's Common Name, typically a domain name.
    Example: "example.com"

  - `result.data.certificate.issuer.organizationName` (string)
    The certificate's organization.
    Example: "Organization"

  - `result.data.certificate.issuer_text` (string)
    The X.509 information about the issuer that contains CSR information.
    Example: "commonName\nexample.com\ncountryName\nUS\nemailAddress\nusername@example.com\norganizationName\nExample\nstateOrProvinceName\nTexas\nlocalityName\nHouston"

  - `result.data.certificate.key_algorithm` (string)
    The certificate's key's algorithm.

  * rsaEncryption — RSA.
  * id-ecPublicKey — ECDSA.
    Enum: "rsaEncryption", "id-ecPublicKey"

  - `result.data.certificate.modulus` (string,null)
    The certificate's key's modulus, in hexadecimal format.

* null — The certificate's key is not an RSA key.
    Example: "a673c3b17344664b35f8791f562d3aea6bf4d8faa3ae3fc0a519380fd453964a36677c34d48677ecb7f5ed035df026f5f0f8fbfe21745e52daf1f3b9e58c73f0baefdb709320e2202e7d05250b051a59b30ff1fef22d83d7140c1c81cea314a0890ce8d2226799872181c58a74016c7aaa2cff5ac72b575cecde8f304aa572a2ea03d8b173ab76c6e8cdb9dfd0da81e1119cefd4b8b4dbfbe0e46c7f1ee2fe8b5fd5504e58ccbc0d13b4fa41ecc9ebd0dabe1d1fec5c724f748167e7c0553e997f9b77eb36abce70973f06df151748d41b758de3efd7afa6f2464a1547f5ff158469d96e248be464df9eda0e7ce854a89332a2c1278b17c425368a9604f454db"

  - `result.data.certificate.modulus_length` (integer,null)
    The length, in bits, of the certificate's key's modulus.

* null — The certificate's key is not an RSA key.
    Example: 2048

  - `result.data.certificate.not_after` (integer)
    The certificate's expiration time.
    Example: 1397169490

  - `result.data.certificate.not_before` (integer)
    The certificate's start time.
    Example: 1365633490

  - `result.data.certificate.signature_algorithm` (string)
    The signature algorithm of the certificate.
    Example: "sha256WithRSAEncryption"

  - `result.data.certificate.subject.commonName` (string)
    The certificate's Common Name.
    Example: "example.com"

  - `result.data.certificate.subject_text` (string)
    The X.509 information about the certificate's subject that contains CSR information.
    Example: "commonName\nexample.com"

  - `result.data.certificate.validation_type` (string,null)
    The certificate's validation type.
* ev — Extended Validation.
* ov — Organization Validation.
* dv — Domain Validation.
* null — The system could not parse and determine the certificate's validation type.
    Enum: "ev", "ov", "dv"

  - `result.data.certificate.verify_error` (string)
    Any errors that exist during the certificate verification process. If there are no errors, this will return an empty string.

Note:

You must set the verify_certificate parameter to 1 for this return to appear.

  - `result.data.host` (string)
    The issuer's hostname.
    Example: "example.com"

  - `result.errors` (array,null)
    List of errors if the API failed.

  - `result.messages` (array,null)
    List of messages generated by the API.

  - `result.metadata` (object)

  - `result.status` (integer)
    * 1 — Success.
* 0 — Failed. Check the errors field for more details.
    Enum: 0, 1

  - `result.warnings` (array,null)
    List of warnings generated by the API. Warnings describe non-critical failures or other problematic conditions noted while running a API.


