Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
deb13:kmip_server_pykmip [2026/08/21 13:42] – created Bernard Condraudeb13:kmip_server_pykmip [2026/08/21 14:52] (current) Bernard Condrau
Line 1: Line 1:
 ====== KMIP Server (PyKMIP) ====== ====== KMIP Server (PyKMIP) ======
-  * Install the Phyton package manager:<code>sudo apt install python3-pip</code>+  * Install Phyton3, the Phyton package manager and dependencies:<code>sudo apt update 
 +sudo apt install python3 python3-pip python3-venv libssl-dev libffi-dev python3-dev libsqlite3-dev</code>
   * Verify the installation:<code>pip3 --version</code>   * Verify the installation:<code>pip3 --version</code>
 +  * Create a virtual environment and activate it:<code>python3 -m venv pykmip-env
 +source pykmip-env/bin/activate</code>
 +  * To deactivate the virtual environment, enter ''deactivate'' within the virtual environment
   * To manage packages you can use:<code>pip3 install package_name   * To manage packages you can use:<code>pip3 install package_name
 pip3 install --upgrade package_name pip3 install --upgrade package_name
 pip3 uninstall package_name</code> pip3 uninstall package_name</code>
 +  * Once inside your virtual environment, upgrade ''pip'' and install the ''pykmip'' library:<code>pip install --upgrade pip
 +pip install pykmip</code>
 +  * Verify the installation:<code>python3 -c "import kmip; print(kmip.__version__)"</code>
 +  * Create folder ''/var/log/pykmip'' with ownership ''root:user'' and permissions ''770''
 +  * Start the server:<code>sudo pykmip-server -c ./pykmip-env/server.conf</code>
 +  * The configuration file:<code>[server]
 +host = 127.0.0.1
 +port = 5696
 +certificate_path = ./certs/server.crt
 +key_path = ./certs/server.key
 +ca_path = ./certs/ca.crt
 +auth_suite = TLS1.2
 +logging_level = INFO
 +database_path=/var/lib/pykmip/pykmip.db</code>
 +
 +
 +check
 +  * <code>sudo chmod -R o+rx /etc/letsencrypt/archive/
 +sudo chmod -R o+rx /etc/letsencrypt/live/</code>
 +  * <code>policy_path=/etc/pykmip/policies</code>