Giter Club home page Giter Club logo

mongodb-ssl's Introduction

Mongodb with openssl support

Building mongodb with openssl support on Windows is not for the faint hearted. This short tutorial teaches you how to do it.

Prebuilt binaries

You can download my prebuilt binaries from Sourceforge if you want to get started quickly. Binaries for both x86 and x64 are available starting from mongo 2.4.9.

In order to run mongodb with ssl support on Windows Server 2008 R2 or newer the following prerequisites are required:

Grabbing mongo sources

  1. Create a new folder on your disk called mongodb-ssl
  2. Download and extract Winpcap 4.1.2 Developers pack into mongodb-ssl\winpcap
  3. git clone https://github.com/mongodb/mongo.git mongodb-ssl\mongo
  4. cd mongodb-ssl\mongo
  5. git checkout r2.4.9

Downloading thirdparty dependencies

NB! You do not need a working Visual Studio 2010 CD-KEY after your trial expires because we are only interested in the compilers.

NB! If the python installer does not do it for you, please remember to add C:\Python27\scripts to your PATH environment variable otherwise scons will not be found.

32-bit build

NB! Before you continue you need to change line 71 in C:\OpenSSL-Win32\include\openssl\dtls1.h from winsock.h to winsock2.h otherwise mongosniffer.exe will fail to compile.

  1. Modify mongodb-ssl\mongo\SConstruct at line 287 and add the following entry to env = Environment(:

    MSVC_USE_SCRIPT = "C:\\Program Files (x86)\\Microsoft Visual Studio 10.0\\VC\\vcvarsall.bat",

  2. Run the following line in a Visual Studio 2010 command prompt

    scons all --release --32 --ssl --win2008plus --extrapath="C:\OpenSSL-Win32"

  3. You shall see unicorns in mongodb-ssl\mongo\build\win32\32\extrapath_C__OpenSSL-Win32\release\ssl\mongo folder.

64-bit build

  1. Modify mongodb-ssl\mongo\SConstruct at line 287 and add the following entry to env = Environment(:

    MSVC_USE_SCRIPT = "C:\\Program Files (x86)\\Microsoft Visual Studio 10.0\\VC\\bin\\amd64\\vcvars64.bat",

  2. Run the following line in a Visual Studio 2010 command prompt

    scons all --release --64 --ssl --win2008plus --extrapath="C:\OpenSSL-Win64"

  3. You shall see unicorns in mongodb-ssl\mongo\build\win32\64\extrapath_C__OpenSSL-Win64\release\ssl\mongo folder.

mongodb-ssl's People

Contributors

peters avatar

Watchers

Clay Collier avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.