Skip to main content

Get all the information you need about your SSL certificates.

Project description

certifier is an APACHE licensed Python library allowing you to get all the information you’ll ever want about your SSL certificates.

Installation:

From source use

$ python setup.py install

or install from PyPi

$ pip install certifier

Documentation:

>>> from certifier import CertInfo
>>> cert = CertInfo()
>>> cert.info('example.com', 443)
{'crlDistributionPoints': (u'http://crl3.digicert.com/sha2-ha-server-g3.crl', u'http://crl4.digicert.com/sha2-ha-server-g3.crl'), 'subjectAltName': (('DNS', 'www.example.org'), ('DNS', 'example.com'), ('DNS', 'example.edu'), ('DNS', 'example.net'), ('DNS', 'example.org'), ('DNS', 'www.example.com'), ('DNS', 'www.example.edu'), ('DNS', 'www.example.net')), 'notBefore': u'Nov  6 00:00:00 2014 GMT', 'caIssuers': (u'http://cacerts.digicert.com/DigiCertSHA2HighAssuranceServerCA.crt',), 'OCSP': (u'http://ocsp.digicert.com',), 'serialNumber': u'0411DE8F53B462F6A5A861B712EC6B59', 'notAfter': 'Nov 13 12:00:00 2015 GMT', 'version': 3L, 'subject': ((('countryName', u'US'),), (('stateOrProvinceName', u'California'),), (('localityName', u'Los Angeles'),), (('organizationName', u'Internet Corporation for Assigned Names and Numbers'),), (('organizationalUnitName', u'Technology'),), (('commonName', u'www.example.org'),)), 'issuer': ((('countryName', u'US'),), (('organizationName', u'DigiCert Inc'),), (('organizationalUnitName', u'www.digicert.com'),), (('commonName', u'DigiCert SHA2 High Assurance Server CA'),))}
>>> cert.expire('example.com', 443)
'Nov 13 12:00:00 2015 GMT'
>>> cert.protocol('example.com', 443)
u'TLSv1'
>>> cert.cipher('example.com', 443)
('RC4-SHA', 'TLSv1/SSLv3', 128)
>>> cert.default_paths()
DefaultVerifyPaths(cafile=None, capath='/System/Library/OpenSSL/certs', openssl_cafile_env='SSL_CERT_FILE', openssl_cafile='/System/Library/OpenSSL/cert.pem', openssl_capath_env='SSL_CERT_DIR', openssl_capath='/System/Library/OpenSSL/certs')
>>> cert.stats()
{'x509': 0, 'x509_ca': 0, 'crl': 0}
>>> cert.ca_certs()
[]

License:

Apache v2.0 License
Copyright 2014-2015 Martin Simon

 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at

     http://www.apache.org/licenses/LICENSE-2.0

 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

certifier-0.1.tar.gz (2.5 kB view details)

Uploaded Source

File details

Details for the file certifier-0.1.tar.gz.

File metadata

  • Download URL: certifier-0.1.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for certifier-0.1.tar.gz
Algorithm Hash digest
SHA256 8c27206f63cda92170c8bcb01540b4eef4b9b04211918e8b1a84f9cd69fad1d4
MD5 a1fb27be7117b5c6ca51ab9849a34904
BLAKE2b-256 efbd2b4ff05835e00bb2a9d1677bef01205df36252f71ed21fb61a0d9b2b4a7d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page