Read the PKCS#11 token PIN from NB_TPM_PIN instead of the profile config

This commit is contained in:
Viktor Liu
2026-10-01 08:16:40 +02:00
parent 0641f0d7bb
commit ab2f8972be
6 changed files with 30 additions and 18 deletions
+1 -1
View File
@@ -674,7 +674,7 @@ func createEngineConfig(key wgtypes.Key, config *profilemanager.Config, peerConf
CertStore: certproof.Config{
Dir: config.CertStoreDir,
PKCS11: certproof.PKCS11Config{URI: config.CertPKCS11URI, PIN: config.CertPKCS11PIN},
PKCS11: certproof.PKCS11Config{URI: config.CertPKCS11URI, PIN: certproof.PINFromEnv()},
},
MTU: selectMTU(config.MTU, peerConfig.Mtu),