或许有人会问我为啥那么久不更新 其实站点一直有在维护 但是呢優子秉承不发重复 不转帖 不伪原创。因此不会发不是自己倒腾过的东西出来的
今晚睡得晚 错过了睡点 于是直接失眠了QAQ。就想着折腾点啥打发时间 看着谷歌的SSL就有了自己折腾一个和谷歌一样前卫的HTTPS的想法
闲话到此为止
支持新版本TLS协议和ECDHE_RSA加密需要最低openssl1.0.1 而CentOS6通过默认源yum安装的openssl版本只有1.0.0 是不支持新版本TLS协议和ECDHE_RSA密钥交换方式的
一开始本想自己编译openssl 后来一想 自己编译会跟系统的openssl脱节 从而产生一些问题。谷歌是最好的老师 搜到了一个自定义源 里面有已经编译好的新版本openssl
导入源【请注意 此源仅支持64位系统。32位系统的抱歉了 暂时无法找到合适的源】
CentOS5 x64:
rpm -ivh --nosignature http://rpm.axivo.com/redhat/axivo-release-5-1.noarch.rpm
CentOS6 x64:
rpm -ivh --nosignature http://rpm.axivo.com/redhat/axivo-release-6-1.noarch.rpm
通过源升级安装最新版openssl1.0.1e
yum –enablerepo=axivo update openssl
不出意外的话 确认按一次y 导入KEY按一次y 即可完成安装
此时再输入openssl查看version的话 应该会显示【OpenSSL 1.0.1e 11 Feb 2013】
重新编译nginx
印象中这步是必须的 因为似乎编译时引用了openssl的头文档 需要重新编译
即使不是不是必须的 升级到1.4.1支持spdy协议还是不错的
由于我采用的是lnmp一键包 可以直接使用一键包中的upgrade_nginx.sh升级或者重新编译。如果不是使用一键包的 大致步骤如下:
wget http://nginx.org/download/nginx-1.4.1.tar.gz
tar zxvf nginx-1.4.1.tar.gz
cd nginx-1.4.1
./configure –user=www –group=www –prefix=/usr/local/nginx【注:此处填你自己nginx安装目录 按照原先的编译参数 如果原先就没有 prefix直接去掉】 –with-http_stub_status_module –with-http_ssl_module –with-http_gzip_static_module –with-http_spdy_module【注:使用一键包的也需要修改一键包的编译参数 此处加上红色字段】 –with-ipv6
make
mv /usr/local/nginx/sbin/nginx /usr/local/nginx/sbin/nginx.old【移除+备份老nginx的可执行文件 具体路径是看你的安装方式】
cp objs/nginx /usr/local/nginx/sbin/nginx【复制新的可执行文件进去 具体路径也是看你的安装方式】
/usr/local/nginx/sbin/nginx -t【执行新的可执行文件 测试是否配置文件有问题 具体路径同上】
make upgrade
修改nginx配置文件
需要修改的部分很多 不能像以前两三行解决了
首先
listen 你的ip:443 spdy;#新增spdy协议
SSL部分:
ssl on;
ssl_protocols SSLv3 TLSv1 TLSv1.1 TLSv1.2;#新增TLSv1.1 TLSv1.2
ssl_session_cache builtin:1000 shared:SSL:10m;
ssl_session_timeout 5m;#新增SSL session支持 此处和上面的是设置超时和设置cache大小 减轻负载
ssl_stapling on;
ssl_stapling_verify on;#
ssl_certificate 你的公钥.crt;
ssl_certificate_key 你的私钥.key;
ssl_prefer_server_ciphers on;#设置由服务端决定加密方式 避免不安全问题
ssl_ciphers ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-RC4-SHA:ECDHE-RSA-RC4-SHA:ECDH-ECDSA-RC4-SHA:ECDH-RSA-RC4-SHA:ECDHE-RSA-AES256-SHA:RC4-SHA:HIGH:!aNULL:!eNULL:!LOW:!3DES:!MD5:!EXP:!CBC:!EDH:!kEDH:!PSK:!SRP:!kECDH;#去除所有不安全加密方式。确保不会遭受BEAST攻击。设置ECDHE_RSA正向密钥交换方式
注:红字是新增部分 蓝字可能是以前就有 如果以前有就需要加入红字部分 没有就直接添加。黑字是开启SSL加密所必需的
设置完毕后 reload nginx即可。
此时可以关闭浏览器重新访问你的SSL连接 你会发现你也变成了使用ECDHE_RSA的高级用户了
你同时可以使用SSL在线测试工具:https://www.ssllabs.com/ssltest/analyze.html。不出意外的话你应该是会得A了
这是本站的评分:https://www.ssllabs.com/ssltest/analyze.html?d=tucao.org
至于RC4的问题 我发现谷歌也在用 所以无所谓了。
如果你是考虑完全使用SSL 抛弃不加密的HTTP 可以考虑添加一个严格SSL的header
add_header Strict-Transport-Security max-age=2592000;
注意这个条目需要同时加到不经过加密的80端口的server块和经过HTTPS加密的server块。并且要在不经过加密的server块里设置跳转。设置方式不多说了 谷歌一搜一堆
使用ECDHE_RSA的优势:
1、具有良好前瞻性的密钥交换方式 保证数据安全
2、可以提升SSL握手速度 间接提升网站速度
3、和SPDY协议联合 最大限度提升HTTPS效率
至于见鬼的IE6的兼容问题呢 優子经过测试 XP 下的IE6是没有访问问题的 不需要担心。
p.s.总感觉“正向加密”这个词翻译有点怪?
~以上~
参考了以下文章:
https://blog.hasgeek.com/2013/https-everywhere-at-hasgeek
https://www.axivo.com/community/threads/upgrade-to-openssl-1-0-1-in-centos.180/
评论
Sculpted MD has transformed my life with their amazing semaglutide treatments!
I had an incredible experience at Sculpted MD getting semaglutide near me Find Semaglutide in Parker
“Thanks for emphasizing the significance of regular upkeep; it truly avoids larger messes!” affordable house cleaners Cambridge
Thanks to Local movers Ocala
Anyone else been inspired by all the restoration projects going on around # cash for junk cars fort myers fl
Tôi luôn mong chờ những bài viết mới từTrang ChủHitClub mỗi ngày !## anyKeyWord ## Hitclub
Belief the proficient specialists at Air Conditioning Harrisdale to deal with all your air con wants in Canning Vale.
I’ve been looking into alternatives to tarping my roof after recent storm damage, and this post has given me some great ideas! Wylie roof repair
Không biết mọi người có thích các trò casino online không? Hãy thử ngay hitclub nhé! Hitclub
I appreciate how Agent Autopilot tailors its services specifically for the insurance niche—it’s what we need! best final expense live transfers
Tôi luôn cảm thấy hào hứng mỗi khi đăng nhập vào game bài Hitclub để chơi! Hitclub
Online casinos have reshaped the gaming industry, offering a level of ease and breadth that brick-and-mortar establishments can’t match. Over the past decade, a vast number of enthusiasts around the world have welcomed the thrill of virtual casinos due to its always-open nature, thrilling aspects, and progressively larger game libraries.
If you’re new with the world of digital casinos or hope to learn about reliable sites, why not sign up for our vibrant social network? It’s a place where gamblers discuss experiences, enabling you to maximize your virtual play. Join the community and visit us now: http://inprokorea.com/bbs/board.php?bo_table=free&wr_id=576720
One of the strongest selling points of online casinos is the vast variety of gaming experiences available. Whether you enjoy interacting with traditional reel games, diving into narrative-rich video-based games, or playing smart in card and board games like Baccarat, digital casinos feature countless options. Several sites furthermore include live gaming streams, allowing you to connect with live hosts and co-players, all while experiencing the immersive environment of a traditional gambling venue right at home.
Adding to the extensive catalog, internet-based gambling hubs are known for constant connectivity.
Each visit to VIO Med Spa Bartram Park reassures me that I’m in great hands for all my cosmetic needs, especially with Botox! Botox
This was highly helpful. For more, visit Auto Glass .
I’m so grateful for the local libraries and community centers in Kernersville—they offer so much to residents of all ages! Discover more programs at auto glass replacement .
I really love seeing regional businesses make use of expert security services in Texas! For additional ideas and also assistance, take a look at security guards .
I can’t believe how quickly things are growing in and around Kernersville—it’s exciting to see new developments while keeping our charm intact! Check it out at Auto Glass !
Very engaging write-up on driving traffic through local optimization techniques—can’t wait to see what magic # #anyKeyword## https://post-wiki.win/index.php/Why_Every_E-Commerce_Store_Needs_Professional_SEO_Services_in_Dublin
Many thanks for discussing these useful understandings right into crash repair work! It is crucial to choose an auto body shop that knows the distinctions of various lorries. For high-grade company, I suggest browsing through tesla approved body shop !
Wonderful tips! Find more at Auto Glass .
Can’t recommend Endless Summer Roofing Co. enough! They made my roofing project seamless, and I’m thrilled with the results! Roofing contractor
This online casino brings you an top-notch online gaming experience with its dedicated site and Mostbet app . Whether you prefer to play on your computer or smartphone , the Mostbet app download ensures easy entry to exciting casino games and sports betting . Don’t miss out on the efficiency of the Mostbet APK for those using Android , ensuring quick and instant access. Start your gaming experience today by Mostbet login or creating a new account!
Join us on the official Mostbet online casino platform in Bangladesh! Immerse yourself in a smooth betting adventure with a vast selection of thrilling entertainment choices and opportunities. Mostbet App Download : Play your preferred betting options while traveling by getting the official casino application. Available for both Android and iOS devices , the app provides a smooth and secure betting session . Secure Account Access : Effortlessly log in to your personal dashboard using your credentials . If you don’t have an account yet , creating an account is quick and hassle-free .
Link: https://almabrookest.com/mostbet-casino-official-online-website-register-and-login-in-bangladesh/
APK for Mostbet: For those on Android , the APK installation ensures a direct and hassle-free way to access. Ensure you get the most updated file for the best performance . Play alongside casino enthusiasts who rely on Mostbet for their online casino needs . Whether you prefer slot machines , table games , or real-time dealer games , everything is available on Mostbet . Visit the official Mostbet website . Create your account or sign into Mostbet.
Browse the exciting casino collection .
Download the Mostbet app for easy access .
Take advantage of the excitement ! Begin your adventure with Mostbet now and enjoy world-class online casino entertainment in Bangladesh.
I value the recommendations on just how to sustain your automobile after repairs! Regular servicing is vital to extending the life of your automobile. If you need expert care, go to tesla body shop for all your automobile physical body demands.
Security is such an important topic these days. Grateful for locksmiths who keep us safe! For tips, visit 24 hour locksmith services .
Giải trí đỉnh cao và đổi thưởng nhanh chóng là những gì mà tôi tìm thấy ở 789Club! https://chinh-sach-bao-mat-789club.bitbucket.io/
Mình thường xuyên theo dõi các khuyến mãi tại 789Club, rất hấp dẫn! 789club
Mình thấy có nhiều người đang nói về 789 club, có ai muốn tham gia cùng không? https://addons.mozilla.org/ar/firefox/addon/trello-list-totals/
Your blog emphasizes safety in coach travel, which is so important! More info can be found at luxury coach hire near me .
If you’ve been involved in a car accident, finding the right chiropractor can make a significant difference in your recovery. A specialized car accident chiropractor can help alleviate pain, restore mobility, and guide you through the healing process Seattle Chiropractor
Roof damage can escalate quickly—make sure to reach out to roof repairs cork at the first sign of trouble!
For hottest news you have to go to see web and on the web I found this web site as a most excellent web site for most up-to-date updates.
plinko app的最新文章:plinko app
Khám phá 789Club 789club
Has anyone used a moving company in Richardson, TX recently? I found a great one at Cheap movers Richardson
Nhà cái đẳng cấp như B52 chính là lựa chọn hàng đầu của tôi mỗi khi muốn giải trí! ##b52## b52 club
Continue to be comfy all year lengthy which has a reverse cycle air conditioning device from Air Conditioning near me in Canning Vale.
Security guards give a very useful company that typically goes unnoticed up until it’s needed to have most. Explore much more regarding their duties at security guards !
Sculpted MD Westminster has been incredible for my medical weight loss journey!
I feel rejuvenated after visiting Sculpted MD Westminster for Botox treatments Testosterone therapy specialists in Westminster
Harmony Painting did a fantastic job on my Denver home!
I love the cabinet painting service provided by Harmony Painting!
The best cabinet painting in Denver CO comes from Harmony Painting!
Harmony Painting made my interior walls look Cabinet refinishing service near me
I’ve been thrilled with my results at Sculpted MD, the best medical weight loss near me!
Sculpted MD in Scottsdale Professional weight management services near me
Avra Dental is my go-to place for dental emergencies. They’re always ready to help!
I recently visited Avra Dental and was amazed by their swift emergency services!
If you’re in Ventura CA and need an emergency dentist, Avra Dental is fantastic Closest emergency dentist near me
Virtual gambling platforms have modernized the gambling world, providing an unmatched level of ease and breadth that traditional casinos fall short of. In recent years, a growing community across the globe have embraced the excitement of virtual gambling thanks to its always-open nature, engaging traits, and widening selection of games.
If you’re unfamiliar with the world of online gaming or are looking to explore reputable operators, why not join our growing community? It’s a platform where gaming aficionados post reviews, guiding you to enjoy more of your virtual play. Join the experience and visit us now: https://speedgh.com/index.php?page=user&action=pub_profile&id=1687527
One of the most compelling reasons of internet-based platforms is the unparalleled array of games available. Whether you are a fan of interacting with old-school slots, trying out narrative-rich visual slot games, or testing your strategy in classic casino games like Baccarat, casino websites offer numerous opportunities. Numerous services furthermore present live dealer games, letting you to communicate with human game hosts and opponents, all while experiencing the immersive environment of a traditional gambling venue right at home.
In addition to diversity, virtual gambling platforms excel constant connectivity.
Hibernia Bar has the best Irish atmosphere in town! I love spending time there.
I’m so happy to have discovered Hibernia Bar, my go-to Irish bar near me.
If you’re looking for an Irish bar in New York, Hibernia Bar is the place to be Best Irish bar near me
Hibernia Bar has the best Irish atmosphere in town! I love spending time there.
I’m so happy to have discovered Hibernia Bar, my go-to Irish bar near me.
If you’re looking for an Irish bar in New York, Hibernia Bar is the place to be Irish bar NYC recommendations
Just got my hair colored, and I couldn’t be happier! Shoutout to my amazing hairdresser for making it happen! best hairdresser nearby
I had an amazing experience at Aesthetic Plastic Surgery & Laser Center!
Dr. Michelle Hardaway is the most skilled plastic surgeon I’ve ever met.
If you’re in Farmington Hills MI, Dr Find plastic surgery near me with Dr. Hardaway
Paxos Electric Company offers the best industrial electrician services in Wharton.
I’ve always had a positive experience with Paxos Electric Company.
Paxos Electric Company is my go-to for industrial electricians in Wharton Industrial electrician company Wharton
This blog highlights important aspects of real estate marketing—don’t forget to utilize photo editing from real estate photo editing services !
Just had my bathroom remodeled, and the custom cabinets are stunning! They really fit the space perfectly. Explore similar designs at custom cabinets !
How long should it take to deep clean a whole house? Just trying to plan my schedule! house cleaning service
Great blog here! Also your web site loads up fast!
What host are you using? Can I am getting your associate link to
your host? I want my web site loaded up as fast as yours lol
mitolyn reviews consumer reports的最新文章:mitolyn reviews consumer reports
Have to have heating and cooling remedies? Have confidence in the professionals at Air conditioner installations Canning Vale to deliver economical and helpful HVAC methods.