在iOS上之前暂时屏蔽https使用http的接口,将在将来被苹果拒绝;web
以前传苹果会在2017年1月1日强制要求支持https,可是如今苹果又延迟该计划了apache
https://developer.apple.com/news/?id=12212016bcentos
因此服务器接口仍是尽快支持https吧;浏览器
苹果ATS检测服务器
在mac下使用命令:nscurl --ats-diagnostics --verbose https://urlapp
或是在线检测:https://www.qcloud.com/product/sslcurl
1:付费方案ui
找一些知名的CA,获取受权的SSL证书阿里云
2:自签名证书url
流程繁琐,且不保证被苹果接受
3:使用免费的ssl证书
提供免费ssl服务的有
4. 使用 let`s encrypt配置ssl比较简单;
在你的服务器上 安装CerBot ,一键便可搞定
第一步:打开https://certbot.eff.org 在首页,选择使用的web服务和系统
以下 apache ,centos 6
第二步:在服务器上下载cerbot,并添加可执行权限
wget https://dl.eff.org/certbot-auto chmod a+x certbot-auto
第三:执行自动配置脚本, 过程之中会让你选择域名,以及管理员邮箱,请确保域名已经绑定到服务器主机
$ ./certbot-auto
第四步:配置到期自动更新,由于只有90天期限
./certbot-auto renew --dry-run
./certbot-auto renew --quiet
在谷歌浏览器里查年证书详情
5:阿里云,或腾讯云,都有详细中文配置文档,参考开发便可;
参考:
https://letsencrypt.org/getting-started/
https://certbot.eff.org/#centos6-apache