或许有人会问我为啥那么久不更新 其实站点一直有在维护 但是呢優子秉承不发重复 不转帖 不伪原创。因此不会发不是自己倒腾过的东西出来的
今晚睡得晚 错过了睡点 于是直接失眠了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/
评论
Great job! Discover more at blepharoplasty
This blog is a treasure trove of information for homeowners like me looking to maintain our roofs properly! More resources at roof installation
Having extra space readily available via **self-storage** has helped me get well prepared; I’m completely happy I chose **#** any Keyword **#** self storage Miami
Can’t stress enough importance surrounding cultivating relationships built around fostering growth within community dedicated focusing heavily upon nutrition; take chance discovering insights offered up amongst conversations occurring surrounding trusted restaurant supply wholesaler
Hey! I realize this is sort of off-topic but I had to ask.
Does operating a well-established blog such as yours take a
lot of work? I’m brand new to operating a blog
but I do write in my diary daily. I’d like to start a blog so I will
be able to share my experience and views online. Please let me know if you have any kind
of suggestions or tips for brand new aspiring blog owners.
Thankyou!
Look at my website: Diesel generator
Diesel generator的最新文章:Diesel generator
Internet-based gambling hubs have transformed the betting landscape, providing a unique kind of user-friendliness and breadth that traditional establishments can’t match. Throughout the last ten years, a growing community internationally have embraced the thrill of digital casino play in light of its availability, engaging traits, and widening selection of games.
If you’re new with the world of online gaming or want to explore safe services, why not join our vibrant interactive platform? It’s a destination where fans offer experiences, making it easier for you to maximize your gaming journey. Explore the community and check it out now: https://gofundhaiti.com/explora-el-mundo-de-1win-el-sitio-de-juegos-de-azar-mas-confiable-juegos-para-todos-los-gustos-mercados-deportivos-completos-y-aplicacion-confiable-y-segura-para-jugar-sin-limites-las-24-horas/
One of the main appeals of internet-based platforms is the sheer selection of games provided. Whether you are a fan of interacting with traditional one-armed bandits, diving into plot-filled modern slot games, or testing your strategy in traditional table offerings like Texas Hold’em, digital casinos provide endless options. Plenty of operators additionally include live dealer games, giving you the chance you to communicate with actual dealers and fellow gamblers, all while soaking in the realistic feel of a brick-and-mortar establishment from the comfort of your home.
Adding to the extensive catalog, virtual gambling platforms shine ease of access.
Greate post. Keep writing such kind of information on your site.
Im really impressed by it.
Hello there, You’ve done a fantastic job.
I’ll certainly digg it and individually suggest to my friends.
I am sure they will be benefited from this site.
Here is my page – Best Online Casino In Vietnam
Best Online Casino In Vietnam的最新文章:Best Online Casino In Vietnam
ลองไปนั่งดื่มชิลล์ๆ ที่ OMG ONE MORE GLASS SAI1 แล้วคุณจะหลงรักร้านนี้แน่นอน ร้านชิลใกล้ฉัน
Exceptional post however I was wanting to know if you could write a litte more on this topic?
I’d be very thankful if you could elaborate a little bit more.
Kudos!
Stop by my blog post … 369 jili online casino
369 jili online casino的最新文章:369 jili online casino
We are a group of volunteers and starting a new scheme in our community.
Your site provided us with valuable information to
work on. You’ve done a formidable job and our entire community will be grateful to you.
Feel free to visit my website … สล็อตเครดิตฟรีที่ดีที่สุด
สล็อตเครดิตฟรีที่ดีที่สุด的最新文章:สล็อตเครดิตฟรีที่ดีที่สุด
Just shipped my SUV across the country using an agent from Oceanside! Find out more at Oceanside auto shipping
Just moved to Santa Rosa and needed my car shipped Santa Rosa vehicle transport
“Just learned about eco-friendly options from ###ANYKEYWORD# Commercial Cleaning Company Phoenix AZ
ร้านนี้คือที่สุดของความสนุก! OMG ONE MORE GLASS SAI1 ขอบอกเลยว่าต้องไปลอง ร้านอาหารบางแค
The before- Commercial Cleaning Company Phoenix AZ
I loved listening to experiences from home owners who efficaciously navigated intricate conditions for the duration of their paying for activity—it shows resilience can pay off—they’ll discover same inspiring studies by # # a n y K e y w o r d # gold coast buyers agent Savvy Fox Buyers Agent Currumbin AUS
Thankful for services like I-Drive that prioritize safety while allowing us to enjoy life’s pleasures responsibly! private driver for wine tours
Perfect timing with this article as I’m planning an event; thinking of contacting authority in wholesale produce
Digital casinos have modernized the casino gaming world, offering a unique kind of accessibility and range that land-based establishments struggle to rival. Over the past decade, a vast number of enthusiasts around the world have embraced the pleasure of virtual casinos due to its always-open nature, appealing qualities, and continuously increasing catalogs of games.
If you’re a beginner with the world of virtual gambling or seek to discover reputable operators, why not sign up for our active social network? It’s a platform where gamblers share insights, enabling you to maximize your casino activities. Discover the connections and visit us now: https://hk.tiancaisq.com/home.php?mod=space&uid=5186643&do=profile&from=space
One of the main appeals of online casinos is the sheer array of choices provided. Whether you enjoy spinning traditional fruit machine slots, immersing yourself in theme-based modern slot games, or testing your strategy in classic casino games like Blackjack, internet-based gambling sites feature numerous entertainment avenues. Numerous services even include live gaming streams, giving you the chance you to interact with human game hosts and fellow gamblers, all while soaking in the realistic ambiance of a brick-and-mortar establishment from anywhere you want.
Beyond variety, digital casino services are known for accessibility.
Do you have any video of that? I’d want to find out more details.
Also visit my blog post: คาสิโน auto
คาสิโน auto的最新文章:คาสิโน auto
เคยไปที่ OMG OneMoreGlass แล้ว รู้สึกประทับใจในบริการและเครื่องดื่มมาก! ร้านเหล้าสาย1 เปิดใหม่
What’s your needs to-have medicine when touring a good looks salon? Mine has to be a great facial beauty salon chatswood
Great insights on finding the best # # anyKeyWord###! Always read customer testimonials before making your choice Cincinnati car transportation services
Making my garden glow with uplighting has been such a rewarding project, thanks to ideas from custom outdoor lighting Nashville
My family members all the time say that I am wasting my time here at
net, however I know I am getting experience everyday by reading such fastidious content.
My webpage: เว็บพนันแทงบอล คาสิโน
เว็บพนันแทงบอล คาสิโน的最新文章:เว็บพนันแทงบอล คาสิโน
Thanks for the useful post. More like this at seguro de viajes
This is very insightful. Check out https://www.google.com/maps/place/Greenwich+Streets+Real+Estate/@41.03275070351726,-73.624086970194,875m/data=!3m3!1e3!4b1!5s0x89c29848f1ff37d3:0x19a56c6d43809f8f!4m6!3m5!1s0x89c2991105b522ef:0xd94f8009b1d88262!8m2!3d41.0273233!4d-73.6264853!16s%2Fg%2F11tm_8zfnt!5m1!1e3?entry=ttu&g_ep=EgoyMDI1MDEwNy4wIKXMDSoASAFQAw%3D%3D for more
If you need a dependable commercial cleaning company Commercial Cleaning Company Minneapolis MN
The future of marketing in Nashville relies heavily on strong digital strategies like effective SEO—let’s embrace it! seo marketing
Great tips! For more, visit roofing companies dayton ohio
I just booked my move with ### anykeyword ### Tavares Mover’s
สำหรับคนรักการดื่ม ต้องไปลองที่ OMG ONE MORE GLASS SAI1 สักครั้งนะคะ ร้านอาหารบางแค
Looking for recommendations on contractors? Check out Banning Construction Inc banning construction custom home builders
. Thankful learning ways storytelling utilized effectively engaging audiences capturing attention sparking curiosity igniting conversations elevating br Rochester SEO for small businesses
I love how you broke down the PPC process for local businesses in Vancouver WA. It’s so helpful! Visit PPC Marketing Vancouver WA for more resources
I’m impressed by the data you shared regarding PPC performance in Vancouver WA! More stats can be found at PPC Marketing Vancouver WA
The focus on understanding audience demographics before launching a campaign is so important—especially here in diverse Vancouver WA! For further insights, visit PPC Marketing Vancouver WA
Bright horizons await eager hearts open-minded spirits ready embrace whatever comes next fearlessly unafraid invitingly welcoming opportunities await joyfully embracing moments shared experiencing living fully present now appreciating beauty inherent Fleming Island apartment movers
Feel the thrill of 4rabet online gaming with seamless access through 4rabet login . Whether you’re a fan of placing bets on 4rabet or casino games , 4rabet brings it all under one roof. Get the 4rabet application for quick and smooth entry to your most loved options. Visit the 4rabet official website today and dive into the world of 4ra bet excitement . Sign up with 4rabet and elevate your betting journey to the highest peak !
Discover the thrill of the 4rabet platform , your go-to platform for sports betting and online gambling in India. Whether you’re a fan of cricket or other popular sports , the 4rabet official website provides a seamless interface to place your bets and maximize your profits. With the 4rabet app login , you can access your betting profile anytime , anywhere , making sure you never miss out . The 4rabet betting site is created to serve both first-time users and experts , featuring a diverse selection of wagering opportunities and casino games .
Join the 4rabet gaming network now and immerse yourself in a safe , intuitive betting system. Whether you enjoy the 4rabet login on your computer or tablet, the 4rabet betting journey is unmatched . Kick off your betting experience with 4rabet India and upgrade your gaming experience to another level !
Link: http://www.lahoretbassociation.org/2025/01/05/discover-4rabet-official-online-website-for-sports-betting-and-casino-in-india/
The 4rabet platform provides a easy process for sports betting and betting lovers in India. With the 4rabet login process being quick and protected , users can log into their accounts without issues. The mobile login feature provides ease for mobile users , allowing them to enjoy their favorite games . The 4rabet website offers a wide range of betting options , including cricket , and many other games , tailored specifically for Indian players . The betting hub is easy to navigate , making it easy for both new users and experienced players to navigate . By accessing the 4rabet official website , players can take advantage of special bonuses . The 4rabet casino is trusted for its reliability and fast payouts , guaranteeing a satisfying gaming experience . Whether you enjoy gambling on matches or live dealer experiences, our platform has the perfect choice for you.
Internet-based gambling hubs have reshaped the way people experience gambling. Delivering unparalleled convenience, online casinos enable users to access their go-to experiences from anywhere at any time. With thousands of gaming experiences ranging from video slots to live-streamed options and card-based games like Texas Hold’em, these hubs cater to every preference.
Digital casinos have changed the betting industry, delivering an unmatched level of comfort and variety that conventional casinos can’t match. Over time, countless gamblers across the globe have adopted the fun of internet-based gaming as a result of its accessibility, thrilling aspects, and constantly growing collections of titles.
If you’re just starting with the world of internet-based gaming or seek to discover safe services, why not engage with our vibrant online hub? It’s a space where fans discuss experiences, assisting you to enjoy more of your casino activities. Check out the conversation and learn more now: .
One of the most compelling reasons of online gaming options is the sheer diversity of gaming experiences available. Whether you like playing on retro one-armed bandits, trying out narrative-rich visual slot games, or mastering skills in classic casino games like Blackjack, internet-based gambling sites boast infinite options. Numerous services even offer interactive dealer games, letting you to connect with actual dealers and opponents, all while immersing yourself in the authentic atmosphere of a land-based casino in your own space.
I enjoyed this read. For more, visit med spa
Thanks for the great information. More at Renew & Restore Exterior Cleaning, LLC
Nicely detailed. Discover more at https://youtu.be/1pm7-jKd0BA
This was a fantastic read. Check out https://telegra.ph/Brooks–Baez-02-19 for more
Thanks for the insightful write-up. More like this at https://unsplash.com/@joethepressurewashingguy
Amazing work showcased by Banning Construction Inc banning construction bathroom remodeling
My experience with a cosmetic dentist was seamless and the results exceeded my expectations! You can find useful information at emergency dental care valley village
Self garage provides me peace of intellect at some stage in transferring; surprisingly advocate checking out self storage
I found this very interesting. Check out http://www.maizenbrew.com/users/Dumpster-Delivered-Dumpster-Rental-and-Junk-Removal-Florida-US for more
I enjoyed your thoughts on marketing strategies within the wholesale food market! More ideas can be found at experienced food wholesaler