I want to set captive portal to "Require certificate. Prohibit login when not detected."

but on my client computers it "the server root certificate is not installed on your computer of device. you must install the root certificate to continue"

I download the root certificate from the captive portal and installed it to the computer but the captive portal does not detect the certificate.

I am stuck in a loop