[转]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添加相应自动续期脚本。

分享到:

130 条评论

昵称
  1. Aw, this was a very good post. Taking a few minutes and actual effort to make a good
    article… but what can I say… I put things off a lot and don’t manage to
    get nearly anything done.

  2. First off I would like to say wonderful blog! I had a quick question in which I’d like to ask if you do not mind.

    I was interested to know how you center yourself and clear your mind before writing.
    I’ve had a tough time clearing my thoughts in getting my ideas
    out there. I do take pleasure in writing however it just seems like the
    first 10 to 15 minutes are generally wasted simply just trying to figure out how to
    begin. Any recommendations or hints? Thank you!

  3. Hey there excellent blog! Does running a blog like this require a large amount of work?
    I have no expertise in coding however I was hoping to
    start my own blog soon. Anyway, should you have any ideas or techniques for new blog owners please share.
    I understand this is off subject nevertheless I just needed to ask.

    Appreciate it!

  4. Someone necessarily lend a hand to make seriously
    posts I would state. That is the very first time I frequented your web page
    and thus far? I surprised with the research you made to create this particular put
    up amazing. Great process!

  5. This information is priceless. Where can I find out more?

  6. Amazing blog! Is your theme custom made or did you download it
    from somewhere? A design like yours with a few simple adjustements would really make my blog
    stand out. Please let me know where you got your theme.
    Cheers

  7. Very good information. Lucky me I ran across your site by
    chance (stumbleupon). I’ve book-marked it for later!

  8. Remarkable issues here. I’m very happy to look your article.
    Thanks so much and I am looking ahead to contact you.
    Will you please drop me a e-mail?

  9. Good post. I certainly appreciate this website. Stick with it!

  10. I think this is one of the most important information for
    me. And i’m glad reading your article. But wanna remark on few general things, The
    website style is ideal, the articles is really excellent
    : D. Good job, cheers

  11. This is really interesting, You’re a very skilled blogger.
    I’ve joined your rss feed and look forward to seeking more
    of your great post. Also, I have shared your site in my social networks!

  12. Simply want to say your article is as amazing. The clearness in your post is simply excellent and i can assume you’re an expert on this subject.

    Well with your permission allow me to grab your feed to keep updated with forthcoming post.
    Thanks a million and please keep up the gratifying work.

  13. fantastic post, very informative. I ponder why the other specialists of this sector do not notice
    this. You should continue your writing. I am sure, you have a huge readers’ base already!

  14. I’m really enjoying the design and layout of your website.
    It’s a very easy on the eyes which makes it much more pleasant for me to come here and visit more often. Did you hire
    out a designer to create your theme? Great work!

  15. Wow! At last I got a website from where I be capable of genuinely obtain valuable facts
    regarding my study and knowledge.

  16. quest bars

    What i don’t understood is in fact how you are now not actually a lot more well-liked than you might be now.

    You’re very intelligent. You realize therefore significantly in relation to
    this topic, produced me in my view believe it from so many various
    angles. Its like men and women are not fascinated except it
    is something to do with Girl gaga! Your personal stuffs great.
    At all times maintain it up!

  17. Hello, yup this article is really fastidious and I have
    learned lot of things from it on the topic of blogging.
    thanks.

  18. tinyurl.com

    Today, while I was at work, my sister stole my
    iphone and tested to see if it can survive a forty foot drop, just so she can be a youtube sensation. My iPad is now destroyed and she has 83 views.
    I know this is entirely off topic but I had to
    share it with someone!

  19. tinyurl.com

    Excellent goods from you, man. I’ve understand your stuff previous to and
    you’re just extremely excellent. I really like what
    you have acquired here, really like what you are saying and the way in which you say it.
    You make it entertaining and you still care for to
    keep it wise. I can’t wait to read far more from you.
    This is really a terrific website.

  20. Hello! I know this is kinda off topic nevertheless I’d figured I’d ask.
    Would you be interested in trading links or
    maybe guest writing a blog article or vice-versa? My site discusses
    a lot of the same topics as yours and I feel we could greatly benefit
    from each other. If you’re interested feel free to shoot me an e-mail.
    I look forward to hearing from you! Excellent blog by the way!

  21. Spot on with this write-up, I seriously think this website needs far more attention. I’ll probably be returning to read more, thanks for the advice!

  22. Wow, that’s what I was looking for, what a stuff!
    existing here at this blog, thanks admin of this website.

  23. I am actually pleased to glance at this website posts which carries plenty of useful data,
    thanks for providing such statistics.

  24. I am genuinely grateful to the holder of this site who has shared this enormous article at here.

  25. I’ll right away clutch your rss as I can not in finding your
    e-mail subscription link or e-newsletter service. Do you have any?

    Kindly allow me recognize so that I may just subscribe.
    Thanks.

  26. Excellent site you’ve got here.. It’s difficult to find good
    quality writing like yours these days. I seriously appreciate individuals like you!
    Take care!!

  27. Highly descriptive article, I enjoyed that bit. Will there be a part 2?

  28. What i don’t realize is actually how you’re now not actually much more neatly-preferred
    than you may be now. You are so intelligent.
    You realize thus considerably in relation to this
    matter, produced me in my view believe it from a
    lot of varied angles. Its like men and women don’t seem to be involved
    until it’s something to accomplish with Lady gaga!
    Your individual stuffs great. At all times take care of it
    up!

  29. tinyurl.com

    Very quickly this site will be famous amid all blog people, due to it’s good posts

  30. http://tinyurl.com

    Please let me know if you’re looking for a author for your blog.
    You have some really great posts and I think I would be a good
    asset. If you ever want to take some of the load off, I’d absolutely love to write some content for your
    blog in exchange for a link back to mine. Please shoot me an e-mail if interested.
    Cheers!