On a local install of Kirby, I need to use a secure connection to test a payment api.
I am using valet to serve my website over mysite.test.
I have secured the site using valet secure mysite
. However I am using a custom certificate generated using mkcert. I have modified the path to the ssl certificate in my .config/valet/Nginx/mysite.test
file to use this certificate instead of the valet generated one.
If I access https://mysite.test/panel, it works, the certificate is accepted. However when I try to save any page I get the following error:
file_get_contents(): SSL operation failed with code 1.
OpenSSL Error messages:
error:0A000086:SSL
routines::certificate verify failed
Any ideas how to circumvent this ? Is there a way I can manually tell php/kirby to accept this certificate? This is not a valet problem fyi.