'PHP Symfony X.509 Authentication

I'm currently trying to use X.509 certificates as an authentication method for symfony. I mean, there should be an existing implementation in Symfony for Authenticating Users with X.509 Client Certificates

When using client certificates, your web server does all the authentication itself. The X.509 authenticator provided by Symfony extracts the email from the "distinguished name" (DN) of the client certificate. Then, it uses this email as user identifier in the user provider.

But I can't get it to work. All blog posts and documentations I've read are kinda useless, because the implementation is missing. I have no idea what to do exactly, like, all custom_authenticators or providers I tried to implement did not work. Are there any good and working examples?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source