[转]OneinStack自动部署Let’s Encrypt证书

Let’s Encrypt是一个由电子前哨基金会、Mozilla基金会、Akamai、密歇根大学、思科联合发起的一个项目。它旨在为站长提供一个免费的、完全自 动化的证书申请过程,从而让整个互联网都能享受到HTTPS加密。Let’s Encrypt的证书申请过程非常简单、安全、快速、自动化并且免费。Let’s Encrypt是一个中间CA,它的CA证书由IdenTrust签发。IdenTrust是一个Root CA,受到所有主流浏览器的信任。从2015年10月后,Let’s Encrypt的中间CA证书被chrome、Firefox、Microsoft Edge、Safari和Opera所信任。

最近官方做了调整,简化了获取证书的难度,并将项目名改为了certbot,以前叫letsencrypt。certbot可以自动化的申请,安装和更新证书。

OneinStack已经内置Let’s Encrypt证书,vhost.sh绑定域名时自动申请、绑定、自动续期(默认90天)一步到位,教程如下:

安装

wget http://mirrors.linuxeye.com/oneinstack.tar.gz
tar xzf oneinstack.tar.gz
cd oneinstack
./addons.sh

如下图:

出现绿色Let’s Encrypt client install successfully!即表示certbot安装成功,如下图:

使用证书

vhost.sh绑定域名ssl选择y,Let’s Encrypt选择y

./vhost.sh

注:绑定域名后会自动在crontab添加相应自动续期脚本。

分享到:

237 条评论

昵称
  1. Greetings from Idaho! I’m bored to death at work so
    I decided to browse your website on my iphone during lunch break.
    I really like the info you provide here and can’t wait to take
    a look when I get home. I’m amazed at how fast your blog loaded on my mobile ..
    I’m not even using WIFI, just 3G .. Anyways, superb blog!

  2. I’m no longer certain where you’re getting your information, but great topic.
    I needs to spend some time finding out much more or figuring out more.
    Thanks for fantastic info I used to be looking for this info
    for my mission.

  3. If you desire to improve your knowledge simply keep visiting
    this web site and be updated with the hottest news posted here.

  4. Way cool! Some very valid points! I appreciate you
    penning this write-up plus the rest of the website is extremely good.

  5. That is a really good tip particularly to those new to the blogosphere.
    Brief but very accurate information… Thank you for
    sharing this one. A must read post!

  6. I’m not sure exactly why but this weblog is loading extremely slow for me.
    Is anyone else having this issue or is it a issue on my end?
    I’ll check back later on and see if the problem still exists.

  7. When I initially commented I clicked the “Notify me when new comments are added”
    checkbox and now each time a comment is added I get four emails
    with the same comment. Is there any way you can remove
    me from that service? Bless you!

  8. Heya i am for the first time here. I came across this board and I in finding It really helpful & it helped me out a lot.
    I hope to give one thing again and help others such as you aided me.

  9. I think the admin of this site is truly working hard in support of his web page, because here every material
    is quality based stuff.

  10. Quality articles or reviews is the key to attract the viewers to pay a quick visit the website, that’s
    what this web site is providing.

  11. Hello there, I found your website via Google even as searching for a similar
    topic, your website came up, it looks great.

    I’ve bookmarked it in my google bookmarks.
    Hello there, simply changed into alert to your weblog through Google, and found that it’s truly
    informative. I’m gonna watch out for brussels. I will be
    grateful for those who continue this in future.
    A lot of people will be benefited from your writing.
    Cheers!

  12. Thanks for a marvelous posting! I certainly enjoyed reading it, you are a great author.

    I will make sure to bookmark your blog and will often come back at some point.
    I want to encourage you to ultimately continue your great job, have
    a nice day!

  13. Etias Visa

    It’s really very complicated in this busy life to listen news on Television,
    therefore I simply use the web for that reason,
    and get the most recent information.

  14. We’re a group of volunteers and starting a new scheme in our community.
    Your website provided us with valuable information to
    work on. You have done an impressive job and our whole community will be thankful to
    you.

  15. I was wondering if you ever considered changing the structure of your website?
    Its very well written; I love what youve got to say. But maybe
    you could a little more in the way of content so people could connect with it
    better. Youve got an awful lot of text for only having 1 or 2 pictures.
    Maybe you could space it out better?

  16. I think this is one of the most important information for me.

    And i am glad reading your article. But want to remark on some general things, The site style is great, the articles is
    really nice : D. Good job, cheers

  17. hello there and thank you for your information – I’ve certainly picked up something new from right here.
    I did however expertise several technical points using
    this web site, as I experienced to reload the website lots of times previous to I could get it to load properly.
    I had been wondering if your web hosting is OK?
    Not that I am complaining, but slow loading instances times will very
    frequently affect your placement in google and can damage your high-quality
    score if ads and marketing with Adwords. Well I am adding this RSS
    to my email and could look out for a lot more of your respective intriguing content.
    Ensure that you update this again very soon.

  18. Helpful information. Lucky me I found your website unintentionally, and I’m shocked why this twist of fate did not happened in advance!
    I bookmarked it.

  19. minecraft games

    Howdy are using WordPress for your blog platform? I’m new to
    the blog world but I’m trying to get started and create
    my own. Do you need any coding knowledge to make your own blog?
    Any help would be greatly appreciated!

  20. minecraft games

    Wonderful article! This is the type of info that are meant to be shared across the web.
    Shame on the seek engines for no longer positioning this submit higher!
    Come on over and discuss with my website . Thank you =)

  21. minecraft games

    This excellent website really has all the information I needed about this subject and didn’t know who to ask.

  22. minecraft games

    Quality articles is the important to invite the viewers to visit the web page, that’s what
    this website is providing.

  23. minecraft games

    Great post but I was wondering if you could write a litte more on this subject?
    I’d be very grateful if you could elaborate a little bit further.
    Thank you!

  24. minecraft games

    This piece of writing presents clear idea for the new visitors of blogging, that in fact how to do running a blog.

  25. minecraft games

    Hi Dear, are you truly visiting this site on a regular basis, if so then you will without doubt get nice experience.

  26. Hi friends, how is the whole thing, and what you wish for to
    say about this paragraph, in my view its truly
    awesome designed for me.

  27. minecraft games

    Every weekend i used to pay a quick visit this website, because i wish
    for enjoyment, as this this web site conations genuinely pleasant funny information too.