Class SecretsLoaderHelper
Component to add to a NetworkManager if you want the certificates to be loaded from files. Mostly helpful to ease development and testing, especially with self-signed certificates
Shipping code should make the calls to
- SetServerSecrets
- SetClientSecrets directly, instead of relying on this.
Inherited Members
Namespace: Unity.Netcode.Transports.UTP
Syntax
public class SecretsLoaderHelper : MonoBehaviour
Properties
ClientCA
CA certificate used by the client.
Declaration
public string ClientCA { get; set; }
Property Value
Type | Description |
---|---|
String |
ClientCAFilePath
Client CA filepath. Useful with self-signed certificates
Declaration
public string ClientCAFilePath { get; set; }
Property Value
Type | Description |
---|---|
String |
ClientCAOverride
Client CA Override. Only useful for development with self-signed certificates. Certificate content, for platforms that lack file access (WebGL)
Declaration
public string ClientCAOverride { get; set; }
Property Value
Type | Description |
---|---|
String |
ServerCertificate
Certificate used by the server.
Declaration
public string ServerCertificate { get; set; }
Property Value
Type | Description |
---|---|
String |
ServerCertificateFilePath
Server Certificate filepath
Declaration
public string ServerCertificateFilePath { get; set; }
Property Value
Type | Description |
---|---|
String |
ServerCommonName
Common name of the server (typically its hostname).
Declaration
public string ServerCommonName { get; set; }
Property Value
Type | Description |
---|---|
String |
ServerPrivate
Private key used by the server.
Declaration
public string ServerPrivate { get; set; }
Property Value
Type | Description |
---|---|
String |
ServerPrivateFilePath
Server Private Key filepath
Declaration
public string ServerPrivateFilePath { get; set; }
Property Value
Type | Description |
---|---|
String |