new ServerCredentials()
ServerCredentials factories
Methods
-
<static> createInsecure()
-
Create insecure server credentials
Returns:
-
<static> createSsl(rootCerts, keyCertPairs [, checkClientCertificate])
-
Create SSL server credentials
Parameters:
Name Type Argument Default Description rootCerts
Buffer <nullable>
Root CA certificates for validating client certificates
keyCertPairs
Array.<grpc.ServerCredentials~keyCertPair> A list of private key and certificate chain pairs to be used for authenticating the server
checkClientCertificate
boolean <optional>
false Indicates that the server should request and verify the client's certificates
Returns:
Type Definitions
-
keyCertPair
-
A private key and certificate pair
Type:
- Object
Properties:
Name Type Description private_key
Buffer The server's private key
cert_chain
Buffer The server's certificate chain