Results 1 to 10 of 10

Thread: 200+ domains Let's encrypt bash script or plugin?

  1. #1
    Join Date
    Aug 2012
    Posts
    25

    Question 200+ domains Let's encrypt bash script or plugin?

    Ok i'm trying to fix SSL let's encrypt for hundreds of domains. But a little stuck.

    Tried: ./letsencrypt.sh mydomainhere.com
    Result: Certificate for mydomainhere.com has been created successfully!
    But it's not working?

    ----

    Let's encrypt is working fine under SSL Certificates if i create one there. But this i no task todo for 300+ sites.

    ----

    Option 2:
    Maybe there is a plugin for this?

    Hope someone has a good solution!

  2. #2
    Join Date
    Aug 2006
    Location
    LT, EU
    Posts
    7,177
    Martynas Bendorius
    MB Martynas IT. Professional server management company. Official DirectAdmin, CloudLinux, LiteSpeed and Comodo partners.

  3. #3
    Join Date
    Aug 2012
    Posts
    25
    Yes i'm using that.. why is it not working? See my opening post

  4. #4
    Join Date
    Aug 2006
    Location
    LT, EU
    Posts
    7,177
    I do not see anything regarding autoletsencrypt in your initial post. Did you create another thread on it?
    Martynas Bendorius
    MB Martynas IT. Professional server management company. Official DirectAdmin, CloudLinux, LiteSpeed and Comodo partners.

  5. #5
    Join Date
    Aug 2012
    Posts
    25
    Quote Originally Posted by smtalk View Post
    I do not see anything regarding autoletsencrypt in your initial post. Did you create another thread on it?
    Wel only not the auto part, i want it on specific domains (but all from one user). Not on the whole server.

    Any idea for that?

  6. #6
    Join Date
    Aug 2006
    Location
    LT, EU
    Posts
    7,177
    You may just check the content of http://files.directadmin.com/service...letsencrypt.sh then to see how LE certificate gets enabled for the domains. "letsencrypt.sh" used to generate the certificate, but it does not enable SSL on for the domain, nor it does change any other SSL related settings.
    Martynas Bendorius
    MB Martynas IT. Professional server management company. Official DirectAdmin, CloudLinux, LiteSpeed and Comodo partners.

  7. #7
    Join Date
    Aug 2012
    Posts
    25
    Quote Originally Posted by smtalk View Post
    You may just check the content of http://files.directadmin.com/service...letsencrypt.sh then to see how LE certificate gets enabled for the domains. "letsencrypt.sh" used to generate the certificate, but it does not enable SSL on for the domain, nor it does change any other SSL related settings.
    Thanks for your help. So its old and doesn't work anymore or is not the preferred way?

    Nothing available to do a simple request + enable ssl?

  8. #8
    Join Date
    Aug 2006
    Location
    LT, EU
    Posts
    7,177
    letsencrypt.sh was never intended to change your SSL settings. It's used to generate SSL cert only. Regarding request + enable ssl - that's what autoletsencypt.sh does, and that's why I provided it as an example of how to do it Please let us know if you still have questions on that. Thank you!
    Martynas Bendorius
    MB Martynas IT. Professional server management company. Official DirectAdmin, CloudLinux, LiteSpeed and Comodo partners.

  9. #9
    Join Date
    Aug 2012
    Posts
    25
    Quote Originally Posted by smtalk View Post
    letsencrypt.sh was never intended to change your SSL settings. It's used to generate SSL cert only. Regarding request + enable ssl - that's what autoletsencypt.sh does, and that's why I provided it as an example of how to do it Please let us know if you still have questions on that. Thank you!
    Its not working.. because i'm reading its only for the complete server?

    That's why i'm still at the first question: How to do it in bulk, but NOT every domain on the server?

  10. #10
    Join Date
    Apr 2005
    Location
    GMT +7.00
    Posts
    12,380
    Hello,

    At least you could try it.....

    1. Download http://files.directadmin.com/service...letsencrypt.sh to /root/

    2. Change

    Code:
    for u in `ls /usr/local/directadmin/data/users`; do


    to

    Code:
    for u in userbob; do


    in autoletsencrypt.sh where userbob should be replaced with your own username for which you want to create certs..

    3. run it

    Code:
    sh ./autoletsencrypt.sh

    with 300+ sites you might:

    - hit a limit on requests/domains
    - run into an issue with validating domain, when ~90 domains passed validation and it fails with a next domain.... guess what happens then? You will need to start again... and hit a limit...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •