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
      Object.FindObjectsByType<T>(FindObjectsSortMode)
    
    
    
      Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
    
    
    
    
      Object.FindFirstObjectByType<T>()
    
    
      Object.FindAnyObjectByType<T>()
    
    
      Object.FindFirstObjectByType<T>(FindObjectsInactive)
    
    
      Object.FindAnyObjectByType<T>(FindObjectsInactive)
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
  Namespace: Unity.Netcode.Transports.UTP
Assembly: Unity.Netcode.Runtime.dll
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 |