PayPal支付要求TSL1.2以上版本,phpstudy服务器apache环境下如何配置TSL1.2的https协议
上接《阿里云PHPstudy服务器Apache环境下magento商城,如何配置SSL、设置HTTPS服务》
随后:
第一步:复制以下代码,存成.reg文件,点击更新你的服务器注册表
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols]
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\SSL 2.0]
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\SSL 2.0\Client]
"DisabledByDefault"=dword:00000000
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.1]
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.1\Client]
"DisabledByDefault"=dword:00000000
"Enabled"=dword:00000001
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.1\Server]
"DisabledByDefault"=dword:00000000
"Enabled"=dword:00000001
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2]
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2\Client]
"DisabledByDefault"=dword:00000000
"Enabled"=dword:00000001
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2\Server]
"DisabledByDefault"=dword:00000000
"Enabled"=dword:00000001
第二步:打开 apache 安装目录下 conf 目录中的 vhosts.conf文件,将这个443端口https网站配置修改如下:
Listen 443
<VirtualHost *:443>
DocumentRoot "C:\phpStudy\WWW\nidewangzhan"
ServerName www.nideyuming.com
ServerAlias nideyuming.com
SSLengine on
SSLProtocol all -SSLv2 -SSLv3 -TLSv1 -TLSv1.1
# 修改加密套件如下
#SSLCipherSuite HIGH:!RC4:!MD5:!aNULL:!eNULL:!NULL:!DH:!EDH:!EXP:+MEDIUM
SSLCipherSuite HIGH:!aNULL:!MD5:!3DES
SSLHonorCipherOrder on
# 证书公钥配置
SSLCertificateFile C:\phpStudy\Apache\cert\public.pem
# 证书私钥配置
SSLCertificateKeyFile C:\phpStudy\Apache\cert\nideshuzikey.key
# 证书链配置,如果该属性开头有 '#'字符,请删除掉
SSLCertificateChainFile C:\phpStudy\Apache\cert\chain.pem
<Directory "C:\phpStudy\WWW\nidewangzhan">
Options FollowSymLinks ExecCGI
AllowOverride All
Order allow,deny
Allow from all
Require all granted
</Directory>
</VirtualHost>
第三步:将magento后台的unsecure、secure栏的Base URL网址都加上https,这样整个magento商城所有元素都https化。
Configuration ==>GENERAL==>WEB 设置
第四步:更改PayPal通知消息返回URL,URL有原来的http变为https
详情进入我的另一篇博文:https://blog.****.net/u014394561/article/details/79471260