SSL Certificate Checker API - Ruby Gem
SSL Checker inspects a website's SSL certificate. It returns the certificate details plus derived signals — whether it is currently valid or expired, how many days until it expires, whether it expires soon, and whether it is self-signed.
Installation
Add this line to your application's Gemfile:
gem 'apiverve_sslchecker'
And then execute:
$ bundle install
Or install it yourself as:
$ gem install apiverve_sslchecker
Getting Started
Get your API key at APIVerve
Basic Usage
require 'apiverve_sslchecker'
# Initialize the client
client = APIVerve::Sslchecker::Client.new(api_key: "YOUR_API_KEY")
# Make a request
response = client.execute({ domain: "ebay.com" })
# Print the response
puts response
Error Handling
begin
response = client.execute({ domain: "ebay.com" })
puts response["data"]
rescue APIVerve::Sslchecker::ValidationError => e
puts "Validation error: #{e.errors.join(', ')}"
rescue APIVerve::Sslchecker::APIError => e
puts "API error: #{e.}"
puts "Status code: #{e.status_code}"
end
Debug Mode
# Enable debug logging
client = APIVerve::Sslchecker::Client.new(
api_key: "YOUR_API_KEY",
debug: true
)
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"
},
"subjectaltname": "DNS:ebay.com, DNS:befr.ebay.be, DNS:benl.ebay.be, DNS:cafr.ebay.ca, DNS:e-bay.it, DNS:ebay.at, DNS:ebay.be, DNS:ebay.ca, DNS:ebay.ch, DNS:ebay.co.uk, DNS:ebay.com.au, DNS:ebay.com.hk, DNS:ebay.com.my, DNS:ebay.com.sg, DNS:ebay.de, DNS:ebay.es, DNS:ebay.fr, DNS:ebay.ie, DNS:ebay.in, DNS:ebay.it, DNS:ebay.nl, DNS:ebay.ph, DNS:ebay.pl, DNS:ebay.us, DNS:ebay.vn, DNS:wwww.ebay.co.uk, DNS:wwww.ebay.com, DNS:wwww.ebay.com.au, DNS:wwww.ebay.de, DNS:wwww.ebay.in, DNS:wwww.ebay.it",
"infoAccess": {
"CA Issuers - URI": [
"http://crt.sectigo.com/SectigoPublicServerAuthenticationCAOVR36.crt"
],
"OCSP - URI": [
"http://ocsp.sectigo.com"
]
},
"ca": false,
"bits": 2048,
"valid_from": "Jul 28 00:00:00 2025 GMT",
"valid_to": "Jul 28 23:59:59 2026 GMT",
"serialNumber": "99F408949A6416EDC3B8F5EC77B2EBE5",
"domain": "ebay.com",
"isExpired": false,
"isValid": true,
"daysUntilExpiry": 20,
"isExpiringSoon": true,
"isSelfSigned": false
}
}
Documentation
For more information, visit the API Documentation.
Support
- Website: https://sslchecker.apiverve.com?utm_source=ruby&utm_medium=readme
- Email: hello@apiverve.com
License
This gem is available under the MIT License.