Inedo Community Forums Forums
    • Recent
    • Tags
    • Popular
    • Login

    Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.

    If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!

    HTTPS not working when setup within ProGet web interface

    Scheduled Pinned Locked Moved Support
    7 Posts 2 Posters 25 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • steviecoasterS Offline
      steviecoaster
      last edited by

      Hey all,

      Following https://docs.inedo.com/docs/installation/installing-on-iis/installation-windows-https-support to setup my instance to use SSL and it just....doesn't work.

      I'm using a Let's Encrypt certificate installed in the LocalMachine\My (Personal) store. This certificate is valid, and in use by other working services on this server.

      I don't see any issues within the web interface of proget:

      97347cbd-6792-440c-a1c8-5e3a5a884509-image.png

      Despite this, it seems I cannot reach the instance via https:

      fa61ee19-9019-490c-a855-d27af185f5a9-image.png

      There is something in the logs though. Looks like the proget service running as Network Service doesn't have permission to the private key of my cert:

      A fatal error occurred when attempting to access the TLS server credential private key. The error code returned from the cryptographic module is 0x8009030D. The internal error state is 10001.
       The SSPI client process is ProGet.Service (PID: 8016).
      

      bc4148b6-3ed3-48d2-892e-a9c5b5f9c954-image.png

      I'm going to attempt to set it up with one of the other methods and see if I get it working that way, but any guidance on what seems the "easiest" way, would be helpful :)

      steviecoasterS 1 Reply Last reply Reply Quote 0
      • steviecoasterS Offline
        steviecoaster @steviecoaster
        last edited by

        Oh, it would be helpful of me to tell you that I'm running ProGet 2024.11 (Build 10)

        1 Reply Last reply Reply Quote 0
        • steviecoasterS Offline
          steviecoaster
          last edited by

          I found some time to dig into this again this morning. I've switched to attempting to use my PFX file directly. It is still not functioning over SSL but the error in the browser has changed! I guess that's progress :)

          2733abae-738c-4043-ae49-86e469d6490f-image.png

          For completeness here is what I've got in the settings:

          d98694c3-8632-4daf-b3c2-0ac8badb0fb3-image.png

          498590e4-7453-42bc-960a-33f8bbcdd054-image.png

          It looks like some new info in the Event Logs has appeared, but without a debugger is not very useful to me:

          e0112508-4453-4833-a0f3-3aa088c12dee-image.png

          0ff147fa-59ba-466e-a21a-56fa72225484-image.png

          Again, happy to provide any further info you may need.

          1 Reply Last reply Reply Quote 0
          • steviecoasterS Offline
            steviecoaster
            last edited by steviecoaster

            HAZZAH! I got it!

            39fcb919-4b63-4ace-a9ea-69ed9640642b-image.png

            The problem was in C:\ProgramData\Inedo\SharedConfig\ProGet.config

            CertFile=""C:\proget_cert\cert.pfx""
            

            Should be:

            CertFile="C:\proget_cert\cert.pfx"
            

            Pretty sure it's because I used "Copy as Path" and used the resulting string verbatim, which url ended my string, which wrote literally to the config file. Chaulk this one up to a Friday, but for folks landing here later with maybe the same thing: Don't put the path to your cert file in quotes.

            dean-houstonD 1 Reply Last reply Reply Quote 0
            • dean-houstonD Offline
              dean-houston inedo-engineer @steviecoaster
              last edited by

              @steviecoaster glad you were able to figure it out :)

              Easy typo and we should consider a validator on that "Update SSL Certificate" page as well to save a headache like this!

              1 Reply Last reply Reply Quote 0
              • steviecoasterS Offline
                steviecoaster
                last edited by

                I'm not sure the rules on posting links to gists, so if this breaks one, delete it. However, once I got my feet under me with setting ups HTTPS I went ahead and wrote some code so I can automate it. It assumes a few things, and could be improved but for my use case it is flexible where it needs to be. Enjoy!

                https://gist.github.com/steviecoaster/0a2c0d4b09988dedf8e1df1844ec6b8a

                dean-houstonD 1 Reply Last reply Reply Quote 0
                • dean-houstonD Offline
                  dean-houston inedo-engineer @steviecoaster
                  last edited by

                  @steviecoaster great, thanks for sharing!

                  I added this to our documentation (https://github.com/Inedo/inedo-docs/pull/253), but apparently I don't have ability to merge PRs in that repo so it'll go live sometime later I'm sure

                  1 Reply Last reply Reply Quote 0

                  Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                  Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                  With your input, this post could be even better 💗

                  Register Login
                  • 1 / 1
                  • First post
                    Last post
                  Inedo Website Home • Support Home • Code of Conduct • Forums Guide • Documentation