或许有人会问我为啥那么久不更新 其实站点一直有在维护 但是呢優子秉承不发重复 不转帖 不伪原创。因此不会发不是自己倒腾过的东西出来的
今晚睡得晚 错过了睡点 于是直接失眠了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/
评论
The best thing I’ve done this year was rent from @ 任何关键字#! javis orlando dumpster services
Every time I’ve needed help on short notice, they’ve come through like champs—highly recommend reaching out!!!# # anyKeyWord# tow truck for hire
“Incredible transformations featured here; ready to create something magical with my chosen ### anyKeyw###!” charlotte deck builder
This was very enlightening. For more, visit local plumber .
Awesome article! Discover more at https://www.google.com/maps/dir/IKEA,+1100+Broadway+Mall,+Hicksville,+NY+11801/Majestic+Pest+Control+-+Hicksville+Exterminator+Service,+108A+New+South+Rd,+Hicksville,+NY+11801/@40.7653435,-73.5289613,2819m/data=!3m2!1e3!4b1!4m14!4m13!1m5!1m1!1s0x89c28119531bb729:0xd1d954898584e22f!2m2!1d-73.5310053!2d40.7748094!1m5!1m1!1s0x89c28131a18c44cd:0x24c1a989ed6ad67!2m2!1d-73.5066996!2d40.7601316!3e0!5m1!1e3?entry=ttu&g_ep=EgoyMDI1MDMwMy4wIKXMDSoASAFQAw%3D%3D .
Many motor vehicle accident lawyers offer free consultations; take advantage of this to discuss your case! motor vehicle accident lawyer near me
Your advice is spot on! Since starting with regular αποφράξεισ αθήνα , I’ve noticed fewer plumbing issues overall.
Every detail was handled perfectly by # # anykeyword# —I’ll definitely use them again if needed! West Palm Beach movers
Just finished moving into my new place in Keystone Heights and couldn’t be happier with the service I received! Keystone Heights full service movers
This was very enlightening. More at albergue palas de rei .
A friend recommended me to try out Office moving companies Fernandina Beach # and they did not disappoint during my big move last week.
If you’re considering moving soon, don’t forget to book your favorite #movingcompany #inAStatulaco early. Astatula apartment movers
Daniella Levi & Associates, P.C. gave me peace of mind with their exceptional Brooklyn car accident attorney services!
I couldn’t be happier with the support from Daniella Levi & Associates, P.C Accident attorney near me Brooklyn
This was a great article. Check out https://maps.app.goo.gl/nfj2KAYnBBXad4nk9 for more.
What’s the average lifespan of a warm water process in Perth? I’ve seen a few pleasing stats on Plumber South Perth that could aid.
Wonderful tips! Find more at https://maps.app.goo.gl/1D3PLbcizZfrjnxw6 .
I found this very helpful. For additional info, visit Water Damage Restoration .
Love how cheap and reachable self storage from self storage near me is for every person!
This was nicely structured. Discover more at Water damage repair .
Enjoy the excitement of betting with 4rabet with quick login through the 4rabet platform. Whether you’re a fan of placing bets on 4rabet or virtual casino action, this site provides everything under one roof. Download the 4rabet mobile app for fast and seamless gaming to your most loved options. Check out the 4rabet official website today and experience the world of 4ra bet excitement . Join 4 bet and take your casino fun to the highest peak !
Discover the thrill of 4rabet , your ultimate site for wagering on sports and thrilling bets in India. Whether you follow basketball or a variety of games, the 4rabet official website provides a smooth interface to wager online and maximize your profits. With the mobile access to 4rabet , you can log in to your player dashboard at any moment, from anywhere , making sure you never miss out . The 4rabet betting site is designed for both new players and experts , providing a vast collection of wagering opportunities and live dealer experiences.
Register with the 4rabet online community now and immerse yourself in a secure , intuitive gaming environment . Whether you enjoy accessing your account on your desktop or smartphone , the online casino fun is unmatched . Begin playing with the 4rabet platform and take your sports betting journey to the ultimate thrill!
Link: https://valeriasoul.es/discover-4rabet-official-online-website-your-ultimate-sports-betting-and-casino-experience-in-india-2
4RABET provides a effortless process for online gambling and casino fans in India. With the secure sign-in process being hassle-free and secure , players can enter their accounts in seconds . The smartphone access guarantees ease for those on the go , enabling them to bet anytime, anywhere . 4 rabet offers a vast selection of betting options , including cricket , and many other games , catering to Indian audiences. The 4rabet online platform is user-friendly , simplifying the experience for both new users and professional bettors to enjoy. By visiting the 4rabet official website , members can enjoy special bonuses . The betting system is known for its trusted service and quick withdrawals , providing a secure gaming experience . Whether you love wagering on cricket or live dealer experiences, 4rabet has the perfect choice for you.
Workhorse Sports Performance has transformed my fitness journey with their exceptional personal training services!
I’m thrilled with the progress I’ve made at Workhorse Sports Performance in Sparta Sparta NJ fitness training guidance
Benefits derived long-term investments related environmental stewardship cannot overlooked–grateful direction given leading me towards opportunities discovered alongside partnerships developed via tree health service san jose
You can’t mention a go out reverse with Arceus X. It’s got everything you essential: fly, soundness, continuity compatibility, and a influential UI. Works exceptional on Android and forever runs clean.
Workhorse Sports Performance has transformed my fitness journey with their exceptional personal training services!
I’m thrilled with the progress I’ve made at Workhorse Sports Performance in Sparta Personal Training Near Me
Hydroseeding and Sod By Taravella’s Hydro Turf transformed my garden into a lush paradise! Highly recommend this sod company.
I had an amazing experience with Taravella’s Hydro Turf! The best sod company near me, hands down Sod by Taravella’s Hydro Turf in Manitou Springs
Thanks for the comprehensive read. Find more at drainage service Payette .
Appreciate the detailed information. For more, visit pool installation near me .
The technology they use at American Laser Med Spa seems cutting-edge—can’t wait to experience their laser hair removal firsthand! coolsculpting offers
This was quite enlightening. Check out https://maps.app.goo.gl/JJQLFsAsG1bPue6c8 for more.
I have read a few just right stuff here. Definitely worth bookmarking for revisiting.
I wonder how a lot attempt you place to make one of these wonderful informative web site.
home staging Toulouse的最新文章:home staging Toulouse
True Balance Pain Relief Clinic has the best massage therapist. I always leave feeling rejuvenated and relaxed!
I found the perfect massage therapist near me at True Balance Pain Relief Clinic CO services
axitrader limited is a member of the Financial Commission, the PrimeXBT https://jobertabueva.com/unlocking-trading-potential-with-primexbt-mt4/, an international firm engaged in dispute resolution in the field of financial services on the trading floor forex.
I’ve learned so much from your blog about dementia care! More helpful articles can be found at elderly home care .
Kerner Law Group, P.C. is my top recommendation for anyone needing a Bronx car accident attorney! Their dedication is unmatched.
I had a fantastic experience with Kerner Law Group, P.C. Their team includes the best Bronx car accident lawyer I’ve ever met Bronx personal injury attorney
Walter’s BBQ Southern Kitchen has the best brunch in Pittsburgh. The flavors are incredible!
I love finding a brunch spot near me like Walter’s BBQ Southern Kitchen Brunch near downtown Pittsburgh
Experience the excitement of 4rabet online gaming with easy entry through 4rabet login . Whether you’re a fan of 4 ra bet sports betting or casino games , our platform offers it all in one place . Install the 4rabet application for quick and smooth entry to your most loved options. Visit the 4rabet main site right away and experience the fun of online gaming. Register now and take your gaming experience to the ultimate thrill!
Enjoy the thrill of 4rabet , your ultimate platform for wagering on sports and casino games in India. Whether you’re a fan of football or other popular sports , the main 4rabet site features a easy-to-use interface to enjoy betting and win big . With the 4rabet application, you can access your player dashboard anytime , from anywhere , ensuring you stay in the game. The 4ra bet platform is made for both new players and seasoned players , providing a vast collection of betting options and slot machines .
Register with the growing 4rabet family now and enjoy a reliable, intuitive interface . Whether you enjoy using 4rabet on your desktop or mobile , the online casino fun is second to none . Begin playing with 4 ra bet and upgrade your casino fun to new heights !
Link: https://ibccongress.org/galvao-photo-2017/
4rabet India offers a seamless journey for sports betting and casino fans in India. With the easy account access process being quick and secure , players can log into their accounts effortlessly . The 4rabet app login guarantees ease for mobile users , enabling them to play with ease. 4 rabet features a extensive list of wagering opportunities , including football , and more , tailored specifically for Indian players . The website is user-friendly , simplifying the experience for both beginners and professional bettors to use . By checking out the 4rabet official website , players can claim high-value bonuses . The 4rabet casino is famous for its strong reputation and quick withdrawals , ensuring a satisfying online gambling journey. Whether you love gambling on matches or live dealer experiences, our platform has the perfect choice for you.
This was incredibly eye-opening regarding permits and regulations! A knowledgeable charlotte deck builder will guide you through it.
This was very well put together. Discover more at hvac contractor Caldwell .
I’m considering the fact that switching to a sun sizzling water equipment. Has every person executed this in Perth? I learn a few insights on Plumber Near Cannington that have been powerfuble!
Thanks for the clear advice. More at dog grooming service .
What should I look for when hiring a Bradenton international movers in Bradenton?
Anyone have tips on preparing for a move? I’m considering using ### Mid Florida Mover’s
The Appeal of Online Gambling
More and more players are choosing online gambling for its unmatched convenience and variety. A key benefit is that online casinos are available anytime, anywhere. Unlike physical casinos that have operating hours, virtual casinos allow you to play whenever it suits you best.
One of the strongest attractions is the enormous range of gaming options available. While land-based venues have space constraints, online casinos provide an endless assortment of games. From classic fruit machines to cutting-edge video slots with immersive themes, the choices are practically limitless. Want to get the hottest casino updates and promotions? Click here to follow us! – http://www.feedc0de.org/index.php?itemid=625&catid=14
Unlocking Casino Bonuses
Bonuses and special offers make online gambling even more enticing. Signing up usually comes with exciting perks like extra cash or free slot spins. Regular players can take advantage of loyalty programs, cashback deals, and exclusive VIP rewards. Depending on your preferences, you can choose between pure chance games or those where skill makes a difference. For those who enjoy strategic play, poker offers opportunities to refine skills and increase winning chances. If you prefer a fast-paced, unpredictable experience, slots and roulette provide thrilling, luck-based gameplay.How to Gamble Responsibly Online
While online casinos offer fun and potential winnings, responsible gambling is crucial. Smart bankroll management and self-control help players maintain a healthy approach to gambling. Licensed casinos provide responsible gambling measures, such as cooling-off periods and withdrawal restrictions, to help players stay in control. Are you an online casino enthusiast? What’s your go-to game? Tell us about your biggest wins or best casino moments!
Great job! Discover more at Flood pumping near me .
I found this very interesting. Check out pest control for more.
No matterhowbigor smallyourmoveis- alwaysrememberthatworkingwithaprofessionalcompanymakeseverythingmoremanageable&enjoyable!! # # anyKeyWord## Port Richey international movers
Truly inspired by how informative discussions surrounding these areas have become-I’ll definitely direct others towards personal injury lawyer near me
What’s Happening i am new to this, I stumbled
upon this I’ve found It positively helpful and it has helped me out
loads. I’m hoping to give a contribution & aid different customers like its helped me.
Great job.
รับซื้อโทรศัพท์的最新文章:รับซื้อโทรศัพท์
Loving your entire recommendations on facial oils—honestly going to offer them a take a look at after hearing such splendid reports from neighbors too! top skincare products for men
Just had an unforgettable experience with our inflatable water slide from ### any keyword ###—so much fun! redington shores 20 x 30 party tent rental