Skip to content

Instantly share code, notes, and snippets.

@tiborvass
Created June 5, 2015 00:15
Show Gist options
  • Save tiborvass/d1c90da0068aca2b0943 to your computer and use it in GitHub Desktop.
Save tiborvass/d1c90da0068aca2b0943 to your computer and use it in GitHub Desktop.
s := certPool.Subjects()
subjects := make([]string, len(s))
for i, subject := range s {
subjects[i] = string(subject)
}
logrus.Debugf("Trusting certs with subjects: %v", subjects)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment