sonertari / SSLproxy

Transparent SSL/TLS proxy for decrypting and diverting network traffic to other programs, such as UTM services, for deep SSL inspection
BSD 2-Clause "Simplified" License
385 stars 100 forks source link

Compiling Statically linked binaries not possible ? #54

Open GhostNaix opened 1 year ago

GhostNaix commented 1 year ago

Compiling Static binaries not possible ? Hi, I'm trying to compile SSLproxy to a statically linked binary via the command PCFLAGS='--static' CFLAGS='-static' LDFLAGS='-static' make -j$(nproc) however this method fails with the error detailed below. But if I compile via the make -j$(nproc) the program compiles successfully.

Is it not possible to compile SSLproxy as a statically linked binary?

Requested information:

Kind regards

sonertari commented 1 year ago

I've tried to compile using your command line, and I get the same errors. Honestly I had never tried to build a statically linked sslproxy binary before. I will try again, but no promises. Let me know if you succeed yourself.

GhostNaix commented 1 year ago

I'm also getting the same error with SSLsplit as well Since this is based on SSLsplit I'll open an issue over there and see if the good folks over there have any idea since the command that I use is derived from an issue there.

Edit: change sslstrip to sslsplit typo

sonertari commented 1 year ago

I think no need for that, because I am the maintainer of SSLsplit too :).

sonertari commented 1 year ago

On second thought, SSLsplit has more than 100 watchers, perhaps they can help, so by all means submit an issue there too.

GhostNaix commented 1 year ago

Issue submited over at SSLSplit

GhostNaix commented 1 year ago

For those that absolutely need this binary to be static right now there is a temporary sticky tape solution: The binary can be made static using the packer staticx, However this is not a true solution and may introduce instability in the future.