Automate configuring Dev Proxy certificate on Linux
Les mainteneurs répondent en général sous 1 jour
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 35/100
Piste de recherche
Commencez par reproduire sous Linux le flux documenté ./devproxy --install-cert --log-level trace et comparez-le au comportement de Windows décrit dans l’issue. Vérifiez comment le point d’entrée --install-cert gère la confiance du certificat, puis vérifiez la réussite avec la requête HTTPS wget fournie, sans --no-check-certificate.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Description
Hey everyone,
I've been trying to get devproxy to work on Linux for HTTPS proxying, but I'm hitting a wall.
It works fine with HTTP, and on Windows, it's working as per the documentation.
However, when I switch to Linux, HTTPS isn't cooperating.
I even tried exporting the Windows certificate and adding it to the trusted root certificates on Linux, but no luck there.
I've checked the docs, but I can't seem to find a fix. Any help or advice would be greatly appreciated!
I tried on Ubuntu app (Windows 11 pro wsl2)
I tried on Ubuntu 18.04
I tried on a Docker container based on Ubuntu 22.04
Thanks!
Expected behaviour
The devproxy binary should register a root certificate when --install-cert is used
Actual behaviour
Any attempt to access a website through the proxy with HTTPS results with an error.
Steps to reproduce
Install dev proxy on a Linux (ubuntu) environment following documented instructions.
cd ~/devproxy
./devproxy --install-cert --log-level trace
Output is:
Loading plugin RetryAfterPlugin from: /home/patrick/devproxy/plugins/dev-proxy-plugins.dll
Loading plugin GenericRandomErrorPlugin from: /home/patrick/devproxy/plugins/dev-proxy-plugins.dll
8 error responses loaded from /home/patrick/devproxy/devproxy-errors.json
Listening on 127.0.0.1:8000...
WARNING: Configure your operating system to use this proxy's port and address [127.0.0.1:8000](http://127.0.0.1:8000/)
Press CTRL+C to stop Dev Proxy
Open another terminal and try this:
wget -e use_proxy=yes -e https_proxy=https://127.0.0.1:8000/ https://jsonplaceholder.typicode.com/posts
The output:
Connecting to 127.0.0.1:8000... connected.
ERROR: cannot verify [jsonplaceholder.typicode.com](http://jsonplaceholder.typicode.com/)'s certificate, issued by ‘CN=Dev Proxy CA’:
Unable to locally verify the issuer's authority.
To connect to [jsonplaceholder.typicode.com](http://jsonplaceholder.typicode.com/) insecurely, use `--no-check-certificate'.
If we follow recommendation and add --no-check-certificate, it works
request GET https://jsonplaceholder.typicode.com/posts
api ╭ Passed through
╰ GET https://jsonplaceholder.typicode.com/posts
Dev Proxy Version
0.15.0
Operating system (environment)
Linux
Shell
bash
Configuration file
{
"$schema": "https://raw.githubusercontent.com/microsoft/dev-proxy/main/schemas/v0.15.0/rc.schema.json",
"plugins": [
{
"name": "RetryAfterPlugin",
"enabled": true,
"pluginPath": "~appFolder/plugins/dev-proxy-plugins.dll"
},
{
"name": "GenericRandomErrorPlugin",
"enabled": true,
"pluginPath": "~appFolder/plugins/dev-proxy-plugins.dll",
"configSection": "genericRandomErrorPlugin"
}
],
"urlsToWatch": [
"https://jsonplaceholder.typicode.com/*"
],
"genericRandomErrorPlugin": {
"errorsFile": "devproxy-errors.json"
},
"rate": 50,
"labelMode": "text",
"logLevel": "information",
"newVersionNotification": "stable"
}
Additional Info
No response
- Langage dominant
- C#
- Étoiles
- 833
- Forks
- 90
- Merge moyen
- 18 h 41 min
- PR mergées (30 j)
- 45
Préparer son environnement
- Fournit un Dockerfile ou un fichier Docker Compose
- Aucun modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de dotnet/dev-proxy
-
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 85/100
Les mainteneurs répondent en général sous 1 jour
-
waiting for response
Difficulté 4/5 3-5 jours Accessibilité débutants 28/100
dotnet/dev-proxy#1914 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
MockStdioResponsePlugin: @stdin.body.id placeholder fails to resolve when messages arrive back-to-back after an id-less messagePeut-être à nouveau libre @garrytrinder l’a pris il y a 85 jours, et aucune pull request n’est ouverte. Ouverte
dotnet/dev-proxy#1757 · 1 réaction · 2 personnes assignées ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 4/5 3-5 jours Accessibilité débutants 55/100
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de dotnet/dev-proxy
Issues similaires
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 80/100
Les mainteneurs répondent en général sous 1 jour
-
:watch: Not Triaged aspnet-core/svc fundamentals/subsvc Source - Docs.ms
Difficulté 1/5 Moins d'une heure Accessibilité débutants 85/100
dotnet/AspNetCore.Docs#37785 ·
Les mainteneurs répondent en général sous 1 jour
-
needs-triage
Difficulté 2/5 1-3 heures Accessibilité débutants 66/100
Azure/azure-sdk-tools#17204 ·
Les mainteneurs répondent en général sous 1 jour
-
Проблема с Dotnet RUOuvertearea-tutorials needs-triage
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
dotnet/website-feedback#1779 ·
-
[Bug] SwipeControl in Execute mode with more than one item replaces the whole UI with an error panelPeut-être pris Une pull request liée à cette issue est ouverte ou déjà fusionnée. Ouvertebug needs-triage
Difficulté 2/5 1-3 heures Accessibilité débutants 67/100
microsoft/microsoft-ui-reactor#1344 ·
Les mainteneurs répondent en général sous 1 jour