This Go program queries the crt.sh online certificate database for SSL/TLS certificates associated with a specific domain. It outputs the certificates' details in JSON format.
- Query SSL/TLS certificates by domain.
- Outputs detailed information about each certificate in JSON format.
- Easy to use command-line interface.
- Go 1.15 or newer
Clone this repository to your local machine using:
git clone https://github.com/storbeck/crtsh-query.git
cd crtsh-query
To run the program, use the following command in the terminal:
go run main.go -domain=insecure.com
Replace insecure.com
with the domain you wish to query. The program will output the certificates' details in JSON format.
[
{
"issuer_ca_id": 16418,
"issuer_name": "C=US, O=Let's Encrypt, CN=Let's Encrypt Authority X3",
"common_name": "insecure.com",
"name_value": "issues.nmap.org\nnmap.org\nsvn.nmap.org\nwww.nmap.org",
"id": 2549490984,
"entry_timestamp": "2020-03-07T00:14:48.255",
"not_before": "2020-03-06T23:14:48",
"not_after": "2020-06-04T23:14:48",
"serial_number": "03b5914e5f28724457a5a51ad2c494d040f6",
"result_count": 4
},
...
]
Contributions are welcome. Please open an issue first to discuss what you would like to change.
MIT