When I searched the web for libcrypto it seems to be a file required for MinGW compiler, I'm compiling my dll with msvc2010 compiler and not MinGW. Sorry for not stating that directly. anyway I tried to include the libcrypto dll and it didn't make any difference. Another thing is that I've actually been able to create an application (not dll) that do the same thing as my dll and that application works fine with HTTPS. The application is then instead compiled with the MinGW compiler. I have all VC++ Redistributable packages installed as well. Can't get a grip on this...