mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-03-09 15:40:18 +00:00
fix: AMT Direct TLS connection and Digest authentication
- fix: ensure TLS is used when TLS is enabled - add constants.SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION for TLS client connection for newer Nodejs - ensure nc of AMT redirection Digest authentication to have at 8 bytes length
This commit is contained in:
parent
270b34a068
commit
b5338b746a
4 changed files with 14 additions and 4 deletions
|
@ -395,7 +395,7 @@ module.exports.CreateRedirInterceptor = function (args) {
|
|||
if (obj.amt.digestRealm) {
|
||||
// Replace this authentication digest with a server created one
|
||||
// We have everything we need to authenticate
|
||||
var nc = obj.ws.authCNonceCount;
|
||||
var nc = '0'+ (10000000 + obj.ws.authCNonceCount).toString().substring(1);// set NC at least 8 bytes
|
||||
obj.ws.authCNonceCount++;
|
||||
var digest = obj.ComputeDigesthash(obj.args.user, obj.args.pass, obj.amt.digestRealm, 'POST', authurl, obj.amt.digestQOP, obj.amt.digestNonce, nc, obj.ws.authCNonce);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue