Giter Site home page Giter Site logo

sslcheck's Introduction

sslcheck


Sslcheck allows you to check ssl keys with or without DNS resolution. The company I work for requires that all servers have different ssl keys. So if you've got two, four or more servers that sit behind a load balancer, it makes it hard to inspect the keys on each server individually as the load balancer is where the DNS name for that SSL key resides.

Sslcheck takes two parameters -i -p -d . The -i is optional, and if it's passed sslcheck will not perform any dns lookups, while the -d is manditory. The -p is for servers that might be running on a port other than 443.

Sslcheck is written in Go and should compile without the need of additional packages.

Example:

IPv4

  ] $ ./sslcheck -d www.google.com
  Client connected to: 74.125.137.99:443
  Cert Checks OK
  Server key information:
    CN:	 www.google.com
	  OU:	 []
	  Org:	 [Google Inc]
	  City:	 [Mountain View]
	  State:	 [California]
	  Country: [US]
  SSL Certificate Valid:
	  From:	 2011-10-26 00:00:00 +0000 UTC
	  To:	 2013-09-30 23:59:59 +0000 UTC
  Valid Certificate DNS:
	  www.google.com
  Issued by:
	  Thawte SGC CA
	  []
	  [Thawte Consulting (Pty) Ltd.]
Client connected to: [2607:f8b0:4002:801::1001]:443

IPv6

  ] $ ./sslcheck -d www.google.com
Client connected to: [2607:f8b0:4002:801::1001]:443
Cert Checks OK
Server key information:
	CN:	 *.google.com
	OU:	 
	Org:	 Google Inc
	City:	 Mountain View
	State:	 California
	Country: US
SSL Certificate Valid:
	From:	 2015-10-15 16:42:43 +0000 UTC
	To:	 2016-01-13 00:00:00 +0000 UTC
	OK: 	Cert Expires in 78 days
Valid Certificate DNS:
	*.google.com
	*.android.com
	...
	youtubeeducation.com
Issued by:
	Google Internet Authority G2
	Google Inc

sslcheck's People

Contributors

rmasci avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

sslcheck's Issues

Compile error - non-boolean condition in if statement

Thanks for your simple sslcheck!
I get an compile error, after an "git checkout" of your repo.

#go run .
./main.go:164:5: non-boolean condition in if statement
./main.go:170:5: non-boolean condition in if statement

I think the two bottom if statements, you meant "if verb.v" instead of "if verb" :-)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.