more restrictive tls ciphers

This commit is contained in:
Matt Drollette
2014-12-14 19:37:42 -06:00
parent 304893313a
commit 481a472f8b
4 changed files with 28 additions and 7 deletions

View File

@@ -5,6 +5,7 @@ import (
"crypto/x509"
"encoding/pem"
"io/ioutil"
"strings"
)
func loadPrivateKey(path string) (*rsa.PrivateKey, error) {
@@ -21,3 +22,7 @@ func loadPrivateKey(path string) (*rsa.PrivateKey, error) {
return privKey, nil
}
func signerFile(signerId string) string {
return strings.Replace(signerId, "@", "_at_", 1)
}