Skip to content

Instantly share code, notes, and snippets.

@bsingr
Last active May 10, 2017 15:13
Show Gist options
  • Save bsingr/6b948963f3ff5d882628d3456f05c4aa to your computer and use it in GitHub Desktop.
Save bsingr/6b948963f3ff5d882628d3456f05c4aa to your computer and use it in GitHub Desktop.
java-verify-ssl certificates
package main
import (
"log"
"net/http"
)
func main() {
_, err := http.Get("https://golang.org/")
if err != nil {
log.Fatal(err)
}
}
# java
# see https://confluence.atlassian.com/kb/unable-to-connect-to-ssl-services-due-to-pkix-path-building-failed-779355358.html
# see http://stackoverflow.com/questions/5871279/java-ssl-and-cert-keystore
wget https://confluence.atlassian.com/kb/files/779355358/779355357/1/1441897666313/SSLPoke.class
java -Djavax.net.debug=ssl -Djavax.net.ssl.trustStore=/my/custom/truststore SSLPoke example.com 443
# go
go run http.go
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment