New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TURN windows version login account information? #34
Comments
For reference, the eturnal log shows the following 2022-09-05 11:35:31.313000+09:00 [info] Non-numeric expiration field: inventis [UDP, session bsrd4pd09ti3, user inventis, client 13.124.71.4:49353] |
eturnal currently doesn't support static credentials. What it does instead is deriving temporary credentials from a secret as described in this IETF spec and at the top of the eturnal docs. That's what most WebRTC applications do these days; i.e., they typically use a few lines of Node.js/whatever code to generate credentials on the web server sie as described in those docs, and hand them out to the client. If you'd prefer static credentials, you could configure a random $username = "1735686000" # For credentials valid until 2025-01-01.
$secret = "1pIFIj70BPsgBI92j5ux" # As specified in your eturnal.yml.
$sha = [System.Security.Cryptography.KeyedHashAlgorithm]::Create("HMACSHA1")
$sha.Key = [System.Text.Encoding]::UTF8.Getbytes($secret)
$password = [Convert]::Tobase64String($sha.ComputeHash([System.Text.Encoding]::UTF8.Getbytes(${username})))
echo $username
echo $password That said, we do plan to allow for specifying hard-coded credentials in the configuration file for testing purposes or simple cases where that's really all you need. So far, nobody actually asked for this, so we kept delaying it. I'll have a look. |
Dear Mr. weiss I have a question. https://webrtc.github.io/samples/src/content/peerconnection/trickle-ice/ |
Once you created a username/password using e.g. the PowerShell code shown above you can use it for that test site. |
So where should I input the PowerShell code you told me? |
You can put it into you PowerShell in Windows or use an online tool to generate the username/ password to input in the ICE Test, e.g. here.
The Output provides credentials based on the
The secret part is defined in the eturnal.yml configuration file.
|
Dear All, Yes, I understand. |
hi, YoonJiBum:
`
The server stun:xxx.com:3478 returned an error with code=701:STUN host lookup received error. The server turn:xxx.com:3478?transport=udp returned an error with code=701:TURN host lookup received error. The server turn:xxx.com:3478?transport=udp returned an error with code=401:Unauthorized in eturnal.log: any ideas? thanks |
solved, my fault: forgot to restart eturnal... 😭 |
I installed eturnal on Windows.
But I don't know where to put the turn server login account information.(username,password)
Is it correct to set it in the eturnal.yml file?
The turn server does not work normally because the credential error keeps occurring.
Below is the eturnal.yml I wrote.
Please help.
The text was updated successfully, but these errors were encountered: