About this task
Signing the Napatech driver with a private key is done with a Perl script from the kernel development package. Note that the script requires that both the files that contain the private and the public key, as well as the Napatech driver to sign:
# perl /usr/src/kernels/$(uname -r)/scripts/sign-file sha256 \ private_key.priv public_key.der /opt/napatech3/driver/nt3gd.ko
The Napatech driver is in ELF image format and this script computes and appends the signature directly to the ELF image in the nt3gd.ko file. The modinfo utility can be used to display information about the Napatech driver signature, if it is present:
# modinfo /opt/napatech3/driver/nt3gd.ko
The Napatech driver is now ready for loading. Note that the signed Napatech driver is also loadable on systems where UEFI Secure Boot is disabled or on a non-UEFI system. That means you do not need to provide both a signed and unsigned version of the compiled Napatech driver.
Bold typeface is used for names of, for instance, user interface elements and software components.
Italic typeface is used for replaceable text.
Monospaced typeface is used for code, commands and file names.