Skip to content

apiverve/ssl-checker-python-tutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

9 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

SSL Certificate Checker | APIVerve API Tutorial

License: MIT Build Python APIVerve | SSL Checker

A Python CLI tool that checks SSL certificates for any domain. View certificate details, expiry dates, and security status.

Screenshot


Get Your Free API Key

This tutorial requires an APIVerve API key. Sign up free - no credit card required.


Features

  • Check SSL certificates for any domain
  • See issuer and subject details
  • View validity dates
  • Certificate key size
  • Serial number information
  • Interactive mode or command-line arguments

Quick Start

  1. Clone this repository

    git clone https://github.com/apiverve/ssl-checker-python-tutorial.git
    cd ssl-checker-python-tutorial
  2. Install dependencies

    pip install -r requirements.txt
  3. Add your API key

    Open checker.py and replace the API key:

    API_KEY = 'your-api-key-here'
  4. Run the checker

    Interactive mode:

    python checker.py

    Command line mode:

    python checker.py google.com

Usage Examples

Check a domain

$ python checker.py ebay.com

==================================================
  SSL Certificate Check: ebay.com
==================================================

  βœ… Certificate Found

  πŸ“‹ Certificate Details:
  ----------------------------------------------
  Subject:      ebay.com
  Issuer:       Sectigo Public Server Authentication CA OV R36
  Valid From:   Jul 28 00:00:00 2025 GMT
  Valid To:     Jul 28 23:59:59 2026 GMT
  Key Size:     2048 bits
  Serial:       99F408949A6416EDC3B8F5EC77B2EBE5
==================================================

Project Structure

ssl-checker-python-tutorial/
β”œβ”€β”€ checker.py          # Main Python script
β”œβ”€β”€ requirements.txt    # Dependencies (requests)
β”œβ”€β”€ screenshot.jpg      # Preview image
β”œβ”€β”€ LICENSE             # MIT license
β”œβ”€β”€ .gitignore          # Git ignore rules
└── README.md           # This file

How It Works

  1. User provides a domain name
  2. Script cleans and validates the input
  3. API checks the SSL certificate
  4. Script calculates days until expiry
  5. Results displayed with status indicators

The API Call

response = requests.get(
    'https://api.apiverve.com/v1/sslchecker',
    params={'domain': domain},
    headers={'x-api-key': API_KEY}
)

API Reference

Endpoint: GET https://api.apiverve.com/v1/sslchecker

Query Parameters:

Parameter Type Required Description
domain string Yes Domain to check (e.g., "google.com")

Example Response:

{
  "status": "ok",
  "error": null,
  "data": {
    "subject": {
      "C": "US",
      "ST": "California",
      "O": "eBay, Inc.",
      "CN": "ebay.com"
    },
    "issuer": {
      "C": "GB",
      "O": "Sectigo Limited",
      "CN": "Sectigo Public Server Authentication CA OV R36"
    },
    "valid_from": "Jul 28 00:00:00 2025 GMT",
    "valid_to": "Jul 28 23:59:59 2026 GMT",
    "serialNumber": "99F408949A6416EDC3B8F5EC77B2EBE5",
    "bits": 2048,
    "domain": "ebay.com"
  }
}

Use Cases

  • DevOps monitoring - Check certificate expiry dates
  • Security audits - Verify SSL configuration
  • Website maintenance - Prevent expired certificate downtime
  • Compliance checking - Ensure proper SSL setup
  • Domain management - Monitor multiple domains

Customization Ideas

  • Add email alerts for expiring certificates
  • Monitor multiple domains from a list
  • Save results to CSV/JSON
  • Build a web dashboard
  • Integrate with Slack/Discord notifications
  • Add scheduling with cron

Related APIs

Explore more APIs at APIVerve:

Free Plan Note

This tutorial works with the free APIVerve plan. Some APIs may have:

  • Locked fields: Premium response fields return null on free plans
  • Ignored parameters: Some optional parameters require a paid plan

The API response includes a premium object when limitations apply. Upgrade anytime to unlock all features.

License

MIT - see LICENSE

Links

About

SSL certificate checker that validates domain certificates using Python

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages