我需要允许用户使用他们的国防部颁发的通用访问卡登录我的反应网站。我正在使用 express api 作为身份验证服务器。我已将服务器配置为需要客户端证书:
const options = {
key: fs.readFileSync(config.ssl.keyPath),
cert: fs.readFileSync(config.ssl.certPath),
ca: [fs.readFileSync(config.ssl.caPath)],
requestCert: true,
rejectUnauthorized: false,
};
https.createServer(options, expressApp).listen(port);
如何让我的反应应用程序从 CAC 请求/加载/读取证书?