或许有人会问我为啥那么久不更新 其实站点一直有在维护 但是呢優子秉承不发重复 不转帖 不伪原创。因此不会发不是自己倒腾过的东西出来的
今晚睡得晚 错过了睡点 于是直接失眠了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/
评论
Wonderful tips! Find more at Water Damage Restoration
This was highly helpful. For more, visit https://www.google.com/maps/dir/”/Prime+Restoration,+23601+SW+133rd+Ave+%233,+Princeton,+FL+33032,+United+States/@25.5482488,-80.4032115,1437m/data=!3m1!1e3!4m13!4m12!1m5!1m1!1s0x88d9c33d9f95dab9:0xe093c7fdaf23cc4a!2m2!1d-80.3940982!2d25.5531734!1m5!1m1!1s0x88d9c32f15b22759:0xf1b757d46daaf857!2m2!1d-80.406486!2d25.5474331!5m1!1e3?entry=ttu&g_ep=EgoyMDI1MDIxMi4wIKXMDSoASAFQAw%3D%3D
This was highly educational. For more, visit https://www.youtube.com/watch?v=_dZnWRDVpng
Thanks for the clear breakdown. More info at http://www.goodbullhunting.com/users/Dumpster-Delivered-Dumpster-Rental-and-Junk-Removal-Florida-US
I recently moved with a great Haines City full service movers in Haines City
Thanks for the detailed guidance. More at http://www.maizenbrew.com/users/Dry-Master-Restoration
Feel the thrill of 4rabet online gaming with seamless access through the 4rabet platform. Whether you’re a fan of 4 ra bet sports betting or online gambling , 4rabet brings it all on one site . Install the 4rabet mobile app for fast and seamless gaming to your most loved options. Check out the 4rabet main site now and dive into the world of 4ra bet excitement . Register now and elevate your gaming experience to the ultimate thrill!
Discover the thrill of 4rabet , your go-to platform for sports betting and online gambling in India. Whether you follow cricket or different events , the official 4rabet platform features a smooth interface to wager online and earn rewards . With the 4rabet app login , you can log in to your betting profile at any moment, anywhere , ensuring you don’t lose a chance . The 4rabet betting site is created to serve both first-time users and seasoned players , offering a vast collection of gambling choices and casino games .
Register with the growing 4rabet family today and immerse yourself in a safe , easy-to-use interface . Whether you like using 4rabet on your desktop or tablet, the online casino fun is top-tier. Begin playing with 4 ra bet and take your sports betting journey to new heights !
Link: https://bolcetta.com/your-home-is-our-canvas/
The 4rabet platform offers a seamless experience for sports betting and casino fans in India. With the secure sign-in process being quick and secure , players can enter their betting dashboards in seconds . The smartphone access ensures ease for mobile users , allowing them to enjoy their favorite games . The 4rabet website offers a extensive list of sports events, including football , and more , tailored specifically for Indian players . The betting hub is user-friendly , making it easy for both first-time players and experienced players to navigate . By checking out the official gaming page, members can enjoy high-value bonuses . The betting system is famous for its trusted service and instant cashouts, providing a trustworthy betting adventure . Whether you love sports betting or live dealer experiences, our platform has the perfect choice for you.
Great job! Discover more at Flood pumping service Plantation
ทุกครั้งที่มีโอกาส ฉันก็จะไปที่ร้าน OMG ONE MORE GLASS SAI1 ค่ะ ไม่มีเบื่อเลย ร้านเหล้าสาย1 เพลงมันส์
Thanks for the informative content. More at https://www.google.com/maps/dir/All+Dry+Services+of+The+Space+Coast,+Atlantis+Road,+Melbourne,+FL,+USA/Total+Restoration,+2725+Center+Pl+%238,+Melbourne,+FL+32940,+United+States/@28.14821,-80.7269954,15585m/data=!3m3!1e3!4b1!5s0x88de050d5d698ff7:0x1445c952225fc816!4m13!4m12!1m5!1m1!1s0x8e37704e303e6331:0x6851e54c479f22d9!2m2!1d-80.6668862!2d28.0957834!1m5!1m1!1s0x88de05720d967253:0xe36611ca617a0445!2m2!1d-80.6665852!2d28.1918228!5m1!1e3?entry=ttu&g_ep=EgoyMDI1MDIyNC4wIKXMDSoASAFQAw%3D%3D
Appreciate the comprehensive advice. For more, visit St Louis Park plumbers
ที่ OMG OneMoreGlass มีโปรโมชั่นสำหรับนักศึกษาไหม? อยากรู้จัง! ร้านชิลสาย1 ดนตรีเพราะ
Our designated driver from I-Drive was punctual and friendly designated driver
Very useful post. For similar content, visit https://video.pictory.ai/1730107377816/20241028094458224LTUfgrfOadibsJi
Valuable information! Discover more at Water damage restoration contractor near me
Thanks for the useful suggestions. Discover more at roof cleaning
This was highly informative. Check out power washing service for more
Digital casinos have changed the gaming market, providing an unmatched level of ease and selection that brick-and-mortar establishments can’t match. Throughout the last ten years, millions of players around the world have welcomed the thrill of digital casino play in light of its anytime, anywhere convenience, exciting features, and ever-expanding range of offerings.
If you’re exploring for the first time with the world of digital casinos or would like to delve deeper into proven options, why not join our growing online hub? It’s a destination where players post stories, making it easier for you to improve your casino activities. Join the experience and see it here now: https://bbs.wuxhqi.com/space-uid-1538888.html
One of the main appeals of online casinos is the sheer diversity of games provided. Whether you love spinning old-school slot machines, diving into theme-based thematic slots, or testing your strategy in classic casino games like Roulette, internet-based gambling sites offer endless opportunities. Plenty of operators furthermore introduce live dealer games, letting you to communicate with real dealers and other players, all while soaking in the engaging feel of a physical gaming house from anywhere you want.
Apart from the game range, internet-based gambling hubs excel availability.
For any one hesitant about hiring a investors agent, I say cross for it! The guide from gold coast buyers agent Savvy Fox Buyers Agent Currumbin AUS used to be valued at every penny
The team of workers at my favorite magnificence salon in Chatswood are so friendly and professional. Highly propose them! More tips at beauty salon chatswood
What types of industries does ###ANYKEYWORD# typically serve? Curious minds want to Commercial Cleaning Company Phoenix AZ
I always leave the wholesale food market excited about cooking with all my new finds each week! It’s like Christmas every time! professional wholesale bakery goods
Very useful post. For similar content, visit https://www.quora.com/profile/Prime-Restoration-3
Online gaming sites have revolutionized the way people experience gambling. Providing unparalleled comfort, virtual casinos enable users to play their favorite games on their schedule. With an endless selection of games ranging from slot machines to real-time table games and classic table games like baccarat, these services satisfy every preference.
Digital casinos have transformed the casino gaming landscape, offering a unique kind of accessibility and diversity that brick-and-mortar casinos don’t provide. In recent years, millions of players around the world have welcomed the excitement of online gaming due to its accessibility, appealing qualities, and continuously increasing game libraries.
If you’re just starting with the world of internet-based gaming or hope to delve deeper into reputable operators, why not sign up for our active community? It’s a hub where fans exchange reviews, helping you to maximize your gambling adventure. Join the community and check it out now: .
One of the most compelling reasons of online gaming options is the astounding diversity of choices on offer. Whether you like engaging with old-school slots, playing through story-driven video-based games, or playing smart in table games like Blackjack, virtual venues feature numerous choices. A large number of platforms even introduce real-time gaming experiences, enabling you to engage with live hosts and gaming peers, all while immersing yourself in the lifelike vibes of a real casino in your own space.
Great job! Find more at roofing dayton ohio
Thanks for the clear advice. More at scootmobiel
If you’re looking for reliable AC repair in Hollywood, look no further than Air Solution 7 emergency ac repair
I am thrilled with how well organized Hurst Mover’s
If you’re looking for reliable roofing services in Manteca emergency roofing
I love how cosmetic dentistry has become more accessible over the years emergency dentist near me
Thanks for the useful post. More like this at remodeling company near me services
This was a great article. Check out seguros de viaje for more
Well explained. Discover more at Divorce Lawyer
I appreciated this post. Check out cosmetic surgery for more
Priority Restoration did an amazing job with my water damage clean up near me. Highly recommend their services!
I had a fantastic experience with Priority Restoration Philadelphia Priority Restoration
If you’re looking for innovative solutions for your next building project, look no further than banning construction inc! banning construction home additions
Whats up are using WordPress for your blog platform? I’m new to the blog
world but I’m trying to get started and create my own. Do you need
any html coding expertise to make your own blog? Any help would be greatly appreciated!
SPORT888的最新文章:SPORT888
I found this very interesting. For more, visit marketing alberta
I found this very helpful. For additional info, visit bathroom remodeling
Very insightful post about local SEO and PPC synergy! Vancouver WA businesses should really consider this approach—check out PPC Marketing Vancouver WA
It’s interesting to see how PPC can drive traffic to local businesses in Vancouver WA. Your tips are very helpful! Find out more at PPC Marketing Vancouver WA
Love seeing local businesses succeed likeBanningConstructionInc; keep up the amazing work!! banning construction construction projects
This was a fantastic read. Check out hardwood floors service contractors for more
Thanks for the detailed guidance. More at Water Damage Restoration
Moving doesn’t have to be overwhelming if you hire skilled professionals like those from long-distance moving companies based in Ralls—my experience was fantastic; read all about it at Long distance movers Ralls
Online casinos have transformed the gaming industry, providing a unique kind of accessibility and selection that physical establishments can’t match. In recent years, millions of players around the world have adopted the adventure of internet-based gaming thanks to its always-open nature, exciting features, and ever-expanding collections of titles.
If you’re a beginner with the world of internet-based gaming or hope to delve deeper into reputable operators, why not participate in our growing gaming forum? It’s a platform where enthusiasts discuss tips, helping you to improve your virtual play. Explore the community and learn more now: http://www.hpt.co.kr/bbs/board.php?bo_table=free&wr_id=126534
One of the strongest selling points of internet-based platforms is the sheer variety of games provided. Whether you like engaging with old-school fruit machine slots, diving into theme-based video slots, or mastering skills in strategy-based games like Blackjack, online platforms boast limitless entertainment avenues. Plenty of operators additionally include live casino options, giving you the chance you to interact with professional croupiers and co-players, all while enjoying the lifelike environment of a traditional gambling venue in your own space.
In addition to diversity, internet-based gambling hubs stand out accessibility.
I’m grateful for how easy ### made it to schedule my auto transport; they’re truly professionals! A1 Auto Transport Santa Rosa
Moving is tough Local movers Valrico
I’m really impressed along with your writing abilities and
also with the format for your weblog. Is
that this a paid subject or did you modify it your self?
Anyway keep up the excellent high quality writing,
it is rare to peer a great weblog like this one nowadays..
https://proxyti.com/的最新文章:https://proxyti.com/
Great tips here! Also check out my favorite site, Sanford moving companies for local mover recommendations