开发者

SSL certificate installing

开发者 https://www.devze.com 2022-12-14 13:18 出处:网络
Hi ALLApach2traid+ssl+cetificate: I am trying to make a secure web page for payment and this web page is for study purpose

Hi ALL Apach2traid+ssl+cetificate:

I am trying to make a secure web page for payment

and this web page is for study purpose

so i thought that i may take a trial veriSign certificate

so after obtaining the certificate what should i do

and do it work if i am using my website 开发者_如何学Goonly as localhost

finally i was told to mke a virtual server to make it run i tried the flowing

<VirtualHost localhost>
SSLCertificateFile C:\apache2triad\opssl\cert\my.cer  
SSLCertificateKeyFile C:\apache2triad\opssl\cert\server.key
SSLCACertificateFile C:\apache2triad\opssl\cert\intermediate.crt
</VirtualHost>

this was in the httpd.conf

and after that the apache with ssl worker ok

but when i call a page with https

it didnt run

should i make some thing else rather than just put https

need some help and discussion please thanks


https connects on a different port number, 443, normal http request come to port 80.

<virtualHost localhost:443>

and you'll also need to make sure apache is listening on port 443, elsewhere in your httpd.conf

listen 127.0.0.1:80
listen 127.0.0.1:443

bets of luck!


You missed (in the virtualhost):

SSLEngine on

As Fire Crow suggested, you'll also want to run it on 443. Whilst you could run HTTPS on port 80, it'd be a strange thing indeed.

0

精彩评论

暂无评论...
验证码 换一张
取 消