github.com/sebastianbroekhoven/go-get-tlsversion

Get TLS versions.


License
MIT
Install
go get github.com/sebastianbroekhoven/go-get-tlsversion

Documentation

go-get-tlsversion

Get TLS versions.

Example

package main

import (
    "fmt"
    "encoding/json"
    "github.com/sebastianbroekhoven/go-get-tlsversion"
)

func main() {
    testsite := "binaryfigments.com:443"
    results := tlsversion.GoGetTLSVersion(testsite)
    json, err := json.MarshalIndent(results, "", "   ")
    if err != nil {
        fmt.Println(err)
        return
    }
    fmt.Println(string(json))
}

Results:

$ go run tls_example.go 
{
   "Server": "binaryfigments.com:443",
   "SSL30": "Failed",
   "TLS10": "OK",
   "TLS11": "OK",
   "TLS12": "OK"
}

More to come later.