Navigation

    Inedo Community Forums

    Forums

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    1. Home
    2. steviecoaster
    3. Posts
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    Posts made by steviecoaster

    • RE: HTTPS not working when setup within ProGet web interface

      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.

      posted in Support
      steviecoaster
      steviecoaster
    • RE: HTTPS not working when setup within ProGet web interface

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

      posted in Support
      steviecoaster
      steviecoaster
    • HTTPS not working when setup within ProGet web interface

      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 :)

      posted in Support
      steviecoaster
      steviecoaster
    • RE: ProGet OData V2 API

      If you're using Chocolatey at a version lower than 2.0.0 then there was only NuGet v2 support. Since 2.0.0 we've added support for NuGet v3. We also send chocolatey cli in the headers of the request, so you would be able to monitor the traffic and determin which traffic is originating from that tool.

      But as others mentioned, you wouldn't be able to determine much from the ProGet side.

      posted in Support
      steviecoaster
      steviecoaster
    • RE: Silent installation of ProGet

      Hi, me again. So, I'm a bit "stuck", and I'm sure it's silly but I can't find a good answer. I've got a Chocolatey Package that is downloading the latest offline ProGet installer, extracting it and attempting to install it silently.

      I've had to do a bit of "magic" as the offline installer appears to not include hub.exe, so I've monkey-patched that in and I'm getting the following when actually invoking an install:

      A fatal error was encountered. The library 'hostpolicy.dll' required to execute the application was not found in 'C:\Program Files\dotnet\'.
      Failed to run as a self-contained app.
        - The application was run as a self-contained app because 'C:\ProgramData\chocolatey\lib\proget\tools\InedoTemp\hub.runtimeconfig.json' did not specify a framework.
        - If this should be a framework-dependent app, specify the appropriate framework in 'C:\ProgramData\chocolatey\lib\proget\tools\InedoTemp\hub.runtimeconfig.json'.
      ERROR:
      Running ['C:\ProgramData\chocolatey\lib\proget\tools\InedoTemp\hub.exe' install Proget:2024.9.0 --ConnectionString='Data Source=localhost\SQLEXPRESS; Integrated Security=True;' --TargetDirectory='C:\Program Files\ProGet' --UseIIS=true UseIntegratedWebServer=false] was not successful.
       Exit code was '-2147450749' See log for possible error messages..
      The install of proget was NOT successful.
      Error while running 'C:\ProgramData\chocolatey\lib\proget\tools\chocolateyInstall.ps1'.
       See log for details.
      

      For completeness here is the chocolateyInstall.ps1 file I'm using. I appreciate there's some helper functions from Choco and one I wrote for getting the latest installer bits, but should be self-explanatory:

      $ErrorActionPreference = 'Stop'
      $toolsDir = Split-Path -Parent $MyInvocation.MyCommand.Definition
      $helpers = Join-Path $toolsDir -ChildPath 'helpers.ps1'
      $unzipPath = New-Item (Join-Path $toolsDir -ChildPath 'InedoTemp') -ItemType Directory
      $hub = Join-Path $toolsDir -ChildPath 'hub.zip'
      
      $pp = Get-PackageParameters
      
      #Load helpers
      . $helpers
      
      # Download Offline Installer
      $ProGet = Get-ProGetInstaller
      $ProGetInstaller = Join-Path $toolsDir -ChildPath (Split-Path -Leaf $ProGet.Downloads)
      
      $webFileArgs = @{
          Packagename  = $env:ChocolateyPackageName
          FileFullPath = $ProGetInstaller
          Url          = $ProGet.Downloads
          Checksum     = '03CD312905CF735DE36B303FF28C63880B1B7AFD4A458D69280EAB88F546BD29'
          checksumType = 'SHA256'
      }
      
      Get-ChocolateyWebFile @webFileArgs
      
      # Extract Offline Installer
      $unzipArgs = @{
          Packagename  = $env:ChocolateyPackageName
          FileFullPath = $ProGetInstaller
          Destination  = $unzipPath
      }
      
      Get-ChocolateyUnzip @unzipArgs
      
      #Copy Hub.exe to extracted directory
      $unzipArgs = @{
          Packagename  = $env:ChocolateyPackageName
          FileFullPath = $hub
          Destination  = $unzipPath
      }
      
      Get-ChocolateyUnzip @unzipArgs
      
      #Install the sumbitch
      
      #Set the connectionString
      $ConnectionString = if ($pp['ConnectionString']) {
          $pp['ConnectionString']
      }
      else {
          'Data Source=localhost\SQLEXPRESS; Integrated Security=True;'
      }
      
      #Set the TargetDir
      $ProGetDestination = if ($pp['InstallDir']) {
          $pp['InstallDir']
      }
      else {
          if (-not (Test-Path (Join-path $env:ProgramFiles -ChildPath 'ProGet'))) {
              $null = New-Item (Join-path $env:ProgramFiles -ChildPath 'ProGet') -ItemType Directory 
          } else {
              Join-Path $env:ProgramFiles -ChildPath 'ProGet'
          }
      }
      
      $hubExe = Join-Path $unzipPath -ChildPath 'hub.exe'
      
      $installArgs = @{
          Statements     = @('install', "Proget:$($env:ChocolateyPackageVersion)", "--ConnectionString='$ConnectionString'", "--TargetDirectory='$ProgetDestination'",'--UseIIS=true','UseIntegratedWebServer=false')
          ExeToRun       = $hubExe
          validExitCodes = @(0)
      }
      
      Start-ChocolateyProcessAsAdmin @installArgs
      
      #Secure with SSL?
      

      Any pointers here would be superbly appreciated.

      posted in Support
      steviecoaster
      steviecoaster
    • RE: Use pgutil to create a feed

      Ha, It was a goofy issue. I wasn't paying attention and had the Body defined as a string in my proxy function. 😂

      This is working nicely now!
      a8371438-7b61-4e65-b44f-002635d12fb5-image.png

      posted in Support
      steviecoaster
      steviecoaster
    • RE: Silent installation of ProGet

      And that is the part that wasn't clicking for me. I missed it was a self-extracting .exe Awesome, I can use Install-ChocolateyZipPackage as a base, and then go from there. Perfect!

      posted in Support
      steviecoaster
      steviecoaster
    • Silent installation of ProGet

      I'm attempting to generate a Chocolatey package, which I can host on the Chocolatey Community Repository to install ProGet. I've found the OfflineInstaller downloads at https://my.inedo.com/downloads/installers?Product=ProGet and the documentation for silent installation at https://docs.inedo.com/docs/installation-windows-silent however this is all very confusing/conflicting with https://docs.inedo.com/docs/desktophub-offline, specifically this:
      a411d54a-c21d-4218-bc44-a27b724be75f-image.png

      I can't find the clear path to be able to silently control the installation of ProGet through the use of Chocolatey. I am just....thoroughly confused at the minute :D

      posted in Support
      steviecoaster
      steviecoaster
    • Use pgutil to create a feed

      The documentation at https://docs.inedo.com/docs/proget-api-feeds-create suggests I can use pgutil feeds create to create a new feed, however it seems the latest release available on Github does not have that option available, and using the API with PowerShell throws a type error as the endpoint is expecting a very specific type of payload, and a PowerShell hashtable (which is the most common way to interact with a JSON body-based api) doesn't work.

      Is there a specific version of pgutil.exe I should be using to create new feeds?

      9417696e-9d4b-4f33-aba4-cd87f5e76956-image.png

      cafb6b50-ed71-4918-af19-03ebafe26c99-image.png

      posted in Support
      steviecoaster
      steviecoaster
    • 1
    • 2
    • 2 / 2