{"id":51126560,"url":"https://github.com/apiverve/ssl-checker-python-tutorial","last_synced_at":"2026-06-25T08:01:59.860Z","repository":{"id":338744324,"uuid":"1158968220","full_name":"apiverve/ssl-checker-python-tutorial","owner":"apiverve","description":"SSL certificate checker that validates domain certificates using Python","archived":false,"fork":false,"pushed_at":"2026-02-16T07:41:13.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-02-16T14:18:48.393Z","etag":null,"topics":["apiverve","certificate","cli","devops","python","security","ssl","ssl-checker","tutorial"],"latest_commit_sha":null,"homepage":"https://apiverve.com/marketplace/sslchecker","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/apiverve.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-02-16T06:25:47.000Z","updated_at":"2026-02-16T07:41:16.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/apiverve/ssl-checker-python-tutorial","commit_stats":null,"previous_names":["apiverve/ssl-checker-python-tutorial"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/apiverve/ssl-checker-python-tutorial","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apiverve%2Fssl-checker-python-tutorial","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apiverve%2Fssl-checker-python-tutorial/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apiverve%2Fssl-checker-python-tutorial/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apiverve%2Fssl-checker-python-tutorial/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/apiverve","download_url":"https://codeload.github.com/apiverve/ssl-checker-python-tutorial/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apiverve%2Fssl-checker-python-tutorial/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34765322,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-25T02:00:05.521Z","response_time":101,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["apiverve","certificate","cli","devops","python","security","ssl","ssl-checker","tutorial"],"created_at":"2026-06-25T08:01:59.774Z","updated_at":"2026-06-25T08:01:59.849Z","avatar_url":"https://github.com/apiverve.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SSL Certificate Checker | APIVerve API Tutorial\r\n\r\n[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)\r\n[![Build](https://img.shields.io/badge/Build-Passing-brightgreen.svg)]()\r\n[![Python](https://img.shields.io/badge/Python-3.7+-3776ab)](https://python.org)\r\n[![APIVerve | SSL Checker](https://img.shields.io/badge/APIVerve-SSL_Checker-purple)](https://apiverve.com/marketplace/sslchecker?utm_source=github\u0026utm_medium=tutorial\u0026utm_campaign=ssl-checker-python-tutorial)\r\n\r\nA Python CLI tool that checks SSL certificates for any domain. View certificate details, expiry dates, and security status.\r\n\r\n![Screenshot](https://raw.githubusercontent.com/apiverve/ssl-checker-python-tutorial/main/screenshot.jpg)\r\n\r\n---\r\n\r\n### Get Your Free API Key\r\n\r\nThis tutorial requires an APIVerve API key. **[Sign up free](https://dashboard.apiverve.com?utm_source=github\u0026utm_medium=tutorial\u0026utm_campaign=ssl-checker-python-tutorial)** - no credit card required.\r\n\r\n---\r\n\r\n## Features\r\n\r\n- Check SSL certificates for any domain\r\n- See issuer and subject details\r\n- View validity dates\r\n- Certificate key size\r\n- Serial number information\r\n- Interactive mode or command-line arguments\r\n\r\n## Quick Start\r\n\r\n1. **Clone this repository**\r\n   ```bash\r\n   git clone https://github.com/apiverve/ssl-checker-python-tutorial.git\r\n   cd ssl-checker-python-tutorial\r\n   ```\r\n\r\n2. **Install dependencies**\r\n   ```bash\r\n   pip install -r requirements.txt\r\n   ```\r\n\r\n3. **Add your API key**\r\n\r\n   Open `checker.py` and replace the API key:\r\n   ```python\r\n   API_KEY = 'your-api-key-here'\r\n   ```\r\n\r\n4. **Run the checker**\r\n\r\n   Interactive mode:\r\n   ```bash\r\n   python checker.py\r\n   ```\r\n\r\n   Command line mode:\r\n   ```bash\r\n   python checker.py google.com\r\n   ```\r\n\r\n## Usage Examples\r\n\r\n### Check a domain\r\n```bash\r\n$ python checker.py ebay.com\r\n\r\n==================================================\r\n  SSL Certificate Check: ebay.com\r\n==================================================\r\n\r\n  ✅ Certificate Found\r\n\r\n  📋 Certificate Details:\r\n  ----------------------------------------------\r\n  Subject:      ebay.com\r\n  Issuer:       Sectigo Public Server Authentication CA OV R36\r\n  Valid From:   Jul 28 00:00:00 2025 GMT\r\n  Valid To:     Jul 28 23:59:59 2026 GMT\r\n  Key Size:     2048 bits\r\n  Serial:       99F408949A6416EDC3B8F5EC77B2EBE5\r\n==================================================\r\n```\r\n\r\n## Project Structure\r\n\r\n```\r\nssl-checker-python-tutorial/\r\n├── checker.py          # Main Python script\r\n├── requirements.txt    # Dependencies (requests)\r\n├── screenshot.jpg      # Preview image\r\n├── LICENSE             # MIT license\r\n├── .gitignore          # Git ignore rules\r\n└── README.md           # This file\r\n```\r\n\r\n## How It Works\r\n\r\n1. User provides a domain name\r\n2. Script cleans and validates the input\r\n3. API checks the SSL certificate\r\n4. Script calculates days until expiry\r\n5. Results displayed with status indicators\r\n\r\n### The API Call\r\n\r\n```python\r\nresponse = requests.get(\r\n    'https://api.apiverve.com/v1/sslchecker',\r\n    params={'domain': domain},\r\n    headers={'x-api-key': API_KEY}\r\n)\r\n```\r\n\r\n## API Reference\r\n\r\n**Endpoint:** `GET https://api.apiverve.com/v1/sslchecker`\r\n\r\n**Query Parameters:**\r\n\r\n| Parameter | Type | Required | Description |\r\n|-----------|------|----------|-------------|\r\n| `domain` | string | Yes | Domain to check (e.g., \"google.com\") |\r\n\r\n**Example Response:**\r\n\r\n```json\r\n{\r\n  \"status\": \"ok\",\r\n  \"error\": null,\r\n  \"data\": {\r\n    \"subject\": {\r\n      \"C\": \"US\",\r\n      \"ST\": \"California\",\r\n      \"O\": \"eBay, Inc.\",\r\n      \"CN\": \"ebay.com\"\r\n    },\r\n    \"issuer\": {\r\n      \"C\": \"GB\",\r\n      \"O\": \"Sectigo Limited\",\r\n      \"CN\": \"Sectigo Public Server Authentication CA OV R36\"\r\n    },\r\n    \"valid_from\": \"Jul 28 00:00:00 2025 GMT\",\r\n    \"valid_to\": \"Jul 28 23:59:59 2026 GMT\",\r\n    \"serialNumber\": \"99F408949A6416EDC3B8F5EC77B2EBE5\",\r\n    \"bits\": 2048,\r\n    \"domain\": \"ebay.com\"\r\n  }\r\n}\r\n```\r\n\r\n## Use Cases\r\n\r\n- **DevOps monitoring** - Check certificate expiry dates\r\n- **Security audits** - Verify SSL configuration\r\n- **Website maintenance** - Prevent expired certificate downtime\r\n- **Compliance checking** - Ensure proper SSL setup\r\n- **Domain management** - Monitor multiple domains\r\n\r\n## Customization Ideas\r\n\r\n- Add email alerts for expiring certificates\r\n- Monitor multiple domains from a list\r\n- Save results to CSV/JSON\r\n- Build a web dashboard\r\n- Integrate with Slack/Discord notifications\r\n- Add scheduling with cron\r\n\r\n## Related APIs\r\n\r\nExplore more APIs at [APIVerve](https://apiverve.com/marketplace?utm_source=github\u0026utm_medium=tutorial\u0026utm_campaign=ssl-checker-python-tutorial):\r\n\r\n- [DNS Lookup](https://apiverve.com/marketplace/dnslookup?utm_source=github\u0026utm_medium=tutorial\u0026utm_campaign=ssl-checker-python-tutorial) - Check DNS records\r\n- [WHOIS Lookup](https://apiverve.com/marketplace/whoislookup?utm_source=github\u0026utm_medium=tutorial\u0026utm_campaign=ssl-checker-python-tutorial) - Domain registration info\r\n- [Website Screenshot](https://apiverve.com/marketplace/webscreenshots?utm_source=github\u0026utm_medium=tutorial\u0026utm_campaign=ssl-checker-python-tutorial) - Capture website screenshots\r\n\r\n## Free Plan Note\r\n\r\nThis tutorial works with the free APIVerve plan. Some APIs may have:\r\n- **Locked fields**: Premium response fields return `null` on free plans\r\n- **Ignored parameters**: Some optional parameters require a paid plan\r\n\r\nThe API response includes a `premium` object when limitations apply. [Upgrade anytime](https://dashboard.apiverve.com/plans) to unlock all features.\r\n\r\n## License\r\n\r\nMIT - see [LICENSE](LICENSE)\r\n\r\n## Links\r\n\r\n- [Get API Key](https://dashboard.apiverve.com?utm_source=github\u0026utm_medium=tutorial\u0026utm_campaign=ssl-checker-python-tutorial) - Sign up free\r\n- [APIVerve Marketplace](https://apiverve.com/marketplace?utm_source=github\u0026utm_medium=tutorial\u0026utm_campaign=ssl-checker-python-tutorial) - Browse 300+ APIs\r\n- [SSL Checker API](https://apiverve.com/marketplace/sslchecker?utm_source=github\u0026utm_medium=tutorial\u0026utm_campaign=ssl-checker-python-tutorial) - API details\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapiverve%2Fssl-checker-python-tutorial","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fapiverve%2Fssl-checker-python-tutorial","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapiverve%2Fssl-checker-python-tutorial/lists"}