You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've tried to load a PEM certificate using os.Getenv and parsing as a byte array to the AppendCertsFromPEM from x509 package. But when I load from env, it's aways load as a literal string and cannot be add to certificates pool. I can only load from a file, but never from a variable loaded from system.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Only the latest release.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I've tried to load a PEM certificate using os.Getenv and parsing as a byte array to the AppendCertsFromPEM from x509 package. But when I load from env, it's aways load as a literal string and cannot be add to certificates pool. I can only load from a file, but never from a variable loaded from system.
There is a test for this case: https://play.golang.org/p/zTAPhyz7p5S (the literal on os.Setenv(``) is only for test proposal)
What did you expect to see?
What did you see instead?
The text was updated successfully, but these errors were encountered: