# Return SSL certificate for private key This function retrieves SSL certificates for a private key. When you call this function, you include either the the parameter. Endpoint: GET /SSL/find_certificates_for_key Version: 11.134.0.5 Security: BasicAuth ## Query parameters: - `friendly_name` (string) The key's friendly name. Example: "TestKey" - `id` (string) The key's ID. Example: "example_com_cb497_a394d_1397249671_d1272da8f13a1fd837493a5ad1f0a0f3" ## Response 200 fields (application/json): - `apiversion` (integer) The version of the API. Example: 3 - `func` (string) The name of the method called. Example: "find_certificates_for_key" - `module` (string) The name of the module called. Example: "SSL" - `result` (object) - `result.data` (array) - `result.data.created` (integer) The date the certificate was created. Example: 1538308800 - `result.data.domains` (array) A list of the domains that the certificate covers. Example: ["example.com"] - `result.data.ecdsa_curve_name` (string,null) The ECDSA curve that the certificate's key uses. * * * — The certificate's key is an ECDSA key. Enum: "prime256v1", "secp384r1" - `result.data.ecdsa_public` (string,null) The certificate's key's ECDSA compressed public point, in hexadecimal format. * — The certificate's key is an ECDSA key. - `result.data.friendly_name` (string) The certificate's friendly name. Example: "TestCert" - `result.data.id` (string) The certificate's ID. Example: "example_com_a74f7_9dddf_1446659822_eae1ff43c4ec1991e195877c55755eff" - `result.data.is_self_signed` (integer) Whether the certificate is self-signed. * — Self-signed. * — Not self-signed. Enum: 1, 0 - `result.data.issuer.commonName` (string) The name that issued the certificate. Example: "example.com" - `result.data.issuer.organizationName` (string) The certificate's organization name. Example: "The Example Organization" - `result.data.issuer_text` (string) The certificate's issuer information. Example: "countryName\nUS\ncommonName\u001bxample.com\nlocalityName\nHouston\norganizationName\ncPanel\nstateOrProvinceName\ntx" - `result.data.key_algorithm` (string) The certificate's key's algorithm. * — RSA. * — ECDSA. Enum: "rsaEncryption", "id-ecPublicKey" - `result.data.modulus` (string,null) The certificate's key's modulus, in hexadecimal format. * — The certificate's key is an RSA key. Example: "a673c3b17344664b35f8791f562d3aea6bf4d8faa3ae3fc0a519380fd453964a36677c34d48677ecb7f5ed035df026f5f0f8fbfe21745e52daf1f3b9e58c73f0baefdb709320e2202e7d05250b051a59b30ff1fef22d83d7140c1c81cea314a0890ce8d2226799872181c58a74016c7aaa2cff5ac72b575cecde8f304aa572a2ea03d8b173ab76c6e8cdb9dfd0da81e1119cefd4b8b4dbfbe0e46c7f1ee2fe8b5fd5504e58ccbc0d13b4fa41ecc9ebd0dabe1d1fec5c724f748167e7c0553e997f9b77eb36abce70973f06df151748d41b758de3efd7afa6f2464a1547f5ff158469d96e248be464df9eda0e7ce854a89332a2c1278b17c425368a9604f454db" - `result.data.modulus_length` (integer,null) The length, in bits, of the certificate's key's modulus. * — The certificate's key is an RSA key. Example: 2048 - `result.data.not_after` (integer) The date the certificate expired. Example: 1569844800 - `result.data.not_before` (integer) The date the certificate started. Example: 1538308800 - `result.data.signature_algorithm` (string) The certificate's signature OID hash algorithm. Example: "sha256WithRSAEncryption" - `result.data.subject.commonName` (string) The certificate's Common Name. Example: "example.com" - `result.data.subject_text` (string) The certificate's subject text information. Example: "countryName\nUS\ncommonName\u001bxample.com\nlocalityName\nHouston\norganizationName\ncPanel\nstateOrProvinceName\ntx" - `result.data.validation_type` (string,null) The certificate's validation type. * — Extended Validation. * — Organization Validation. * — Domain Validation. * — The system could not parse and determine the certificate's validation type. Enum: "ev", "ov", "dv" - `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.metadata.transformed` (integer) Post-processing may have transformed the data. Enum: 1 - `result.status` (integer) * — Success. * — Failed. Check the field for more details. Enum: 1, 0 - `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.