Documentation
    Preparing search index...

    Interface RelayCertificate

    A TLS certificate for a relay's WebRTC Direct listener, supplied by the caller instead of being auto-generated at start.

    Passing a persisted certificate keeps the relay's certhash — and therefore its dialable multiaddrs — stable across restarts. Must be ECDSA on the P-256 curve, as required by WebRTC Direct.

    interface RelayCertificate {
        certhash: string;
        certificatePem: string;
        privateKeyPem: string;
    }
    Index

    Properties

    certhash: string

    Multibase-encoded multihash of the certificate (the WebRTC Direct certhash).

    certificatePem: string

    Self-signed certificate in PEM format.

    privateKeyPem: string

    Private key in PEM format.