Created
November 20, 2015 15:53
-
-
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
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
#!/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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"