Estonian ID card authentication using Nginx and CORS
Authentication in web apps using an Estonian ID card with Nginx is pretty straightforward (although quite unstable). Initial setup Simple ID card authentication boils down to: Enable One-Way TLS on your main domain (e.g. app.example.com)Enable Two-Way TLS on a secondary domain (e.g. id.example.com) using the ID card certificate chain.Redirect user…