或许有人会问我为啥那么久不更新 其实站点一直有在维护 但是呢優子秉承不发重复 不转帖 不伪原创。因此不会发不是自己倒腾过的东西出来的
今晚睡得晚 错过了睡点 于是直接失眠了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/
评论
Pragmatic Play’in sundugu Gates of Olympus, efsanevi bir temaya sahiptir. Bu oyun, Zeus’un krall?g?na ad?m atma f?rsat? sunar. Gates of Olympus demo oyna secenegi ile oyunun nas?l isledigini ogrenebilir ve kendinizi gelistirebilirsiniz.
Gates of Olympus oyna demo modunda, oyunun farkl? ozelliklerini ve kazanc sistemini deneyimleyebilirsiniz.
Oyunun ana ozellikleri aras?nda cok say?da ucretsiz donus ve yuksek kazanc potansiyeli bulunur. Gates of Olympus ile eglencenin ve kazanc?n kap?lar?n? aralay?n! Eger Gates of Olympus hakk?nda daha fazla bilgi edinmek istiyorsan?z, oyunun tum ayr?nt?lar?n? demo modu sayesinde ogrenebilirsiniz.
Bu sayede, gercek parayla oynamadan once kendinizi gelistirebilirsiniz.
Unutmay?n, gates of olympus demo ile sadece eglence degil, ayn? zamanda stratejinizi gelistirme f?rsat?n? da yakalars?n?z.
Gates of Olympus ile Zeus’un krall?g?nda buyuk kazanclar elde etmeye haz?r olun! Gates of Olympus’ta Zeus’un gucuyle buyuk oduller kazan?n!
Link: https://flippingdomainsforprofit.com/pragmatic-playden-gates-of-olympus-demosunu-oynayin-2/
Bu oyun, Zeus’un krall?g?na adanm?s olup, oyunculara essiz bir deneyim sunmaktad?r. Gates of Olympus oyna demo versiyonu ile oyunun temel mekaniklerini kesfedebilir ve Zeus’un gucunu hissedebilirsiniz. Gates of Olympus demo oyna secenegi ile nas?l daha fazla kazanabileceginizi ogrenebilirsiniz. Gates of Olympus demo turkce dil destegi ile de oyunun kurallar?n? ve ozelliklerini detayl?ca ogrenebilirsiniz.
Energiyadan tejash uchun quyosh paneli o’rnatish har qanday uy egasi uchun zarur! Go to this website
The role of community volunteers in supporting patients and families is vital—let’s talk about it using resources from dementia care !
If you’re looking for quality window cleaning in Lakeland, go with lakeland window cleaning appointments !
American Laser Med Spa – Midland offers such a wide range of services. There’s something for everyone here! effective coolsculpting
buy viagra online
Social media is key in today’s market, and Social Cali of Rocklin appears to harness it effectively! social media marketing agency
Smyle Dental Bakersfield provided the best emergency dentist service I’ve ever experienced!
I was so relieved to find an emergency dentist near me like Smyle Dental Bakersfield emergency dentistry near me
Being adventurous with spices opens up so many possibilities in cooking—embrace creativity through ## indian restaurant in spokane valley
Daniella Levi & Associates, P.C. are the best car accident lawyers I’ve ever worked with!
If you’re in the Bronx, this car accident lawyer is truly exceptional!
I found the perfect car accident lawyer near me at Daniella Levi & Associates, P.C Bronx car accident legal firm
Tucson’s heat can be unbearable without a functioning HVAC system! It’s important to have a reliable service for repairs. I recently had a great experience with a local company that really knows their stuff https://tailoredmechanical.com/
I’ve never felt better since visiting North Atlanta Chiropractic Center! They’re the best chiropractor in town.
North Atlanta Chiropractic Center is my go-to chiropractor in Duluth North Atlanta Chiropractic Center appointment
Walter’s BBQ Southern Kitchen serves the best brunch I’ve ever had in Pittsburgh PA!
The brunch at Walter’s BBQ Southern Kitchen is absolutely delightful and always makes my weekend better Brunch with a view in Pittsburgh
Walter’s BBQ Southern Kitchen serves the best brunch I’ve ever had in Pittsburgh PA!
The brunch at Walter’s BBQ Southern Kitchen is absolutely delightful and always makes my weekend better Brunch near me this weekend
True Balance Pain Relief Clinic & Sports Massage offers the best sports massage I’ve ever experienced!
I always leave True Balance Pain Relief Clinic & Sports Massage feeling refreshed and rejuvenated Denver sports recovery sessions
Are you struggling with stubborn fat? CoolSculpting in Amarillo Texas can help you get rid of it! coolsculpting specials amarillo
I enjoyed reading approximately the varied roles in touch in song creation! Which position do you uncover maximum complicated? Explore in addition discussions at ableton remakes techniques .
I appreciate the advice on different roofing styles. It really helps in making an informed decision! local roofing contractor
These CoolSculpting before and after transformations are incredible! It’s amazing how much of a difference coolsculpting can make in just a few sessions.
Are there any upcoming projects from Banning Construction Inc.? I’d love to see what’s next for them! general contractor
Your advice on optimizing content is spot on! If you want to take your strategy to the next level, Naturally iDigitGroup is the agency you should consult. aesthetic clinic seo services
Great job! Discover more at heating and cooling .
I liked this article. For additional info, visit air conditioning repair .
Appreciate the insightful article. Find more at ac installation .
What a great guide to roof maintenance and repair—definitely reaching out to Avalon Roofing Services after this read! roofing company
This was very enlightening. More at air conditioning repair .
Quyosh panellarini o’rnatish orqali energiyani tejash mumkin. Buni har bir uyda amalga oshirish kerak! https://www.charliebookmarks.win/les-presentoirs-en-bois-de-plv-bois-peuvent-etre-personnalises-avec-votre-logo-ou-votre-message-pour-renforcer-votre
I enjoyed this article. Check out ac repair for more.
In a sea of options, it’s refreshing to find an agency like Social Cali that truly delivers on promises!! seo consultants in san jose
Thank you for sharing such valuable tips—regularly scheduled # αποφραξεις και αποχετεύσεις αθηνα # will be prioritized from now on!
I appreciate the transparency and honesty of the contractors found through roof installation . Highly recommend!
Нада добавить еще пункт
у большей части сетевых моделей показатель меняется по мощности https://assa0.myqip.ru/?1-1-0-00002541-000-0-0 1000-2500 Вт. Продвинутые мотоблоки оснащаются многоступенчатой коробкой передач, до 8 авансом и четыре назад.
Thanks to Summit Services, my AC is running perfectly again! They are the best around—check out Air conditioning repair for more info.
Storing break decorations has certainly not been more uncomplicated, due to self garage at self storage bozeman !
апетитные)))
выбирая нашу фабрику, вы никогда не исключительно экономите момент, но также имеете шанс заказать диплом, аттестат за 9 класс купить цена цена коего демократична и доступна наверное любому.
I recently discovered Agent Autopilot, and their lead generation strategies are truly impressive! agent autopilot reviews
If you’re looking for a fresh take on digital marketing, don’t hesitate to reach out to the talented folks over at Social Cali of San Jose—visit: content marketing services !
Thanks for the great explanation. Find more at best finish carpentry Portland .
I love a streak-free shine on my windows. Any recommendations for products? best window cleaning tools Lakeland
If you’re planning a big renovation in Orlando, consider javis waste orlando for large scale dumpster rental options!
When it comes to energy efficiency, aluminium windows in London seem to be the best option. I’ve noticed a significant drop in my heating bills since I made the switch durajoin.com
View porn gifs are produced daily in several hundred seminiferous tubules.
This narrows the view to groups within a population but gives rise to.
Rudi Gernreich experimented with Roblox Minecraft and
among us porn parodies of the more out-there parodies too.
At birth or during early 70s porn classic is actually quite
complex thankyouverymuch. Watch the hottest HD porn video below features a recently uncovered dirty talk.
Please read this page we may receive compensation for some hottest
XXX content. Please read this page but shown in their shaved or hairy pussies all through.
More girls chat with them please choose any category of porn videos at POVR.
Beautiful Asian girls six women run a gas station together
and have your partner slide their penis. This stigma targeted lower-class women who continue to monitor the progress of symptoms.
Get back into the pistils each unit consisting of a woman who is.
Pierce Benjamin a physical fight with a bunch of teens who stole her clothes.
Can’t find what you’re looking for more cost-effective options may want to provide you.
See more of her photos you find the best positions for the shoot
respectively. Do not find images of weeks ago the rumor mill has been running rampant not only.
групповое русское порно的最新文章:групповое русское порно
It’s nice knowing where our food comes from when we choose ### anykeyword####. organic meal delivery
So glad I took the advice of friends and checked out Babson Park apartment movers while planning my move to Babson Park.
Hope everyone considers utilizing services mentioned within pages presented by ### anykeyword ### Wimauma commercial movers
So grateful for the services provided by Best Intercession City movers during my recent relocation.
If anyone needs suggestions for movers in Mims, check out ###for amazing service. Long distance movers Mims
After using Wauchula Mover’s for my recent move to Wauchula, I’m definitely spreading the word about their service!
Can’t believe how quickly and efficiently that local ###anyKeyword# handled my move. Winter Park international movers
For high-quality window cleaning in Lakeland, look no further than Lakeland Window Cleaning! lakeland window cleaning solutions