Last active
May 10, 2017 15:13
-
-
Save bsingr/6b948963f3ff5d882628d3456f05c4aa to your computer and use it in GitHub Desktop.
java-verify-ssl certificates
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"log" | |
"net/http" | |
) | |
func main() { | |
_, err := http.Get("https://golang.org/") | |
if err != nil { | |
log.Fatal(err) | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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