oauth2 icon indicating copy to clipboard operation
oauth2 copied to clipboard

http2 or TLS support

Open edosyhptra opened this issue 5 years ago • 3 comments

I have been playing around with the provided example. However, I'm trying to implement it using http2 and tls. It doesn't work when its about to request the access token through the 'allow button' which we will pass through to https://localhost:9096/auth endpoint.

And then I got the response just like below, Post https://localhost:9096/token: x509: certificate signed by unknown authority

I am purely using the example source code and addition of http2 configuration server as well as TLS certificate.

Have anyone ever done that before?

edosyhptra avatar Feb 10 '20 03:02 edosyhptra

Are you using a self-signed certificate for host "localhost"? "x509: certificate signed by unknown authority" indicates your certificate ca is not trusted by your http client. Https with certificate signed by letsencrypt is working well for me.

sheepsong avatar Jul 20 '20 13:07 sheepsong

Yep, im using localhost self-signed certificate.

Thats what im asking. how to use it into this framework

edosyhptra avatar Jul 25 '20 07:07 edosyhptra

Just let client trust your cert.

sheepsong avatar Jul 28 '20 12:07 sheepsong