When nginx web server is set for SSL and listen on https protocol, agent will rewrite protocol to http
1.) Set nginx for SSL (https + 443)
2.) Install agent for SSL (e.g https://agent.localtest.me:443/index.html)
3.) Set required certificates in agent.con file
4.) Hit the protected page, in mine case https://agent.localtest.me:443/index.htm
Redirected to AM login page, after login I can see protected page (if the policy is set)
"redirect_uri_mismatch The redirection URI provided does not match a pre-registered value."
As is possible to see in debug log and also in URL https is changed to http (redirect_uri=http%3A%2F%2Fagent.localtest.me%3A80%2Fagent%2Fcdsso-oauth2)