11. Building Krptn
In case there aren’t any pre-built wheels on PyPI for your platform, you may need to build from source.
11.1. Building from source
Note: apart from x86 on Windows, only 64-bit environments are supported.
To build Krptn, you will need:
A C++ compiler
Build tools required by OpenSSL (please see OpenSSL’s guide for information)
After cloning the repo from GitHub (and checking out your version using git tags), please build and install OpenSSL 3, which is included as a git submodule:
Install openssl in the
kr-openssl-install/
and place configurations inkr-openssl-config/
directories.Therefore, in the configure script, you need
--prefix
and--openssldir
set.
As Krptn uses the FIPS module, please set
enable-fips
also.
For complete instructions on building OpenSSL, please see OpenSSL’s installation instructions.
For example (Windows example):
perl Configure --prefix="C:\Users\markb\source\repos\krypton\kr-openssl-install" \
--openssldir="C:\Users\markb\source\repos\krypton\kr-openssl-config" \
enable-fips
You need to both build and install OpenSSL:
make
make install
To install the extension:
pip install .