ssl-tool

command module
v0.0.0-...-69a438d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 31, 2023 License: MIT Imports: 17 Imported by: 0

README

ssl-tool

A tool to deal with SSL things.

Usage

ssl-tool
Usage: ssl-tool [--log-level LOG-LEVEL] <command> [<args>]

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
Usage: ssl-tool cert <command> [<args>]

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).

$ 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 

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL