或许有人会问我为啥那么久不更新 其实站点一直有在维护 但是呢優子秉承不发重复 不转帖 不伪原创。因此不会发不是自己倒腾过的东西出来的
今晚睡得晚 错过了睡点 于是直接失眠了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/
评论
Agen slot online ini memang banyak pilihan, tapi harus hati-hati memilihnya visa288 online slots
It’s essential to do research before making decisions—especially with vehicle logistics; check this helpful site about transporting cars around garden grove: # # anyKeyWord Garden Grove auto shipping
My neighbor had a harmful tree eliminated through Tree services Friendswood last week
I enjoyed this post. For additional info, visit The Winslow bar specials
Can our company speak about exactly how critical it is actually to possess trained safety workers? Their existence alone can easily discourage criminal activity! Learn more regarding this at security guards near me
This was quite helpful. For more, visit Dental Group Beverly Hills
Every little bit counts—it’s refreshing seeing organizations prioritizing client satisfaction above anything else during hectic periods ! ### any Long distance movers Brandon
Moving can be stressful, but with the right team in Ponte Vedra Beach, it doesn’t have to be Ponte Vedra Beach moving companies
This was very enlightening. For more, visit AKK Garage Doors
Just got back from my routine check-up at my local dentist dentist mission viejo
Security personnel do so so much more than merely patrol; they give peace of mind security guards near me
Riverview has some top-notch moving companies; #1 on my list is definitely Riverview commercial movers
Online casinos have revolutionized the gambling scene, offering an exceptional degree of accessibility and variety that brick-and-mortar casinos fall short of. Over the past decade, countless gamblers across the globe have welcomed the pleasure of virtual gambling thanks to its always-open nature, thrilling aspects, and constantly growing game libraries.
If you’re a beginner with the world of digital casinos or would like to find out more about trusted platforms, why not engage with our lively online hub? It’s a hub where gaming aficionados exchange tips, guiding you to improve your casino activities. Discover the experience and see it here now: https://bluebellcommunitycentre.com/index.php/2023/04/09/revolutionize-your-business-with-our-cutting-edge/
One of the main appeals of digital gambling sites is the incredible variety of titles on offer. Whether you prefer rolling traditional fruit machine slots, trying out story-driven modern slot games, or mastering skills in classic casino games like Blackjack, digital casinos boast endless options. Several sites furthermore offer live dealer games, enabling you to interact with human game hosts and co-players, all while experiencing the lifelike ambiance of a land-based casino without leaving your home.
Beyond variety, digital casino services are known for accessibility.
If you’re in need of a Las Vegas moving company 1st Choice Moving LV
Hey, I think your website might be having browser compatibility issues.
When I look at your website in Safari, it looks fine but when opening in Internet Explorer, it
has some overlapping. I just wanted to give you a quick heads up!
Other then that, excellent blog!
bokep hijab terbaru indo的最新文章:bokep hijab terbaru indo
The emphasis on communique between caregivers senior home care Wichita ks
Well explained. Discover more at The Winslow happy hour drinks
Searching for reliable long distance movers in Vero Beach? You’re not alone! Check out helpful tips at Vero Beach movers
So many people underestimate the value of hiring a skilled attorney; explore this topic further at # # anyKeyWord # # criminal lawyer in winnipeg
I appreciate every bit of information shared regarding milwaukee automobile transporters Milwaukee car shipping
Thanks for the valuable insights. More at Dental Group of Beverly Hills
Great job! Find more at taxi arzua
Thanks for the great tips. Discover more at casas rurales Segovia
I had no idea that baking soda drain cleaning services
Thanks for sharing your expertise on soldering techniques! It’s a skill that can save you a lot of money on repairs iphone screen repair
Great insights! Find more at AKK Garadge Doors
Thanks to Austin vehicle shipping
Digital casinos have reshaped the casino gaming scene, offering a level of accessibility and diversity that conventional establishments fall short of. Throughout the last ten years, millions of players worldwide have adopted the fun of internet-based gaming in light of its anytime, anywhere convenience, exciting features, and progressively larger range of offerings.
If you’re just starting with the world of online gaming or want to learn about reliable sites, why not participate in our lively interactive platform? It’s a platform where gaming aficionados offer stories, helping you to get the most out of your casino activities. Explore the discussions and start your journey now: https://lolipop-pandahouse.ssl-lolipop.jp:443/g5/bbs/board.php?bo_table=aaa&wr_id=1894907
One of the most compelling reasons of digital gambling sites is the astounding range of entertainment options on offer. Whether you prefer spinning vintage reel games, immersing yourself in engaging thematic slots, or testing your strategy in classic casino games like Blackjack, online platforms feature numerous options. Plenty of operators even include interactive dealer games, giving you the chance you to participate with professional croupiers and fellow gamblers, all while enjoying the immersive feel of a land-based casino without leaving your home.
Besides the wide selection, online casinos stand out ease of access.
I liked this article. For additional info, visit ##Oracle Law Firm## Newport Beach Car Accident lawyer
Just got braces from a fantastic orthodontist in Mission Viejo! Highly recommend them! cosmetic dentist mission viejo
Хочешь скачать взломанные версии игр для Android? Тогда заходи на **pdagame.ru**! Здесь лучшие улучшенные версии игр. Премиум-функции – все это доступно в один клик. Скачивай и играй без ограничений.
This was highly educational. More at payday loans new orleans
Thanks for the great tips. Discover more at klinika stomatologiczna warszawa
Appreciate the comprehensive advice. For more, visit car rental toronto
Anyone else had success with #anyKeyword#? They really came through for me on my recent car shipment from Houston Houston car transportation services
Very pleased with the professionalism shown by the team at Garden Grove auto shippers—definitely worth considering for your next move! Check it out: 𝗦𝗵𝗶𝗽 𝗩𝗲𝗵𝗶𝗰𝗹𝗲𝘀 𝗚𝗮𝗿𝗱𝗲𝗻 𝗚𝗿𝗼𝘃𝗲
De Plinko game is een veelgeprezen games die de afgelopen jaren populair zijn geworden. Het populaire spel, oorspronkelijk ontstaan in het tv-programma The Price Is Right, heeft zich geschaald naar de digitale gokmarkt.
In dit artikel gaan we behandelen we alles wat je moet begrijpen over Plinko, van de fundamenten van het spel tot hoe je met echt geld kunt spelen en de beste strategieen om het spel te spelen.
Web: http://multiconexoes.ind.br/category/sem-categoria/page/18/
Plinko is een simpel, maar spannend spanningstocht dat bekend is geworden door het showprogramma The Price Is Right. Het spel bestaat uit een verticale spelstructuur met een aantal objecten waar de valbal van bovenaf doorheen valt naar beneden. De bal bounced van de pinnen en komt uiteindelijk in een van de doelen, die elk een bepaald winstbedrag tonen. De winst is afhankelijk van de bal valt. Dit betekent dat het een spel van toeval is, waarbij spelers niet kunnen voorspellen waar de bal zal landen.
Hoewel de basisstructuur van het spel simpel lijken, maakt de geluksaspect van het spel het meeslepend en adembenemend. Dit is een van de oorzaken waarom Plinko met succes is gepopulariseerd. Het wordt vaak aangeboden als een digitale versie van Plinko in verschillende online casino’s, waar spelers geld kunnen winnen door te gokken door te in te voeren op de uitkomst van hun gokballen.
Wanneer je een Plinko casino game speelt, lijkt het spel vaak hetzelfde als de tv-uitzending van Plinko. De grote verschillen liggen in de manier waarop je inzet hebt en het feit dat je met echt geld kunt spelen. In plaats van voor rewards zoals in de serie, kun je in een online gaming omgeving geld inzetten. De prijswinsten worden bepaald door het doel waarin de bal terechtkomt afhankelijk van de plaats van de bal.
Spelers kunnen kiezen hoeveel ze willen inzetten, en naar gelang je inzet kunnen de winsten fluctueren. De Plinko online gokspel wordt vaak gebruiker-vriendelijke versie geboden, wat het voor beginnende spelers makkelijker maakt om het spel te begrijpen. Veel online casino’s bieden een Plinko game download optie, zodat je het spel kunt spelen op je tablet, zelfs zonder verbonden te zijn. Dit maakt het gemakkelijker om te spelen en maakt het spel toegankelijk.
Great insights! Find more at TheWinslow
Любишь мобильные игры, но надоела реклама? Загляни на *pdagame.ru*! Здесь собраны новейшие модификации для Android-игр. Монеты, энергия, VIP-доступ – все бесплатно. Простая установка.
Thanks, Quite a lot of information!
Feel free to visit my web site :: https://medium.com/@traveltoday0082/unlocking-the-full-potential-of-gsa-search-engine-ranker-for-seo-mastery-69fb8e100768
This is quite enlightening. Check out expert dentists in Beverly Hills group for more
If you’re relocating soon Brandon commercial movers
I just had an amazing encounter with my dental expert in Bloomfield NJ! They created me believe pleasant and updated throughout the procedure. Inspect it out at sleep apnea dentist
Internet-based gambling hubs have transformed the gambling landscape, delivering an exceptional degree of ease and diversity that brick-and-mortar gambling houses fall short of. In recent years, a large audience internationally have chosen the thrill of digital casino play due to its anytime, anywhere convenience, engaging traits, and ever-expanding range of offerings.
If you’re exploring for the first time with the world of digital casinos or would like to explore trusted platforms, why not engage with our vibrant community? It’s a destination where players offer tips, assisting you to get the most out of your casino activities. Check out the connections and see it here now: https://bbs.flashdown365.com/home.php?mod=space&uid=2072075&do=profile&from=space
One of the main appeals of online casinos is the unparalleled diversity of games on offer. Whether you are a fan of engaging with classic slots, exploring engaging thematic slots, or mastering skills in strategy-based games like Baccarat, casino websites offer endless options. Many casinos moreover offer live dealer games, enabling you to interact with real dealers and fellow gamblers, all while enjoying the lifelike ambiance of a physical gaming house from anywhere you want.
In addition to diversity, digital casino services are known for constant connectivity.
This was very enlightening. For more, visit A.K.K. Garage Doors
Apakah ada agen slot online yang menyediakan layanan pelanggan 24 jam? visa288 agen recommendations
Grateful every day that we chose #### as our moving Long distance movers Riverview
Thanks for the useful post. More like this at North Atlanta Chiropractic Center
Het Plinko spel is een van de meest populaire games die in de laatste jaren beschikbaar zijn in de online casinowereld. Deze game, afkomstig van de tv-show ‘The Price Is Right’, heeft zich snel aangepast aan de moderne casinowereld.
In de komende alinea’s bespreken we alles wat je belangrijk is om te weten over het Plinko spel, van de beginprincipes van het spel tot hoe je voor echte winsten kunt spelen en de beste strategieen om het spel te spelen.
Web: https://www.k3engineeringsolutions.com/author/cre8iveskills/page/79/
De casinogame Plinko is een simpel spel dat boeiend is spanningstocht dat vaak wordt geassocieerd met de tv-hit The Price Is Right. Het spel bestaat uit een verticale spelstructuur met een aantal punten waar een bal van bovenaf doorheen valt. De bal kaatst van de pinnen en landt in een van de hoeken, die elk een bepaald bedrag tonen. De winst is direct verbonden met de bal landt. Dit betekent dat het een game van toevallige uitkomst is, waarbij spelers geen controle hebben over waar de bal terecht zal komen.
Hoewel de basismechanismen van het spel eenvoudig zijn, maakt de randomheid van het spel het leerzaam en uitdagend. Dit is een van de oorzaken waarom Plinko in de online casino wereld zo populair is geworden. Het wordt vaak aangeboden als een online versie van het spel in verschillende online digitale gokplatforms, waar spelers geld kunnen winnen door te gokken door te in te voeren op de uitkomst van hun spelballen.
Wanneer je een Plinko game in een casino speelt, lijkt het spel nagenoeg hetzelfde als de tv-uitzending van Plinko. De afwijkingen liggen in de manier waarop je kunt inzetten en het feit dat je met echt geld inzetbaar is. In plaats van voor beloningen zoals in de televisieprogramma, kun je in een goksite inzetten met echt geld. De beloningen worden bepaald door waar het vakje waarin de bal terechtkomt wordt uitgerekend.
Spelers kunnen kiezen hoeveel ze willen inzetten, en gebaseerd op je inzet kunnen de uitbetalingen varieren. De Plinko online gokspel wordt vaak op een makkelijke manier aangeboden, wat het voor beginnelingen makkelijker maakt om het spel te proberen. Veel gokwebsites bieden een Plinko game download optie, zodat je het spel kunt spelen op je mobiel, zelfs zonder internet toegankelijk. Dit maakt het gemakkelijker om te spelen en maakt het spel toegankelijk.
Greetingѕ! I’ve been гeading your sitе for ѕome tіme now and
finally ɡot the courage to go ahead and gіve
you a shout out from Atascocita Tx! Just wanted to tell you keep up the goߋd work!
My web site Uniforms suppliers
Uniforms suppliers的最新文章:Uniforms suppliers