Skip to content

Instantly share code, notes, and snippets.

@lummie
Created November 20, 2015 15:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lummie/c89082c718783f013ed0 to your computer and use it in GitHub Desktop.
Save lummie/c89082c718783f013ed0 to your computer and use it in GitHub Desktop.
SUSE Enterprise linux create a ca-bundle.pem from the certificates in /etc/ssl/certs
#!/bin/bash
if [ -f /etc/ssl/ca-bundle.pem ]
then
mv /etc/ssl/ca-bundle.pem /etc/ssl/ca-bundle.pem.old
fi
find /etc/ssl/certs -maxdepth 1 -type f -exec cat {} \; >> /etc/ssl/ca-bundle.pem
@lummie
Copy link
Author

lummie commented Nov 20, 2015

I created this due to golang on SLES failing to load go get dependencies due to HTTPS certificate issues.
In SLES the certificates exist individually but there is no ca-budle.pem

For example
go get -u github.com/golang/lint/golint
fails with
package golang.org/x/tools/go/gcimporter: unrecognized import path "golang.org/x/tools/go/gcimporter" package golang.org/x/tools/go/types: unrecognized import path "golang.org/x/tools/go/types"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment