https://github.com/ignpelloz/cert_read
Reads the SSL certificate from a URL and displays its attributes.
https://github.com/ignpelloz/cert_read
openssl ssl-certificates
Last synced: 10 months ago
JSON representation
Reads the SSL certificate from a URL and displays its attributes.
- Host: GitHub
- URL: https://github.com/ignpelloz/cert_read
- Owner: ignpelloz
- Created: 2022-10-23T09:31:09.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-10-24T16:42:17.000Z (over 3 years ago)
- Last Synced: 2025-04-11T23:48:02.788Z (about 1 year ago)
- Topics: openssl, ssl-certificates
- Language: Shell
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# cert_read
Reads the SSL certificate from a freely selectable URL and cleanly outputs its attributes. It makes use of [OpenSSL](https://www.openssl.org/).
## Usage:
```bash
git clone https://github.com/ignpelloz/cert_read
cd cert_read
bash cert_read.sh --url URL_HERE
```
### Docker
It can also be run using Docker:
```bash
git clone https://github.com/ignpelloz/cert_read
sudo docker build -t cert_read_img cert_read/
sudo docker run cert_read_img --url URL_HERE
```
## Options
| Option | Required | Explanation |
|---------------|----------|---------------------------------------------------------------------------------------|
| `--url ` | Yes | URL from where the certificate should be taken. |
| `--full` | No | When used, the tool will show the full list of details obtained by `openssl`. |
| `--fullWCert` | No | Like `--full` but shows the certificate too. |
| `--onlyCert` | No | Displays only the encoded certificate. |
| `--json` | No | Prints the details in JSON (i.e [jq](https://stedolan.github.io/jq/)-ready sintax). |
**Note:** the certificate chain is not shown by default, only when the options `--full` or `--fullWCert` are used.