A simple SSL checker script written in PHP to verify the SSL certificate validity and expiration of a given domain.
- Verify SSL certificate validity
- Check expiration date
- Support for both HTTP and HTTPS URLs
- Lightweight and easy to integrate
-
Clone the repository:
git clone https://github.com/your-username/ssl-checker-php.git
-
Navigate to the project directory:
cd ssl-checker-php
-
Run the script:
php ssl_checker.php
- Open the ssl_checker.php file.
- Modify the DOMAIN constant with the domain you want to check.
- Save the changes.
- Run the script using the instructions mentioned in the installation section.
- The script will output the SSL certificate information, including its validity and expiration date.
Contributions are welcome! If you find any issues or have suggestions for improvement, feel free to open an issue or submit a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.
This script utilizes the OpenSSL library to extract SSL certificate information.
Please note that this script is provided as-is without any warranty. Use it at your own risk.
Make sure to update the repository URLs, project description, and other relevant information accordingly.