mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-03-09 15:40:18 +00:00
Fixes to French translation.
This commit is contained in:
parent
bf128a988c
commit
4e77a29072
5 changed files with 8 additions and 137 deletions
|
@ -69,6 +69,11 @@ function loadCertificates(pemFileNames) {
|
|||
var k = PemKeys[j].indexOf('-----END RSA PRIVATE KEY-----');
|
||||
if (k >= 0) { keys.push(pki.privateKeyFromPem('-----BEGIN RSA PRIVATE KEY-----' + PemKeys[j].substring(0, k) + '-----END RSA PRIVATE KEY-----')); }
|
||||
}
|
||||
PemKeys = pem.split('-----BEGIN PRIVATE KEY-----');
|
||||
for (var j in PemKeys) {
|
||||
var k = PemKeys[j].indexOf('-----END PRIVATE KEY-----');
|
||||
if (k >= 0) { keys.push(pki.privateKeyFromPem('-----BEGIN PRIVATE KEY-----' + PemKeys[j].substring(0, k) + '-----END PRIVATE KEY-----')); }
|
||||
}
|
||||
} catch (ex) { }
|
||||
}
|
||||
if ((certs.length == 0) || (keys.length != 1)) return; // No certificates or private keys
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue