pywb
pywb copied to clipboard
Error in proxy mode
Describe the bug
Firefox gives an error MOZILLA_PKIX_ERROR_MITM_DETECTED because it sees pywb proxy cert
Steps to reproduce the bug
Enable proxy mode using docker (docker run -p 9090:8080 -v pwd
/pywb-data/:/webarchive webrecorder/pywb wayback --proxy my-web-archive)
Set Mozilla to proxy mode (Hamburger / Preferences / Network Settings)
Browse to a URL (http://google.com)
Expected behavior
Expected proxy to pull URL
Screenshots
Environment
Firefox 81 Linux
Additional context
Download and import the certificate in to Firefox as explained here and here
Importing the certificate shall fix the problem, however it is best to start pywb proxy directly to browse the archive files as explained here.
Then start the pywb proxy within docker while the same collection directory attached to container as volume, to make sure the same collection can be browsed either directly or through docker.
To browse current archives in my-web-archive collection through proxy:
wayback --proxy my-web-archive
To record in my-web-archive collection through proxy:
wayback --live -a --proxy-record --proxy my-web-archive
Please let us know if you have any further questions, or if there is any issues, otherwise please close this issue.