https://github.com/swisscom/ssl-tool
A tool to deal with SSL things
https://github.com/swisscom/ssl-tool
Last synced: 8 months ago
JSON representation
A tool to deal with SSL things
- Host: GitHub
- URL: https://github.com/swisscom/ssl-tool
- Owner: swisscom
- License: other
- Created: 2023-03-31T15:12:53.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-04-16T14:06:57.000Z (about 3 years ago)
- Last Synced: 2025-01-23T11:13:48.566Z (over 1 year ago)
- Language: Go
- Size: 9.77 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ssl-tool
A tool to deal with SSL things.
## Usage
### `ssl-tool`
```plain
Usage: ssl-tool [--log-level LOG-LEVEL] []
Options:
--log-level LOG-LEVEL, -l LOG-LEVEL [default: warning]
--help, -h display this help and exit
Commands:
cert
client
```
- `--log-level` can be one of `debug`, `warning`, `error`
### `ssl-tool cert`
```plain
Usage: ssl-tool cert []
Global options:
--log-level LOG-LEVEL, -l LOG-LEVEL [default: warning]
--help, -h display this help and exit
Commands:
parse
```
#### `ssl-tool cert parse`
Used to parse a certificate (chain).
```plain
$ ssl-tool cert parse cert.pem
Certificate
NAME VALUE
Subject CN=*.google.com
Issuer CN=GTS CA 1C3,O=Google Trust Services LLC,C=US
DNS Names *.google.com
*.appengine.google.com
*.bdn.dev
*.origin-test.bdn.dev
...
Not Before 2023-03-06 09:16:21
Not After 2023-05-29 10:16:20
Public Key Algorithm ECDSA
Public Key Size (bits) 256
Certificate Chain
Subject Issuer
*.google.com GTS CA 1C3
GTS CA 1C3 GTS Root R1
GTS Root R1 GlobalSign Root CA
```
#### `ssl-tool client get-certificate URL`
Used to parse a certificate (chain).
```
$ ssl-tool client get-certificate https://google.com
Certificate
NAME VALUE
Subject CN=*.google.com
Issuer CN=GTS CA 1C3,O=Google Trust Services LLC,C=US
DNS Names *.google.com
*.appengine.google.com
*.bdn.dev
*.origin-test.bdn.dev
...
Not Before 2023-03-06 09:16:21
Not After 2023-05-29 10:16:20
Public Key Algorithm ECDSA
Public Key Size (bits) 256
Certificate Chain
Subject Issuer
*.google.com GTS CA 1C3
GTS CA 1C3 GTS Root R1
GTS Root R1 GlobalSign Root CA
```