Install the software
Begin by installing the software: MariaDB itself, the encryption plugin, and some dependencies.
Install MariaDB and curl
On Debian-based systems:
sudo apt install mariadb-server curl
Install the Securosys encryption plugin for MariaDB
-
Download the plugin and extract the
.so
library file. -
Place the
.so
file into the MariaDB plugin directory:- On Debian-based systems:
/usr/lib/mysql/plugin/
- On RHEL-based systems:
/usr/lib64/mysql/plugin/
- On Debian-based systems:
-
Make sure that the permissions are set correctly and are locked down:
SO_PATH=/usr/lib/mysql/plugin/securosys_key_management.so
sudo chown root ${SO_PATH}
sudo chmod 0644 ${SO_PATH}