Skip to content

Add a Local Nuget Server That uses Self Signed certificate#117

Merged
Nigusu-Allehu merged 1 commit intomainfrom
dev-nyenework-add-filebackedServer
Jul 18, 2024
Merged

Add a Local Nuget Server That uses Self Signed certificate#117
Nigusu-Allehu merged 1 commit intomainfrom
dev-nyenework-add-filebackedServer

Conversation

@Nigusu-Allehu
Copy link
Copy Markdown
Member

@Nigusu-Allehu Nigusu-Allehu commented Jul 17, 2024

Fixes: https://github.com/NuGet/Client.Engineering/issues/2796
This PR adds a V3 Local NuGet Server that uses a self signed certificate

  • The server will only have a package named abcdefghijkl
  • And upon restore it would act like a regular NuGet server and provide the client with abcdefghijkl.1.0.0.nupkg
  • However it uses a self signed certificate which should block https connections as it would be invalid for the client
  • The source value of this server is https://127.0.0.1:44444/v3/index.json
  • This will be used for manula testing disableTLSCertificateValidation

@Nigusu-Allehu Nigusu-Allehu self-assigned this Jul 17, 2024
@Nigusu-Allehu Nigusu-Allehu requested a review from a team July 17, 2024 22:27
@zivkan
Copy link
Copy Markdown
Member

zivkan commented Jul 17, 2024

Perhaps for the vendors manual testing this PR's solution might be easier, but also consider pre-existing options which might have had less development cost:

  • Use Sleet and host on any web server that can support TLS (for example dotnet-serve with the -S argument)
  • Use another self-hosting Nuget server like Bagetter, potentially with a dev-cert

@Nigusu-Allehu
Copy link
Copy Markdown
Member Author

Perhaps for the vendors manual testing this PR's solution might be easier, but also consider pre-existing options which might have had less development cost:

  • Use Sleet and host on any web server that can support TLS (for example dotnet-serve with the -S argument)
  • Use another self-hosting Nuget server like Bagetter, potentially with a dev-cert

Thanks! These suggestions would have definitely made my life easier. I didn't know we could just generate a NuGet feed just like that. I'll be sure to consider them for future projects.

@Nigusu-Allehu Nigusu-Allehu merged commit 4adea85 into main Jul 18, 2024
@Nigusu-Allehu Nigusu-Allehu deleted the dev-nyenework-add-filebackedServer branch July 18, 2024 22:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants