detectWafSSL — Verify SSL without enabling network certificate

The detectWafSSL endpoint allows partners to check for SSL detection on a site without enabling the network certificate.

This is useful in scenarios where a site has waf_skip_network_certificate = 1 and SSL detection needs to be rechecked without forcing the activation of a network certificate.

The API endpoint is:

https://api.sitelock.com/v1/partner

Request format

  • SiteLockOnlineRequest: This element is used to delineate the full API request.

    • authentication: The partner’s username, password, and branding

      • username: The partner’s API username

      • password: The partner’s API password

    • ddetectWafSSLL: The method name.

      • site_id: The ID of the site to detect SSL.

Example request

<SiteLockOnlineRequest>
    <authentication>
        <user>Username</user>
        <password>Password</password>
    </authentication>
   <detectWafSSL>
        <site_id>[]</site_id>
    </detectWafSSL>
</SiteLockOnlineRequest>

Response format

  • SiteLockOnlineResponse: This element is used to delineate the full API response.

    • detectWafSSL: The method name.

      • cert_detected: The value can be 0 or 1.

        • 1: ssl is detected.

        • 0: ssl is not detected.

      • message: The detailed success or error message.

      • status: The status message.

      • error: The error message.

        • code: [attribute] - The error code

Example success response

<SiteLockOnlineResponse>
    <detectWafSSL>
        <cert_detected>[]</cert_detected>
        <message>OK</message>
        <status>ok</status>
    </detectWafSSL>
</SiteLockOnlineResponse>

Example error response

<SiteLockOnlineResponse>
    <detectWafSSL>
        <error code="-99">[message]</error>
    </detectWafSSL>
</SiteLockOnlineResponse>