I use TLS connection with GIN Now I need to implement client certificate authorization. It's possible?

Comment From: thinkerou

Hi @Karmadon https://github.com/gin-gonic/gin/tree/master/examples/http2 can you help?

Comment From: stremovskyy

@thinkerou THX

Comment From: VitaliyBratyshov

For those who are interested, the example was moved here - https://github.com/gin-gonic/examples/tree/master/http2

Comment From: ZacharyBear

For those who are interested, the example was moved here - https://github.com/gin-gonic/examples/tree/master/http2

I don't think that's a solution. The Client cert checking is for mTLS, it needs configuration with TLS, but GIN didn't provide api to define this. You can refer to this document https://venilnoronha.io/a-step-by-step-guide-to-mtls-in-go

Comment From: alexv-ds

Example for gin 🙂

https://www.bastionxp.com/blog/api-gateway-security-mtls-authentication/