Creating CSR

To generate a CSR, you don’t need to first export the public key to a file. You can use openssl and include -engine zymkey_ssl to use the Zymkey keys. There is an example you can find here:

You can specify an environment variable ZK_SSL_SLOT to openssl with the slot you would like to use.

For example, to use ATTEC slot 2,

ZK_SSL_SLOT=2 openssl req -key bogus.key -new -out myCert.csr -engine zymkey_ssl -keyform e

This is particularly useful with the HSM6 which allows you to generate up to 512 additional key pairs.