Overview
This node checks the SSL certificate expiration date for a given domain. It is useful for monitoring SSL certificates to ensure they do not expire unexpectedly, which can prevent website downtime or security warnings. For example, you can use this node to automate alerts when an SSL certificate is close to expiring or to generate reports on SSL status across multiple domains.
Properties
| Name | Meaning |
|---|---|
| Domain | The domain to check (e.g. example.com) |
Output
The node outputs JSON data containing the result of the SSL certificate expiration check. The output field json.output holds the response from an external service that performs the SSL expiration validation. This typically includes details such as the expiration date and validity status of the SSL certificate for the specified domain.
Dependencies
- Requires an API key credential to access an external service endpoint (
https://e.customjs.io/__js1-<apiKey>) that runs custom JavaScript code to check SSL certificate expiration. - The node sends a POST request with the domain and embedded code snippet to perform the SSL check.
- The external service uses the
check-cert-expirationlibrary internally to determine the SSL certificate status.
Troubleshooting
- Invalid or missing API key: Ensure the API key credential is correctly configured and valid; otherwise, the request to the external service will fail.
- Domain input errors: Verify that the domain name is correctly formatted (e.g., no protocol prefix like
http://). - Network issues: If the external service is unreachable, the node will throw a request error. Check network connectivity and service availability.
- Unexpected response format: If the external service changes its response structure, the node's output may not contain expected fields.
Links and References
- check-cert-expiration npm package - The underlying library used to check SSL certificate expiration dates.