https://git.lekensteyn.nl/peter/wireshark-notes/tree/src/sslkeylog.c
cc sslkeylog.c -shared -o libsslkeylog.so -fPIC -ldl
SSLKEYLOGFILE=/tmp/premaster.txt LD_PRELOAD=./libsslkeylog.so \
./mongo --ssl --sslPEMKeyFile=/tmp/ssl/ssl/client.pem --sslCAFile=/tmp/ssl/ssl/ca.pem