Just a quick post on how to set up MITM with GOG GALAXY so other people can take over my job. First make sure to update the application, because half of these changes get reverted with every update.
This makes the graphical interface work.
C:\ProgramData\GOG.com\Galaxy\redists\rootCA.pem
in a text editor. ProgramData
is not the same as Program Files
!This makes the background service work.
The upstream mitmproxy does not have support for adding revocation information to certificates at the time of writing this (2022-05-09). libcurl with the Windows Schannel backend, which is used for the background services, refuses certificates without revocation information. You need to use my fork at https://github.com/Yepoleb/mitmproxy-crl/tree/crl. Make sure to run the crl
branch. It’s probably a good idea to create a venv for this version.
For more information on how I set up mitmproxy for transparently proxying a VM read my previous article Transparent proxying setup for mitmproxy with only one VM