Prerequisites
You must create a zone file before testing can continue.Zone file
A zone file is a text file used by DNS servers like BIND to define the mappings between domain names and IP addresses for a specific DNS zone. It contains DNS records such asSOA, NS, A, and others that describe the structure and behavior of the domain.
You copy and paste the following text into a file named db.example.com
None
Generate keys
Perform the following steps by using the pkcs11-tool available from the OpenSC (github.com/OpenSC/OpenSC) suite to generate keys. On both DEB-based and RPM-based distributions, the package is called opensc.1
Generate the following RSA keys on the Excrypt HSM by using pkcs11-tool: The KSK and the ZSK. When prompted for the user PIN, enter the password of the identity configured in the Futurex PKCS #11 file,
fxpkcs11.cfg.Each key must have a unique label because later commands use that label to reference the private key.
Shell
Shell
The command output should look similar to the following:
Shell
2
To convert the RSA keys stored in the HSM into a format that BIND 9 understands, use the dnssec-keyfromlabel tool from BIND 9. This process links the raw keys stored in the HSM with **K<zone>+<alg>+<id>
** files that the command generates.The required information is the PKCS #11 label that specifies the token (such as Futurex), the name of the PKCS #11 object (such as label when generating the keys with pkcs11-tool), and the HSM PIN.The private key file is used for DNSSEC signing of the zone as if it were a conventional key on the file system (such as one created with dnssec-keygen). The HSM stores the key material (which we cannot extract), and the actual signing takes place on the HSM.Run the following command to convert a KSK:Run the following command to convert a ZSK:
Shell
Shell
3
Run the following command to confirm that you have one KSK and one ZSK present in the current directory:
Shell
The output should look similar to the following output (with different numbers):
Shell
Sign the zone
The KSK, ZSK, and zone files must be present in the directory from which you run the command.
Shell
Shell

