Created
June 5, 2017 20:32
-
-
Save kissgyorgy/6774414b05d23dd3869f549f48b5a36b to your computer and use it in GitHub Desktop.
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
certPem := result.Data["certificate"] | |
certString := certPem.(string) | |
certBytes := []byte(certString) | |
block, _ := pem.Decode(certBytes) | |
cert, err := x509.ParseCertificate(block.Bytes) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment