docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method WithSecureServerParameters

    WithSecureServerParameters(ref NetworkSettings, ref FixedString4096Bytes, ref FixedString4096Bytes)

    Set server security parameters (server authentication only).

    Declaration
    public static ref NetworkSettings WithSecureServerParameters(this ref NetworkSettings settings, ref FixedString4096Bytes certificate, ref FixedString4096Bytes privateKey)
    Parameters
    Type Name Description
    NetworkSettings settings
    FixedString4096Bytes certificate

    Server's certificate chain (PEM format).

    FixedString4096Bytes privateKey

    Server's private key (PEM format).

    Returns
    Type Description
    NetworkSettings

    WithSecureServerParameters(ref NetworkSettings, ref FixedPEMString, ref FixedPEMString)

    Set server security parameters (server authentication only).

    Declaration
    public static ref NetworkSettings WithSecureServerParameters(this ref NetworkSettings settings, ref FixedPEMString certificate, ref FixedPEMString privateKey)
    Parameters
    Type Name Description
    NetworkSettings settings
    FixedPEMString certificate

    Server's certificate chain (PEM format).

    FixedPEMString privateKey

    Server's private key (PEM format).

    Returns
    Type Description
    NetworkSettings

    WithSecureServerParameters(ref NetworkSettings, string, string)

    Set server security parameters (server authentication only).

    Declaration
    public static ref NetworkSettings WithSecureServerParameters(this ref NetworkSettings settings, string certificate, string privateKey)
    Parameters
    Type Name Description
    NetworkSettings settings
    string certificate

    Server's certificate chain (PEM format).

    string privateKey

    Server's private key (PEM format).

    Returns
    Type Description
    NetworkSettings

    WithSecureServerParameters(ref NetworkSettings, ref FixedString4096Bytes, ref FixedString4096Bytes, ref FixedString4096Bytes, ref FixedString512Bytes, SecureClientAuthPolicy)

    Set server security parameters (for client authentication).

    Declaration
    public static ref NetworkSettings WithSecureServerParameters(this ref NetworkSettings settings, ref FixedString4096Bytes certificate, ref FixedString4096Bytes privateKey, ref FixedString4096Bytes caCertificate, ref FixedString512Bytes clientName, SecureClientAuthPolicy clientAuthenticationPolicy = SecureClientAuthPolicy.Required)
    Parameters
    Type Name Description
    NetworkSettings settings
    FixedString4096Bytes certificate

    Server's certificate chain (PEM format).

    FixedString4096Bytes privateKey

    Server's private key (PEM format).

    FixedString4096Bytes caCertificate

    CA certificate that signed the client certificates (PEM format).

    FixedString512Bytes clientName

    Common name (CN) in the client certificates.

    SecureClientAuthPolicy clientAuthenticationPolicy

    Client authentication policy.

    Returns
    Type Description
    NetworkSettings

    WithSecureServerParameters(ref NetworkSettings, ref FixedPEMString, ref FixedPEMString, ref FixedPEMString, ref FixedString512Bytes, SecureClientAuthPolicy)

    Set server security parameters (for client authentication).

    Declaration
    public static ref NetworkSettings WithSecureServerParameters(this ref NetworkSettings settings, ref FixedPEMString certificate, ref FixedPEMString privateKey, ref FixedPEMString caCertificate, ref FixedString512Bytes clientName, SecureClientAuthPolicy clientAuthenticationPolicy = SecureClientAuthPolicy.Required)
    Parameters
    Type Name Description
    NetworkSettings settings
    FixedPEMString certificate

    Server's certificate chain (PEM format).

    FixedPEMString privateKey

    Server's private key (PEM format).

    FixedPEMString caCertificate

    CA certificate that signed the client certificates (PEM format).

    FixedString512Bytes clientName

    Common name (CN) in the client certificates.

    SecureClientAuthPolicy clientAuthenticationPolicy

    Client authentication policy.

    Returns
    Type Description
    NetworkSettings

    WithSecureServerParameters(ref NetworkSettings, string, string, string, string, SecureClientAuthPolicy)

    Set server security parameters (for client authentication).

    Declaration
    public static ref NetworkSettings WithSecureServerParameters(this ref NetworkSettings settings, string certificate, string privateKey, string caCertificate, string clientName, SecureClientAuthPolicy clientAuthenticationPolicy = SecureClientAuthPolicy.Required)
    Parameters
    Type Name Description
    NetworkSettings settings
    string certificate

    Server's certificate chain (PEM format).

    string privateKey

    Server's private key (PEM format).

    string caCertificate

    CA certificate that signed the client certificates (PEM format).

    string clientName

    Common name (CN) in the client certificates.

    SecureClientAuthPolicy clientAuthenticationPolicy

    Client authentication policy.

    Returns
    Type Description
    NetworkSettings
    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023