Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/zhengyi13/bazel-go-ssl-check

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/zhengyi13/bazel-go-ssl-check

  • v0.0.0-20240503221514-7e2b4242d79f
  • Source
  • Go
  • Socket score

Version published
Created
Source

SSL Cert Expiration Checker

This is a simple go tool to connect to a configured list of host:port pairs via SSL, and print out the expiration date of each cert found.

The assumption is that you'd like to monitor a server for cert expirations, and you'll use this tool to probe the machine(s) in question for an arbitrary list of ports, and print the output.

Usage

Configuration

Create a simple YAML config file such as the one found here. Create a top-level key called "probes", and the value of that will be a list of strings. Each string will be a bare, colon-separated "host:port" pair.

probes:
  - "localhost:8443"
  - "acme.com:443"
  - "internal.foo:1234"

Invocation

If you just want to run the code as is, and use the "sample" config in the repo, you can do this:

go run ssl_expiry.go

If you're a little smarter than the average bear, then consider installing bazel, and use that to run this little utility (and/or build it reproducibly and hermetically):

bazel run :ssl_check -- -config $(pwd)/probes.yaml

Notes

Inspired by a simple use case at work.

FAQs

Package last updated on 03 May 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc