New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Automate configuring Dev Proxy certificate on Linux #601
Comments
My attempt to use windows' rootCert.pfx: Open git bash, and navigate to my windows' devproxy install directory. Then extract the certificate and copy it in a new file named dev-proxy-ca.crt Switch to Ubuntu.
Output:
Retrying the same test above (see steps to reproduce) and it still fails with the same error. |
I found a workaround. Using Ubuntu 18.04, VSCode and the latest .net sdk, Using the same procedure I described in my previous comment for the Windows certificate, it is now working as expected. Important notes:
|
Thank you for reaching out to us @plachance-qohash and sorry for the lack of clarity on our part. Like you noticed, we don't automatically register the root cert on Linux at the moment. I appreciate you digging into it and sharing your findings with us. It'll help us extend proxy with automatic setup on Linux. Speaking of which, would you be willing to contribute an equivalent of the macOS certificate setup script for Linux? |
Hello @waldekmastykarz |
Awesome! Looking forward to it! |
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.
Output is:
Open another terminal and try this:
The output:
If we follow recommendation and add --no-check-certificate, it works
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
The text was updated successfully, but these errors were encountered: