Link to home
Create AccountLog in
PHP

PHP

--

Questions

--

Followers

Top Experts

Avatar of duncanb7
duncanb7

TEST HTTPS://localhost with XAMPP 1.7.7 and Self-Signed-Certification before buy trusted Certification
Dear Experts,
I am studying using SSL on my website with my PC localhost server.
Before I  consider to buy a trusted Certification SSL from thrid party , I
would like to do self-sign SSL certification test before wasting my money and
purchase the trusted Cert.
I install XAMPP 1.7.7 on my window-xp comptuer. And it is no problem at
all and my  xampp status menu page also show php, HTTPS, mysql database are
all activiated. So it is fine. So I am going to get a self-sign SSL certification from
the following example links,  
http://www.opencodez.com/apache/ssl-certificate-and-install-in-xampp.htm
http://www.devx.com/opensource/Article/20085/1763/page/2
http://www-uxsup.csx.cam.ac.uk/~jw35/docs/doing_ssl.html
http://www.mnxsolutions.com/apache/removing-a-passphrase-from-an-ssl-key.html

I'm working around those example link , all command is working but
not working when typing https://localhost  in my browsers.
I set all related comman name and host to localhost. And it seems
the issue is at pass phrase but I tried to removing the pass phrase or
set the pass phrase into file and called it in httpd-ssl-conf. But all is
not working.
So version 1.7.7 of xampp, it should be more easier to enable https with
SSL certification usage, but it is not true. Spenting a lot time.

When I type https://localhost, all broswers(chrome, IE, firefox) give me
the security warning, " the website shown the security cert is  NOT from the
trusted cert unit issue and suggest to close the web page and Don't
continue to browser the site OR continue going to website.

Please advise for solving the pass phraseing issue in SSL

When I type normal http://localhost without https that is normal working
When I type http://localhost:443/ that is also okay working but always NOT
working on https://localhost


LoadModule ssl_module modules/mod_ssl.so is included in my httpd.conf
OPENSSL_CONF="c:/xampp/apache/bin/openssl.cnf"  is set

Any comment after you review my attached three configure files for the problem
Thanks



Duncan
php.ini
httpd.conf.txt
httpd-ssl.conf.txt

Zero AI Policy

We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.


SOLUTION
Avatar of arnoldarnold🇺🇸

Link to home
membership
Log in or create a free account to see answer.
Signing up is free and takes 30 seconds. No credit card required.
Create Account

Avatar of duncanb7duncanb7

ASKER

Yes, I know, HTTPS is activating  and 443 port is for SSL  but it is not working for typing https://localhost
Could you review my configure files again ?

SOLUTION
Avatar of arnoldarnold🇺🇸

Link to home
membership
Log in or create a free account to see answer.
Signing up is free and takes 30 seconds. No credit card required.

Avatar of senseifedonsenseifedon🇹🇷

Why don't you try https://127.0.01

try https://127.0.0.1/The warning is same
Why remove 443, 443 is for https port, RIght ?

Reward 1Reward 2Reward 3Reward 4Reward 5Reward 6

EARN REWARDS FOR ASKING, ANSWERING, AND MORE.

Earn free swag for participating on the platform.


Avatar of arnoldarnold🇺🇸

https defaults to trying port 443.
Your configuration servername localhost:443 might be the issue

get baretail, or windows 2003 Support tools where tail command is availalbe.
http://www.baremetalsoft.com/baretail/
then attach to the access_log or error_log file from apache and then try to access https://localhost and see what is recorded in the log.

I try servername localhost intead of servername localhost:443 that
is same as before, warning is same

Avatar of arnoldarnold🇺🇸

What is not working, you get the alert that the CA that signed the certificate you are currently using is not trusted. Are you then trying to access https://localhost?

What log entries do you see from the attempts.

Free T-shirt

Get a FREE t-shirt when you ask your first question.

We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.


Yes, get the similar warning "the CA that signed the certificate you are currently using is not trusted"   My browsering https://localhost is blocked and IE give me the warning
And I go to check c:\xammp\apache\logs\access.log, there is no any information
about my browsering https//localthost

The issuse may be related to Broswer's firewall with my self-sign Cert CA SSL
The browser firewall block my attemp since the CA is not trusted, Is that right, how to fix it ?

ASKER CERTIFIED SOLUTION
Avatar of arnoldarnold🇺🇸

Link to home
membership
Log in or create a free account to see answer.
Signing up is free and takes 30 seconds. No credit card required.

Done Thanks
Just go to broswer to import CA from my crt file

Duncan

Reward 1Reward 2Reward 3Reward 4Reward 5Reward 6

EARN REWARDS FOR ASKING, ANSWERING, AND MORE.

Earn free swag for participating on the platform.

PHP

PHP

--

Questions

--

Followers

Top Experts

PHP is a widely-used server-side scripting language especially suited for web development, powering tens of millions of sites from Facebook to personal WordPress blogs. PHP is often paired with the MySQL relational database, but includes support for most other mainstream databases. By utilizing different Server APIs, PHP can work on many different web servers as a server-side scripting language.