【发布时间】:2021-06-25 04:10:50
【问题描述】:
我想使用 Axios 获取服务器支持的 TLS 版本和密码列表。
请求或响应对象中是否存在公开这些值的属性或函数?
我熟悉request.connection.ssl.getCurrentCipher(),但这只会返回当前使用的密码。
例子:
const axios = require('axios').default;
axios.head('https://example.com').then(r => {
return r.somePropertyOrMethodForTLSVersionsAndCiphers // ??
});
使用 TLS 库的相关文章,不是 axios,对于客户端而不是服务器:List all TLS Ciphers the Client supports in Nodejs
【问题讨论】: