genkiroid / cert

Cert is the Go tool to get TLS certificate information.
MIT License
245 stars 37 forks source link

Supports JSON format #2

Closed genkiroid closed 7 years ago

genkiroid commented 7 years ago
$cert -f json github.com google.co.jp | jq .
[
  {
    "Error": "",
    "NotAfter": "2018/05/17 21:00:00",
    "NotBefore": "2016/03/10 09:00:00",
    "SANs": [
      "github.com",
      "www.github.com"
    ],
    "CommonName": "github.com",
    "Issuer": "DigiCert Inc",
    "DomainName": "github.com"
  },
  {
    "Error": "",
    "NotAfter": "2017/12/07 02:09:00",
    "NotBefore": "2017/09/14 02:11:49",
    "SANs": [
      "*.google.co.jp",
      "google.co.jp"
    ],
    "CommonName": "*.google.co.jp",
    "Issuer": "Google Inc",
    "DomainName": "google.co.jp"
  }
]