misc clean up

This commit is contained in:
Matt Drollette
2014-12-11 11:11:12 -06:00
parent 5cb34fcd32
commit ca065f4470
6 changed files with 73 additions and 43 deletions

View File

@@ -12,6 +12,7 @@ func loadPrivateKey(path string) (*rsa.PrivateKey, error) {
if nil != err {
return nil, err
}
privDer, _ := pem.Decode(privPem)
privKey, err := x509.ParsePKCS1PrivateKey(privDer.Bytes)
if nil != err {