Key requirements
Generate the CryptoHub-resident CA key
Shell
The command reports the generated public key,
Public Key Object; RSA 3072 bits, with the label strongSwanCA.Shell
The output shows
Private Key Object; RSA, label strongSwanCA, ID 01, and Usage: sign, signRecover.Create the self-signed CA certificate
When using an HSM object ID with
ipsec pki --self, include --type priv. Without this option, strongSwan may fail to locate the HSM-backed private key.Shell
--dn.
Verify the CA certificate:
Shell
The output reports the subject and issuer as the same DN,
flags: CA CRLSign self-signed, and pubkey: RSA 3072 bits. The log lines confirming found key on PKCS#11 token 'futurex':0 show the signature was produced inside the CryptoHub.Generate the CryptoHub-resident responder key
Shell
Shell
Both a private and a public key object appear with the label
StrongSwan and ID 02.Shell
strongswan-pub.der exists and is several hundred bytes. Only the public key is read out; the private key remains in the CryptoHub.Issue the responder certificate with the CryptoHub CA key
Shell
--cakeyid 01 tells pki to sign with the CA key inside the CryptoHub.
Verify the issued certificate:
Shell
--print reports subject CN=StrongSwan, the CA DN as issuer, and pubkey: RSA 3072 bits. --verify reports certificate trusted, lifetimes valid after reaching the self-signed root.
