8000 GitHub - grengojbo/kubercert: Get Kubernetes information about the certificate used and renew
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

grengojbo/kubercert

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kubercert GoDoc Go Report Card

kubercert is the certbot for kubernetes

Installation

First install Go.

If you just want to install the binary to your current directory and don't care about the source code, run

GOBIN="$(pwd)" go install github.com/grengojbo/kubercert@latest

Screenshots

$ kubercert --help
Usage of kubercert

    kubercert [options] <host>...

Options:
  -expires duration
        error if cert expiration time is less than this; use 0 to disable (default 168h0m0s)
  -output mode
        output mode: text, json, or none (default text)
  -port int
        Port to look for TLS certificates on (default 443)
  -timeout duration
        time out on TCP dialing (default 5s)
  -verbose
        log connections

$ kubercert example.com
Host: example.com:443
Certs:
    Issuer: DigiCert SHA2 High Assurance Server CA
    Subject: www.example.org
    Not Before: Nov 3, 2015 12:00 AM
    Not After: Nov 28, 2018 12:00 PM
    DNS names: www.example.org example.com example.edu example.net example.org www.example.com www.example.edu www.example.net

$ kubercert -output json -verbose example.com
2018/11/04 19:19:15 connecting to example.com:443
[
  {
    "Host": "example.com",
    "Port": 443,
    "Certs": [
      {
        // snip many fields!
      }
    ]
  }
]

$ kubercert -output none -expires 24h example.com

$ kubercert -output none -expires 480h example.com
Problem running kubercert: cert for www.example.org expires too soon: 2018-11-28T12:00:00Z less than 480h0m0s away

About

Get Kubernetes information about the certificate used and renew

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 69.1%
  • Shell 25.6%
  • Makefile 5.3%
0