Hello, in my server i can generate a CRT Code, a Primary Key, and a CSR code...
And i know how to check for https using : $_SERVER['https'] and if it isnt https, change it to header("Location: https://$thispage");
HOW do i INCLUDE it in a webpage?
do i copy the code my CRT-generator gives me and paste it on top of my HTML???
or all i have to do is type https:// and the certificate in my web server will be active????
question: Do i paste the CRT-generated code into my website? If so... how ? on top? on bottom? etc...
What do i do with the CRT code:
-----BEGIN CERTIFICATE-----
"my CRT code"
-----END CERTIFICATE-----
and the CSR code (if i need it) :
-----BEGIN CERTIFICATE REQUEST-----
"my CSR Code"
-----END CERTIFICATE REQUEST-----
Is there any other ways in which i can use PHP with SSL, perhaps some extra functions or snippets that may be of use while using SSL?