feat: rename method
This commit is contained in:
@@ -12,7 +12,10 @@ import (
|
||||
"google.golang.org/grpc/credentials"
|
||||
)
|
||||
|
||||
func CredentialsFromKeyWithPasswd(certFile, certKey, passwd string) (credentials.TransportCredentials, error) {
|
||||
// FromRSAKeyWithPassword receives a certificate .pem file which was
|
||||
// requested with .pem key file secured by password. By default go doesn't provide a
|
||||
// standard packag that is not deprecated:
|
||||
func FromRSAKeyWithPassword(certFile, certKey, passwd string) (credentials.TransportCredentials, error) {
|
||||
if certFile == "" {
|
||||
return nil, errors.New("certFile cannot be empty")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user