Skip to content
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

Unifi API login issue #12

Open
desdougan opened this issue Oct 10, 2021 · 2 comments
Open

Unifi API login issue #12

desdougan opened this issue Oct 10, 2021 · 2 comments

Comments

@desdougan
Copy link

On a Windows Server 2019 host, getting this error running the Hudu-Unifi-Documentation.ps1 script:

Failed to log in on the Unifi API. Error was: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.

If I put the API URL in a browser, I see this:

{"meta":{"rc":"error","msg":"api.err.NoSiteContext"},"data":[]}

I'm running the controller on a Mac mini and it is version 6.1.71.0.

Am I missing something with the configuration?

Thanks,

Des

@lwhitelock
Copy link
Owner

Check your certificate is valid on your controller and you might also have to force TLS 1.2 by adding this:
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12

@desdougan
Copy link
Author

desdougan commented Oct 25, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants