https://github.com/andresmorelos/ssl-information
Get information about any SSL certificate.
https://github.com/andresmorelos/ssl-information
node-module npm ssl ssl-certificate ssl-information
Last synced: about 2 months ago
JSON representation
Get information about any SSL certificate.
- Host: GitHub
- URL: https://github.com/andresmorelos/ssl-information
- Owner: AndresMorelos
- License: mit
- Created: 2020-11-11T16:38:23.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-01-03T17:27:50.000Z (over 5 years ago)
- Last Synced: 2025-10-23T17:47:34.715Z (8 months ago)
- Topics: node-module, npm, ssl, ssl-certificate, ssl-information
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/ssl-information
- Size: 44.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# SSL-INFORMATION
[](https://github.com/AndresMorelos/ssl-info/blob/master/LICENSE)
[](https://github.com/AndresMorelos/ssl-info/stargazers)
[](https://www.npmjs.com/package/ssl-information)
[](https://www.npmjs.com/package/ssl-information)
Get the information about any SSL certificate.
### How to install?
```js
npm i ssl-information
```
### How to use?
``` js
const {
certManager
} = require('ssl-information')
certManager
.get({
host: 'andresmorelos.dev'
})
.then((cert) => console.log(cert))
.catch((err) => console.error(err));
```
### Request Options
| Name | Required | Default |
| ------ | ---------| --------- |
| host | true | None |
| port | false | 443 |
| method | false | GET |
| path | false | undefined |
### Certificate Object
```js
{
subject: Object;
issuer: Object;
subjectaltname: string;
infoAccess: Array;
modulus: string;
exponent: string;
valid_from: string;
valid_to: string;
fingerprint: string;
fingerprint256: string;
ext_key_usage: Array;
serialNumber: string;
raw: Buffer;
isValid: boolean;
content: string; // Parse raw content
}
```