Skip to content
This repository has been archived by the owner on Apr 11, 2024. It is now read-only.

Commit

Permalink
issue-98 fix message and format
Browse files Browse the repository at this point in the history
  • Loading branch information
u5surf committed Aug 2, 2018
1 parent 5a509b1 commit 1df61f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gaurun/apns_http2.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func loadX509KeyPairWithPassword(certPath, keyPath, keyPassphrase string) (tls.C
if keyPassphrase != "" {
pemBlock, _ := pem.Decode(keyPEMBlock)
if !x509.IsEncryptedPEMBlock(pemBlock) {
err = fmt.Errorf("%s(private-key-pem-file-path) is not encrypted. passphrase is not required",keyPath)
err = fmt.Errorf("%s is not encrypted. passphrase is not required", keyPath)
return tls.Certificate{}, err
}
keyPEMBlock, err = x509.DecryptPEMBlock(pemBlock, []byte(keyPassphrase))
Expand Down

0 comments on commit 1df61f2

Please sign in to comment.