或许有人会问我为啥那么久不更新 其实站点一直有在维护 但是呢優子秉承不发重复 不转帖 不伪原创。因此不会发不是自己倒腾过的东西出来的
今晚睡得晚 错过了睡点 于是直接失眠了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 liked this article. For additional info, visit Water treatment Kokomo IN .
Специально зарегистрировался на форуме, чтобы сказать Вам спасибо за помощь в этом вопросе, как я могу Вас отблагодарить?
Lil yachty’s song “after the afterparty” is already on assortment. Check out the best poptracks from the seventeenth year charts, which you also will need in the https://pornbrush.com/video/?p=Hot+Hairy+Asian+Fucked+and+Penetrated+by+Lover!
Thanks for the great tips. Discover more at https://x.com/highlineroofin .
Dr. Fisher’s Medical Weight Loss Centers changed my life with their Semaglutide program!
I highly recommend Dr. Fisher’s for anyone in Philadelphia, PA seeking Semaglutide treatments.
Semaglutide near me was easy to find thanks to Dr Dr. Fisher’s weight loss programs
To create an express bet, at https://thegiftcardbarn.com/the-ultimate-guide-to-baji888-unlocking-the/ exception of circumstances in the lobby.
I appreciated this post. Check out wedding venues near me for more.
Appreciate the thorough analysis. For more, visit https://www.youtube.com/watch?v=mKDAZuhDmzM .
Mọi người hãy cùng nhau tạo nên những kỷ niệm đẹp trong hành trình khám phá thế giới game này nhé !##689 club## 789club
Thanks for the clear breakdown. More info at Summers Plumbing Heating & Cooling .
Great job! Discover more at Water treatment Kokomo .
Hãy cùng nhau tận hưởng những khoảnh khắc thú vị bên nhau qua các trò chơi hấp dẫn nhé mọi người ! #7989 789club
Thanks for the detailed post. Find more at pressure washing Cypress TX .
This was very well put together. Discover more at https://maps.app.goo.gl/yzB7Dyd8W7TZcJAU7 .
Thanks for the clear advice. More at https://youtu.be/p4wWbmwpi4w .
Coastal Chiropractic Clinic provided me with incredible relief from my neck pain! They truly are the best around—find out more at Coastal Chiropractic Clinic !
Great insights! Discover more at real estate lawyer injury .
Using the right lens can dramatically improve real estate imagery quality! real estate virtual tours
Enjoy the adrenaline of 4rabet online gaming with easy entry through your 4rabet account . Whether you enjoy sports wagering on 4rabet or casino games , our platform brings it all on one site . Download the 4rabet app login for quick and smooth entry to your favorite games . Explore the 4rabet official website now and dive into the fun of online gaming. Register now and take your casino fun to the ultimate thrill!
Discover the thrill of 4rabet , your go-to platform for wagering on sports and online gambling in India. Whether you’re a fan of basketball or a variety of games, the 4rabet official website offers a smooth platform to place your bets and maximize your profits. With the mobile access to 4rabet , you can log in to your betting profile at any moment, wherever you are, guaranteeing you don’t lose a chance . The 4ra bet platform is created to serve both beginners and experts , providing a vast collection of wagering opportunities and slot machines .
Register with the 4rabet gaming network today and immerse yourself in a reliable, user-friendly interface . Whether you prefer accessing your account on your desktop or mobile , the 4rbet experience is unmatched . Start your journey with 4 ra bet and take your casino fun to the ultimate thrill!
Link: https://city.brosisesolutions.com/discover-4rabet-official-online-website-your-ultimate-destination-for-sports-betting-and-casino-in-india/
The 4rabet platform provides a easy process for casino enthusiasts and casino fans in India. With the 4rabet login process being hassle-free and protected , members can access their betting dashboards without issues. The 4rabet app login guarantees accessibility for mobile users , making it easy to bet anytime, anywhere . 4rabet India offers a extensive list of betting options , including football , and more , tailored specifically for Indian players . The 4rabet online platform is user-friendly , ensuring smooth access for both first-time players and high-stakes users to navigate . By accessing the main site , users can enjoy special rewards . The betting system is known for its strong reputation and quick withdrawals , providing a secure online gambling journey. Whether you enjoy wagering on cricket or playing slots , 4rabet has the perfect choice for you.
Интересно узнать о новых инициативах правительства Узбекистана! Все подробности на https://www.mixcloud.com/bedwynxlty/ .
The level of expertise at Summit Services is impressive—they handle everything efficiently and effectively! Electrician
Anyone else excited about the upcoming Haltom City festival? It’s going to be fantastic! Auto accident chiropractor near me
Instagram’da daha fazla etkileşim ve görünürlük kazanmak isteyenler, hemen denemeli! Detaylar için korsan taksi istanbul
Love reading testimonials coming directly clients showcasing successes achieved collectively injury lawyers in dallas
How has your perspective on life changed since completing your drug detox process? drug detox
Education about eating disorders can lead to better understanding and support. Explore information at eating disorder .
Полностью доверяю этому врачу и его команде — всегда добрые и внимательные люди! клиника ташкент
This was very enlightening. More at Water damage restoration contractor .
Investment into innovative solutions addressing root causes behind substance misuse ensures lasting impacts felt generations ahead—we owe future selves this commitment!!!# anyKeyWord # addiction treatment
I found that mindfulness techniques were incredibly helpful during my detox process. More tips available at alcohol detox !
I’m interested if anyone has tried nutritional counseling alongside their chiropractic adjustments from clinics near mes quite tx ? # # anykeyword # Premier Injury Clinics Mesquite – Auto Accident Chiropractic
After my car accident, I learned that having the right attorney can significantly impact your settlement amount! personal injury defense attorney near me
Denver Print Company exceeded my expectations with their yard signs!
I recently ordered yard signs from Denver Print Company and was impressed yard sign companies near me
The role of counselors and therapists in drug rehab cannot be overstated—they are true lifesavers! drug rehab
Did you know that leasing a limo can really save you cash on transport for a group? It’s a fun and cost-effective option! Learn more information at Black Car Hire .
The Appeal of Online Gambling
There are many reasons why online casinos have gained massive traction. A key benefit is that online casinos are available anytime, anywhere. Unlike physical casinos that have operating hours, online platforms operate 24/7, letting players enjoy their favorite games at any time.
Another major reason for their popularity is the sheer variety of games. Traditional casinos are often limited by space, but online platforms can host thousands of different games. Whether you love old-school slots or cinematic video games, there’s something for everyone. Stay updated with the latest casino news, exclusive bonuses, and expert tips—follow us here! – https://meowracun.com/2024/12/26/1win-la-eleccion-de-los-jugadores-en-apuestas-y-casinos-online/
Unlocking Casino Bonuses
One of the biggest draws of online casinos is the generous promotions and bonuses. New players are often welcomed with attractive sign-up bonuses, deposit matches, and free spins. Regular players can take advantage of loyalty programs, cashback deals, and exclusive VIP rewards. Not all casino games are about luck—some demand strategic thinking and expertise. 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.Finding a Secure and Fair Casino
To ensure a positive experience, it’s vital to play responsibly and within limits. Setting personal limits, managing your budget wisely, and avoiding chasing losses are key to enjoying online casinos safely. Reputable platforms also promote responsible gaming by offering tools like deposit limits, self-exclusion, and links to gambling support organizations. Are you an online casino enthusiast? What’s your go-to game? Drop your opinions and stories in the discussion thread!
Enjoy the thrill of 4rabet online gaming with seamless access through the 4rabet platform. Whether you enjoy placing bets on 4rabet or casino games , our platform offers it all on one site . Download the 4rabet app login for instant and seamless gaming to your favorite games . Explore the 4rabet homepage right away and experience the world of 4ra bet excitement . Join 4 bet and take your betting journey to the highest peak !
Enjoy the adrenaline rush of 4rabet , your best platform for sports predictions and thrilling bets in India. Whether you’re a fan of basketball or other popular sports , the main 4rabet site provides a smooth platform to wager online and maximize your profits. With the mobile access to 4rabet , you can enter your betting profile anytime , anywhere , guaranteeing you never miss out . The 4rabet betting site is made for both new players and experts , providing a diverse selection of wagering opportunities and casino games .
Become a part of the 4rabet online community now and enjoy a safe , easy-to-use betting system. Whether you enjoy using 4rabet on your computer or tablet, the 4rbet experience is top-tier. Start your journey with the 4rabet platform and upgrade your gaming experience to another level !
Link: https://www.amicas.it/2016/07/27/lates-blog-post-with-image/
The 4rabet platform provides a seamless journey for sports betting and gamblers in India. With the 4rabet login process being quick and protected , users can log into their accounts effortlessly . The smartphone access ensures accessibility for mobile users , enabling them to bet anytime, anywhere . 4rabet India features a wide range of sports events, including cricket , and many other games , catering to Indian audiences. The 4rabet online platform is beginner-friendly, ensuring smooth access for both first-time players and high-stakes users to enjoy. By checking out the 4rabet official website , members can claim high-value bonuses . The 4ra bet platform is trusted for its strong reputation and quick withdrawals , providing a secure betting adventure . Whether you love sports betting or playing slots , 4rabet has something for everyone .
Storing holiday decorations has certainly not been less demanding, thanks to self storage at self storage Belleville !
buy viagra
Mostbet-এর অনন্য পরিবেশ – আপনার
অপেক্ষায় । mostbet
mostbet的最新文章:mostbet
Each photo exudes tranquility and beauty; such an inspiring collection you’ve created—don’t miss out on what’s offered at expert architectural photography services .
I found this very helpful. For additional info, visit roofing contractors dayton ohio .
Busineѕses need leadership aѕ well as outcome! In my opinion the US needed to be sold after halftime like features zero to
ᴢero. First of all, it pays to read autonomous bookmaker reviews.
My web-site เว็บพนันบอลออนไลน์ที่ดีที่สุด รีวิว 10 อันดับเว็บแทงบอลเว็บตรงยอดนิยม
เว็บพนันบอลออนไลน์ที่ดีที่สุด รีวิว 10 อันดับเว็บแทงบอลเว็บตรงยอดนิยม的最新文章:เว็บพนันบอลออนไลน์ที่ดีที่สุด รีวิว 10 อันดับเว็บแทงบอลเว็บตรงยอดนิยม
Just wanted to share that if you’re looking for roofers near me in Leander Texas, you should check out the reviews on Roofing contractor first!
Все проблемы со здоровьем чаще всего начинаются со стресса; поэтому очень важно получать поддержку от специалистов как можно раньше # # anyKeyWord ## Дерматолог в Ташкенте
Tham gia Rikvip để trải nghiệm những điều mới mẻ trong thế giới giải trí! rikvip
Puget Sound Moving Seattle made our transition so smooth, their professional movers near me were efficient and careful with all our belongings!
The team at Puget Sound Moving Seattle went above and beyond movers Seattle
Доставка продуктов на дом через онлайн-магазин. сейчас на это не придётся тратить пол дня. Продукция дополнена сертификаты качества, https://axis-mkt.com/frank-yoo/ гарантирующими безвредность и качество.
After researching, is security film on windows worth the investment in terms of safety and peace of mind? safety film for windows Louisville
Вопрос: как правильно работать с отзывами клиентов при оптимизации сайта? marketing agency
I’m so impressed with the care I received at Coastal Chiropractic Clinic. They really are the best chiropractor in Amelia Island! Visit them at Chiropractor .