


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.
#XAMPP SSL CERTIFICATE LOCALHOST CODE#
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.
#XAMPP SSL CERTIFICATE LOCALHOST WINDOWS#
This has been tested with XAMPP (PHP 7.0.8) on Windows 7. Sometimes some websites require https to work.
