lt-cred-generator

command
v2.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 26, 2023 License: MIT Imports: 6 Imported by: 0

README

Usage

This command generates credentials used by the Long-Term Credential Mechanism

Defined in RFC5389-10.2. The idea is to use the expiry time of the credential as the username, and let the password contain some cryptographic hash of a (server-side) shared-secret and the expiry time.

export SECRET=somesecret

# Build binaries
(cd examples/lt-cred-generator && go build .)
(cd examples/turn-server/lt-cred && go build .)
(cd examples/turn-client/udp && go build .)

# Start server
./examples/turn-server/lt-cred/lt-cred -public-ip=127.0.0.1 -authSecret=$SECRET

# Start client using generated credentials
./examples/lt-cred-generator/lt-cred-generator -authSecret=$SECRET | xargs -I{} ./examples/turn-client/udp/udp -host=127.0.0.1 -ping -user={}

Documentation

Overview

Package main implements a CLI tool for generating long-term credentials.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL