Class: ServerCredentials

grpc.ServerCredentials()

new ServerCredentials()

ServerCredentials factories

Source:

Methods

(static) createInsecure()

Create insecure server credentials

Source:
Returns:

grpc.ServerCredentials

(static) createInsecure(rootCertsnullable, keyCertPairs, checkClientCertificateopt)

Create SSL server credentials

Parameters:
Name Type Attributes 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

Source:
Returns:

grpc.ServerCredentials

Type Definitions

keyCertPair

A private key and certificate pair

Type:
  • Object
Properties:
Name Type Description
privateKey Buffer

The server's private key

certChain Buffer

The server's certificate chain

Source: