![]() So.after spending like 10-20 hours trying to fix this out i found this tutorial very good (relative tutorials can be found here and here This should now enable https on localhost. I just stopped the Apache and MySQL service from XAMPP Control Panel, and when they stopped, I just started them again. Then it should say Import was successful. Click Browse and choose C:\xampp\apache\conf\ssl.crt\server.crt It will ask to choose the certificate file. Right click "Certificates", choose All Tasks -> Import. Now go to start menu, type the following and enter: certmgr.mscĭouble click "Trusted Root Certification Authorities". The makecert.bat script will move your server private key and certificates in the appropriate directories for you. When we ran makecert, it actually ran a makecert.bat script. ![]() You are now finished creating your SSL certificate and private key. Subject=/C=GB/ST=Some-State/O=Internet Widgits Pty Ltd/CN=localhost Now this should succeed with a message: writing RSA key Now enter the passphrase that you chose earlier. Then it will say: Enter pass phrase for privkey.pem: You can safely skip these inputs by pressing enter. Then: Please enter the following 'extra' attributes It is important that this common name match the address that goes into a browser, otherwise you will get extra warnings when navigating to your secure web pages. Organizational Unit Name (eg, section) :įor Common Name enter localhost. They are not necessary for the certificate to work. You can find yours here: įor some fields you can just press enter to skip fields. We have entered London in our timezone so I am choosing the 2 letter code GB (for United Kingdom). If you enter '.', the field will be left blank. There are quite a few fields but you can leave some blankįor some fields there will be a default value, What you are about to enter is what is called a Distinguished Name or a DN. You are about to be asked to enter information that will be incorporated into your certificate request. It will say: Verifying - Enter PEM pass phrase:Įnter the passphrase again, press enter. ++++++Įnter in a pass phrase for decrypting your private server key, and press Enter. Loading 'screen' into random state - done Now you should see this: C:\xampp\apache>makecert (Assuming you have installed xampp in C:\xampp\apache) Open Command Prompt, then enter: cd /D C:\xampp\apache Make sure that you enter your username on this line User user Make sure that this is uncommented (no semi colon - ) LoadModule rewrite_module modules/mod_rewrite.so Now uncomment this to to be able to debug: zend_extension="C:\xampp\php\ext\php_xdebug.dll" Check this page for your timezone ( ) date.timezone=Europe/London ![]() I have chosen Europe/London as a standard. Remove semi colon ( ) in front of the line, if there is any: extension=php_openssl.dll We want to use openssl library, so we have to make sure the line for openssl is not commented. In this ini file semi colon ( ) is used to comment a line. Please see the Reference links at the end if in confusion about some step. This has been tested with XAMPP (PHP 7.0.8) on Windows 7. Sometimes some websites require https to work.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |