Documentation
    Preparing search index...

    Function generateRelayCertificate

    • Generate a fresh self-signed ECDSA P-256 certificate for a relay's WebRTC Direct listener.

      A new keypair — and therefore a new certhash — is produced on every call. Persist the result and pass it to createRelay (or the relay builder) so the relay advertises a stable certhash across restarts.

      Returns Promise<RelayCertificate>