Configuring WSL 2 for FM development and deployment
This topic describes how to configure a Windows Subsystem for Linux 2 (WSL 2) environment for Functionality Module (FM) development and deployment. FM development and deployment with WSL 2 is only supported if the FMs are deployed on the ProtectServer 3 External or ProtectServer 3+ External.
Prerequisites
Before configuring a WSL 2 environment for FM development and deployment, install WSL 2 on the host Windows system with Ubuntu 20.04 LTS set as the Linux distribution. For information about installing WSL 2, refer to WSL Documentation.
Note
WSL 1 is not supported.
To configure WSL 2 for FM development and deployment
-
Load an Ubuntu shell.
-
Configure Ubuntu.
-
Create a user name and password.
-
Update the packages.
sudo apt update && sudo apt upgrade
-
Install
make
.sudo apt install make
-
-
Install the ProtectToolkit 7 toolchain.
-
Transfer the ProtectToolkit 7 source code files from Windows to the WSL 2 environment.
For example, run the following command to open a file explorer window from which to copy the source files (including the Ubuntu installers) onto the WSL 2 environment:
explorer.exe
-
Install the following ProtectToolkit 7 packages:
– SafeNet Network HSM Access Provider
– SafeNet ProtectToolkit C SDK
– SafeNet ProtectToolkit FM SDK
– Embedded Linux Development Kit (ELDK)
For installation instructions, refer to Installing ProtectToolkit 7 on Linux and Installing ProtectToolkit 7 on Unix/Linux manually.
-
-
Compile the FM binaries.
The WSL 2 environment has been configured for FM development and deployment. For more information, refer to FM development and FM deployment.