Install Lets Encrypt on Chef ServerHow to change chef nginx default http port 80?Chef server: error “ArgumentError” when adding /etc/chef-server/chef-server.rbChange Chef server settings - port, url, https?How to change chef nginx default http port 80?Disable ssl on Chef-server?How to install chef-server with management console and nginx reverse proxy?Binding Chef-server 12 to specific IP address: Connection refused connecting to https://127.0.0.1/users/, retry 1/5Can't start Chef-serverchange chef server install locationHow to import self-signed certificate generated by chef-manage?How to configure Nginx to serve https only

Am I being scammed by a sugar daddy?

How to remove the empty page that is placed after the ToC, List of figures and List of tables

Harley Davidson clattering noise from engine, backfire and failure to start

Is it good practice to create tables dynamically?

French citizen, did I need a visa in 2004 and 2006 when I visited as a child?

Why didn't all the iron and heavier elements find their way to the center of the accretion disc in the early solar system?

The best in flight meal option for those suffering from reflux

Is fission/fusion to iron the most efficient way to convert mass to energy?

What are some of the expected properties of metallic glasses and some steps to create them? (semi-ELI5)

Tiffeneau–Demjanov rearrangement products

Are athlete's college degrees discounted by employers and graduate school admissions?

What is Gilligan's full name?

What do you call the action of "describing events as they happen" like sports anchors do?

A life of PhD: is it feasible?

Is it possible to have battery technology that can't be duplicated?

If absolute velocity does not exist, how can we say a rocket accelerates in empty space?

How to represent jealousy in a cute way?

David slept with Bathsheba because she was pure?? What does that mean?

Undocumented incompatibility between changes and siunitx?

How can religions without a hell discourage evil-doing?

Is tuition reimbursement a good idea if you have to stay with the job

How to deal with an excess of white-space in a CRM UI?

Why did the Death Eaters wait to reopen the Chamber of Secrets?

Can a non-diagonal 2x2 matrix with just one eigenvalue be diagonalizable?



Install Lets Encrypt on Chef Server


How to change chef nginx default http port 80?Chef server: error “ArgumentError” when adding /etc/chef-server/chef-server.rbChange Chef server settings - port, url, https?How to change chef nginx default http port 80?Disable ssl on Chef-server?How to install chef-server with management console and nginx reverse proxy?Binding Chef-server 12 to specific IP address: Connection refused connecting to https://127.0.0.1/users/, retry 1/5Can't start Chef-serverchange chef server install locationHow to import self-signed certificate generated by chef-manage?How to configure Nginx to serve https only






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








0















I want to install a Letsencrypt certificate on my Chef server. I followed this guide:



git clone https://github.com/letsencrypt/letsencrypt
cd letsencrypt
./letsencrypt-auto
./letsencrypt-auto certonly --standalone --email your-email@email-service.com -d chefserver.DOMAIN.com


But this leads to Problem binding to port 80: Could not bind to IPv4 or IPv6., so I had to change the configuration that my server allows traffic on port 80. Thanks to this answer I created /etc/opscode/chef-server.rb:



nginx['non_ssl_port'] = 80
nginx['ssl_port'] = 443
nginx['enable_non_ssl'] = true
nginx['x_forwarded_proto'] = 'http'
nginx['url'] = 'http://chef.mydomain.com'


After running chef-server-ctl reconfigure I found out that /etc/opscode/chef-server-running.json has been changed.



But the server still redirects my http-traffic to https, so a Letsencrypt certificate still can't be generated.



How can I get a Letsencrypt certificate for my Chef Server?










share|improve this question






























    0















    I want to install a Letsencrypt certificate on my Chef server. I followed this guide:



    git clone https://github.com/letsencrypt/letsencrypt
    cd letsencrypt
    ./letsencrypt-auto
    ./letsencrypt-auto certonly --standalone --email your-email@email-service.com -d chefserver.DOMAIN.com


    But this leads to Problem binding to port 80: Could not bind to IPv4 or IPv6., so I had to change the configuration that my server allows traffic on port 80. Thanks to this answer I created /etc/opscode/chef-server.rb:



    nginx['non_ssl_port'] = 80
    nginx['ssl_port'] = 443
    nginx['enable_non_ssl'] = true
    nginx['x_forwarded_proto'] = 'http'
    nginx['url'] = 'http://chef.mydomain.com'


    After running chef-server-ctl reconfigure I found out that /etc/opscode/chef-server-running.json has been changed.



    But the server still redirects my http-traffic to https, so a Letsencrypt certificate still can't be generated.



    How can I get a Letsencrypt certificate for my Chef Server?










    share|improve this question


























      0












      0








      0








      I want to install a Letsencrypt certificate on my Chef server. I followed this guide:



      git clone https://github.com/letsencrypt/letsencrypt
      cd letsencrypt
      ./letsencrypt-auto
      ./letsencrypt-auto certonly --standalone --email your-email@email-service.com -d chefserver.DOMAIN.com


      But this leads to Problem binding to port 80: Could not bind to IPv4 or IPv6., so I had to change the configuration that my server allows traffic on port 80. Thanks to this answer I created /etc/opscode/chef-server.rb:



      nginx['non_ssl_port'] = 80
      nginx['ssl_port'] = 443
      nginx['enable_non_ssl'] = true
      nginx['x_forwarded_proto'] = 'http'
      nginx['url'] = 'http://chef.mydomain.com'


      After running chef-server-ctl reconfigure I found out that /etc/opscode/chef-server-running.json has been changed.



      But the server still redirects my http-traffic to https, so a Letsencrypt certificate still can't be generated.



      How can I get a Letsencrypt certificate for my Chef Server?










      share|improve this question
















      I want to install a Letsencrypt certificate on my Chef server. I followed this guide:



      git clone https://github.com/letsencrypt/letsencrypt
      cd letsencrypt
      ./letsencrypt-auto
      ./letsencrypt-auto certonly --standalone --email your-email@email-service.com -d chefserver.DOMAIN.com


      But this leads to Problem binding to port 80: Could not bind to IPv4 or IPv6., so I had to change the configuration that my server allows traffic on port 80. Thanks to this answer I created /etc/opscode/chef-server.rb:



      nginx['non_ssl_port'] = 80
      nginx['ssl_port'] = 443
      nginx['enable_non_ssl'] = true
      nginx['x_forwarded_proto'] = 'http'
      nginx['url'] = 'http://chef.mydomain.com'


      After running chef-server-ctl reconfigure I found out that /etc/opscode/chef-server-running.json has been changed.



      But the server still redirects my http-traffic to https, so a Letsencrypt certificate still can't be generated.



      How can I get a Letsencrypt certificate for my Chef Server?







      nginx chef lets-encrypt






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 14 at 15:05







      Stephan Vierkant

















      asked Mar 14 at 9:22









      Stephan VierkantStephan Vierkant

      4,49343269




      4,49343269






















          1 Answer
          1






          active

          oldest

          votes


















          1














          The --standalone flag you tried initially spawns certbot's own server on port 80. This failed because you had something else listening on port 80. If that is your chef server, one option is either disable it listening on port 80 (maybe stop the server temporarily) or move its non_ssl_port to some other port, i.e. 8000.



          If it's not the chef server listening on port 80, you should investigate what it is (i.e., it could be an instance of nginx or apache server).



          After you find out and release port 80, then your initial set of commands should work and produce the certificate.






          share|improve this answer


















          • 1





            I killed all chef related processes and restarted letsencrypt. A dirty workaround, but the best I could get.

            – Stephan Vierkant
            Mar 25 at 17:03











          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55158862%2finstall-lets-encrypt-on-chef-server%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          1














          The --standalone flag you tried initially spawns certbot's own server on port 80. This failed because you had something else listening on port 80. If that is your chef server, one option is either disable it listening on port 80 (maybe stop the server temporarily) or move its non_ssl_port to some other port, i.e. 8000.



          If it's not the chef server listening on port 80, you should investigate what it is (i.e., it could be an instance of nginx or apache server).



          After you find out and release port 80, then your initial set of commands should work and produce the certificate.






          share|improve this answer


















          • 1





            I killed all chef related processes and restarted letsencrypt. A dirty workaround, but the best I could get.

            – Stephan Vierkant
            Mar 25 at 17:03















          1














          The --standalone flag you tried initially spawns certbot's own server on port 80. This failed because you had something else listening on port 80. If that is your chef server, one option is either disable it listening on port 80 (maybe stop the server temporarily) or move its non_ssl_port to some other port, i.e. 8000.



          If it's not the chef server listening on port 80, you should investigate what it is (i.e., it could be an instance of nginx or apache server).



          After you find out and release port 80, then your initial set of commands should work and produce the certificate.






          share|improve this answer


















          • 1





            I killed all chef related processes and restarted letsencrypt. A dirty workaround, but the best I could get.

            – Stephan Vierkant
            Mar 25 at 17:03













          1












          1








          1







          The --standalone flag you tried initially spawns certbot's own server on port 80. This failed because you had something else listening on port 80. If that is your chef server, one option is either disable it listening on port 80 (maybe stop the server temporarily) or move its non_ssl_port to some other port, i.e. 8000.



          If it's not the chef server listening on port 80, you should investigate what it is (i.e., it could be an instance of nginx or apache server).



          After you find out and release port 80, then your initial set of commands should work and produce the certificate.






          share|improve this answer













          The --standalone flag you tried initially spawns certbot's own server on port 80. This failed because you had something else listening on port 80. If that is your chef server, one option is either disable it listening on port 80 (maybe stop the server temporarily) or move its non_ssl_port to some other port, i.e. 8000.



          If it's not the chef server listening on port 80, you should investigate what it is (i.e., it could be an instance of nginx or apache server).



          After you find out and release port 80, then your initial set of commands should work and produce the certificate.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Mar 24 at 23:58









          taleodortaleodor

          48049




          48049







          • 1





            I killed all chef related processes and restarted letsencrypt. A dirty workaround, but the best I could get.

            – Stephan Vierkant
            Mar 25 at 17:03












          • 1





            I killed all chef related processes and restarted letsencrypt. A dirty workaround, but the best I could get.

            – Stephan Vierkant
            Mar 25 at 17:03







          1




          1





          I killed all chef related processes and restarted letsencrypt. A dirty workaround, but the best I could get.

          – Stephan Vierkant
          Mar 25 at 17:03





          I killed all chef related processes and restarted letsencrypt. A dirty workaround, but the best I could get.

          – Stephan Vierkant
          Mar 25 at 17:03



















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55158862%2finstall-lets-encrypt-on-chef-server%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

          Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

          Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript