Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Restrict access using SSL certs

Tags:

ssl

apache

cpanel

is there a way to restrict access to a website, running Apache via cPanel, using SSL (like CTLs on IIS/Windows)?

I.E, the user has to have an ssl certificate installed/issued to be able to access the site.

like image 525
bear Avatar asked May 17 '26 11:05

bear


1 Answers

This is certainly possible, through the SSLRequire directive. The most trivial setup is to formulate %{SSL_CLIENT_VERIFY} eq "SUCCESS". This also requires settting SSLVerifyClient and SSLCACertificatePath, as well as to install the trusted CA certificates.

like image 176
Martin v. Löwis Avatar answered May 20 '26 01:05

Martin v. Löwis