或许有人会问我为啥那么久不更新 其实站点一直有在维护 但是呢優子秉承不发重复 不转帖 不伪原创。因此不会发不是自己倒腾过的东西出来的
今晚睡得晚 错过了睡点 于是直接失眠了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/
评论
I’m not sure exactly why but this web site is loading incredibly slow for me.
Is anyone else having this problem or is it a issue on my end?
I’ll check back later on and see if the problem still exists.
31231的最新文章:31231
Качественное остекление балкона помогает сохранить тепло и снизить затраты на отопление https://osteklenie-balkonov-v-kredit.pro/otzyvy/
Скачивание изменений на Android становится всё более популярным среди мобильных геймеров, которые хотят дополнить свои впечатления от игр, встраивая новые функции, открывая внутриигровые ресурсы или делая проще игру. Для многих пользователей моды с читами являются отличным возможностью получить больше радости от игрового процесса, будь то с использованием модификаций, облегчающих игровой процесс, или предлагающих возможности, которые как правило были бы заблокированы без донатов.
Переходите по ссылке для информации: https://oke.zone/profile.php?id=276591
Эта процесс привлекает множество игроков, ищущих моды для мобильных игр, поскольку она открывает возможность значительно углубить возможности игры по сравнению со исходной версией игры.
Особенно привлекательны моды с читами для мобильных игр, таких как платформеры, где зрителям нужно преодолевать сложные этапы или успехи, которые без подобных модификаций могут быть непростыми или длительными.
Такие взломы зачастую имеют читы на бесконечный запас здоровья, бесконечные деньги или доступ к эксклюзивным предметам, которые дают возможность пользователям двигаться вперёд по игре, не растрачивая большую энергию или денежных средств.
Great beat ! I would like to apprentice while you amend your web site, how can i
subscribe for a blog web site? The account aided me a acceptable deal.
I had been tiny bit acquainted of this your broadcast offered bright clear idea
Feel free to surf to my web page; คา สิ โน ออนไลน์ ต่าง ประเทศ
คา สิ โน ออนไลน์ ต่าง ประเทศ的最新文章:คา สิ โน ออนไลน์ ต่าง ประเทศ
Great weblog right here! Also your website lots up fast!
What web host are you using? Can I get your affiliate hyperlink in your host?
I desire my web site loaded up as fast as yours lol
my blog post – https://carheadz.com/virtual-online-learning-tool-for-kids-for/
https://carheadz.com/virtual-online-learning-tool-for-kids-for/的最新文章:https://carheadz.com/virtual-online-learning-tool-for-kids-for/
Как правильно приобрести диплом колледжа или ПТУ в России, важные моменты
Does your website have a contact page? I’m having trouble locating it but, I’d like to send you an e-mail.
I’ve got some ideas for your blog you might be interested in hearing.
Either way, great blog and I look forward to seeing it expand over
time.
Feel free to surf to my webpage … Industrial diesel generator
Industrial diesel generator的最新文章:Industrial diesel generator
Keep this going please, great job!
My website Stone veneer for Heritage properties
Stone veneer for Heritage properties的最新文章:Stone veneer for Heritage properties
спа салон в москве для двоих недорого
спа салон в москве для двоих недорого的最新文章:спа салон в москве для двоих недорого
Great blog! Do you have any suggestions for aspiring writers?
I’m hoping to start my own site soon but I’m a little lost on everything.
Would you recommend starting with a free platform like WordPress or go for
a paid option? There are so many choices out there that I’m totally confused ..
Any recommendations? Many thanks!
เล่นบาคาร่า10บาท的最新文章:เล่นบาคาร่า10บาท
Как купить диплом о высшем образовании с минимальными рисками
I am regular visitor, how are you everybody? This piece of writing
posted at this web page is truly nice.
Also visit my blog post RVS
RVS的最新文章:RVS
https://je-tall-marketing-338.b-cdn.net/research/je-tall-sf-marketing-(73).html
With that in mind, you’re absolutely entitled to need an outfit that
lives as a lot as the special day.
台中 中醫 整骨的最新文章:台中 中醫 整骨
What i do not understood is if truth be told how you’re not actually much more well-liked than you might be right now.
You are very intelligent. You already know thus considerably
on the subject of this matter, produced me personally consider it from so many numerous angles.
Its like men and women don’t seem to be fascinated until it’s something to accomplish with Woman gaga!
Your personal stuffs outstanding. All the time care for it up!
คู่มือ บาคาร่า的最新文章:คู่มือ บาคาร่า
Hiya very cool site!! Guy .. Beautiful .. Wonderful ..
I’ll bookmark your web site and take the feeds additionally?
I am happy to search out a lot of useful information here in the
post, we’d like work out more strategies on this regard, thanks for sharing.
. . . . .
วิเคราะห์ บา ค่า ร่า的最新文章:วิเคราะห์ บา ค่า ร่า
Dating Things To Consider For Men – How Meet Up With And Attract Women 안산가라오케 (posteezy.com)
posteezy.com的最新文章:posteezy.com
Лови момент и фиксируй свой выигрыш в Авиаторе, пока самолет не улетел слишком далеко: игра авиатор на деньги вся правда отзывы
Chronic Pain Management And Nutritional Therapy 제주가라오케
제주가라오케的最新文章:제주가라오케
Choosing Appropriate Lighting For Any Club 여수가라오케 –
https://menwiki.men/,
https://menwiki.men/的最新文章:https://menwiki.men/
Day Spa Services Are Stress Busters That Issues 수원가라오케
수원가라오케的最新文章:수원가라오케
The Cool And Classy Nyc Lounges 일산가라오케
일산가라오케的最新文章:일산가라오케
поездка в дальний город может быть впечатляющим, но иногда вызывает беспокойство, особенно когда нужно определиться с такси. Чтобы избежать неприятностей, важно знать несколько полезных правил. Всегда используйте официальные сервисы заказа трансфера, такие как Uber или местные приложения. Это обеспечивает понятные тарифы и защиту https://tratatur.ru/price/taxi-tuapse-plyakho
. Перед маршрутом ознакомьтесь с отзывами о компании и уточните тариф поездки. Обязательно проверьте действительность лицензии у водителя и исправность автомобиля. Если у вас возникнут подозрения, лучше отказаться от поездки. Следуя этим указаниям, вы сможете полюбоваться путешествием без лишних забот.
Wonderful blog! I found it while browsing on Yahoo News.
Do you have any suggestions on how to get listed in Yahoo News?
I’ve been trying for a while but I never seem to get there!
Appreciate it
บาคาร่าออนไลน์ ไม่มีขั้นต่ํา的最新文章:บาคาร่าออนไลน์ ไม่มีขั้นต่ํา
I need to to thank you for this excellent read!! I certainly loved
every bit of it. I have got you bookmarked to look
at new stuff you post…
My web blog … เครดิตฟรีล่าสุด
เครดิตฟรีล่าสุด的最新文章:เครดิตฟรีล่าสุด
купить ксиву купить ксиву .
Hey are using WordPress for your site platform? I’m new to the blog world but
I’m trying to get started and create my own. Do you require any html coding expertise to make your own blog?
Any help would be greatly appreciated!
จับ บาคาร่า ออนไลน์的最新文章:จับ บาคาร่า ออนไลน์
Undeniably believe that which you said. Your favorite reason seemed to be on the net the simplest thing to take into accout of.
I say to you, I certainly get annoyed at the same time as people think
about concerns that they just don’t recognize about.
You managed to hit the nail upon the highest and also outlined out
the whole thing with no need side effect , other folks can take a signal.
Will likely be back to get more. Thank you
play rainbow obby的最新文章:play rainbow obby
Thanks for your personal marvelous posting! I genuinely enjoyed reading it, you are a great
author. I will be sure to bookmark your blog
and will come back at some point. I want to encourage that you continue your great work, have a nice holiday weekend!
เล่นบาคาร่า10บาท的最新文章:เล่นบาคาร่า10บาท
I constantly emailed this website post page to all my contacts, since
if like to read it then my friends will too.
บาคาร่าออนไลน์ ผิดกฎหมายไหม的最新文章:บาคาร่าออนไลน์ ผิดกฎหมายไหม
דיסקרטיות בבאר שבע לבילוי חם בדרום לא סתם אומרים שחם בדרום. ואיננו מתכוונים למזג נקיות ונוחות. אבל זוהי רק הסביבה המאפשרת את אם אתה גבר שרוצה לקטוף את החלומות, נראה שיש לנו את נערות ללקוחות. דירות דיסקרטיות בחיפה וחינוך מיני לכולם הנגישות של דירות you could try these out
New Nevada Clubs Make 2012 Debut 부산가라오케
부산가라오케的最新文章:부산가라오케
How To Own A Successful And Affordable Party For Kids 구미가라오케 – historydb.date –
historydb.date的最新文章:historydb.date
Hey there! I just wanted to ask if you ever have any issues with hackers?
My last blog (wordpress) was hacked and I ended
up losing months of hard work due to no backup. Do you have any methods to stop hackers?
บาคาร่าออนไลน์ ได้เงินจริงไหม的最新文章:บาคาร่าออนไลน์ ได้เงินจริงไหม
Why Online Casinos Are Becoming a Worldwide Trend
Internet-based gambling hubs have reshaped the gaming scene, delivering an exceptional degree of ease and diversity that traditional venues are unable to replicate. Over the past decade, a large audience across the globe have chosen the thrill of digital casino play because of its anytime, anywhere convenience, captivating elements, and constantly growing range of offerings.
One of the biggest attractions of internet-based platforms is the unparalleled range of gaming experiences ready to play. Whether you love playing on old-school slots, trying out narrative-rich video-based games, or playing smart in strategy-based games like Blackjack, casino websites offer infinite entertainment avenues. Plenty of operators even feature live gaming streams, making it possible for you to connect with real dealers and other players, all while experiencing the authentic ambiance of a land-based casino in your own space.
If you’re new with the world of virtual casino play or seek to find out more about reliable sites, why not become part of our vibrant community? It’s a platform where players post stories, assisting you to maximize your virtual play. Check out the experience and check it out now: 22bet
Besides the wide selection, virtual gaming providers shine ease of access.
Скачивание взломов на Android становится всё более популярным среди геймеров, которые хотят персонализировать свои игровые возможности, интегрируя функционал, получая специальные ресурсы или делая легче путь в игре. Для многих пользователей моды с читами являются отличным вариантом получить больше удовольствия от мобильных игр, будь то при помощи изменений, облегчающих приключения в игре, или дающих преимущества, которые как правило были бы недоступны без финансовых затрат.
Переходите по ссылке для информации: https://economicos.radiocalientefm.cl/index.php/author/lenardweed/
Эта традиция привлекает множество геймеров, ищущих моды для мобильных игр, так как она обеспечивает значительно увеличить геймплей по сравнению со начальной версией игры.
Особенно привлекательны моды с читами для смартфонов, таких как платформеры, где геймерам нужно преодолевать трудные задачи или задания, которые без подобных взломов могут быть слишком трудными или длительными.
Такие исправления зачастую содержат читы на бесконечный запас здоровья, всё золото или эксклюзивные ресурсы, которые улучшают пользователям быстрее продвигаться по задачам, не тратя минимум огромное количество времени или игровых покупок.
I always used to study post in news papers but now as I
am a user of internet thus from now I am using net for articles, thanks to web.
บา คา ร่า ออนไลน์ ขั้น ต่ํา 10 บาท的最新文章:บา คา ร่า ออนไลน์ ขั้น ต่ํา 10 บาท
I didn’t want this article to end! Made its way to my Facebook for others to see.
Here is my page slot gacor 2025
slot gacor 2025的最新文章:slot gacor 2025
купить диплом форум будь
Купить аттестат в Махачкале
Free AI cover letter generator – download and edit effortlessly
ai cover letter generator http://writingcoverletterai.com/ .
купить аттестат о среднем
купить диплом документы россии 2orik-diploms.ru .
Using A Prepared Thought Journal To Identify Anger Triggers 광주가라오케
광주가라오케的最新文章:광주가라오케
Why Online Casinos Are So Popular
Internet-based gambling hubs have revolutionized the gaming world, delivering an unmatched level of comfort and range that conventional establishments fall short of. Over time, countless gamblers worldwide have embraced the thrill of online gaming thanks to its always-open nature, captivating elements, and constantly growing range of offerings.
One of the key draws of internet-based platforms is the vast diversity of choices ready to play. Whether you like playing on retro one-armed bandits, trying out story-driven thematic slots, or exercising tactics in strategy-based games like Roulette, online platforms provide countless entertainment avenues. Many casinos furthermore feature live gaming streams, letting you to communicate with human game hosts and gaming peers, all while taking in the engaging environment of a physical gaming house without leaving your home.
If you’re exploring for the first time with the world of internet-based gaming or want to delve deeper into safe services, why not participate in our growing social network? It’s a space where gaming aficionados post insights, enabling you to maximize your online casino experience. Dive into the discussions and learn more now: bet on red casino
Besides the wide selection, digital casino services stand out seamless entry.
I really like looking through a post that can make people think.
Also, thank you for allowing for me to comment!
บาคาร่าที่เล่นง่ายที่สุด的最新文章:บาคาร่าที่เล่นง่ายที่สุด
Right away I am going to do my breakfast, after having my breakfast coming yet again to read
further news.
https://bio.rogstecnologia.com.br/rebekahtbo1的最新文章:https://bio.rogstecnologia.com.br/rebekahtbo1
Howdy! This post couldn’t be written any better! Reading through
this post reminds me of my good old room mate! He always kept talking about this.
I will forward this write-up to him. Pretty sure
he will have a good read. Many thanks for sharing!
Tollywood Collections的最新文章:Tollywood Collections
Wow, that’s what I was exploring for, what a data! present here at this web site,
thanks admin of this web page.
Tollywood Box Office Collection的最新文章:Tollywood Box Office Collection
I was excited to uncover this site. I want to to thank you for
ones time for this wonderful read!! I definitely liked every little bit of it
and I have you book marked to check out new information on your web site.
อธิบายบาคาร่า的最新文章:อธิบายบาคาร่า
Enjoying The Dubai Nightlife 가라오케 사이트
가라오케 사이트的最新文章:가라오케 사이트