I used a pre-made function from github but i have a problem. I will add that the page where the script was installed has an ssl certificate. Does anyone know how to solve th