Skip to content

Instantly share code, notes, and snippets.

@klische
klische / cert_load.go
Created August 31, 2019 00:00 — forked from ukautz/cert_load.go
Go: Load all .pem files containing private key and certificate(s) from directory
package common
import (
"crypto"
"crypto/ecdsa"
"crypto/rsa"
"crypto/tls"
"crypto/x509"
"encoding/pem"
"fmt"