mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-14 13:22:08 +00:00
misc: improved docs and added support for curl clients
This commit is contained in:
@@ -30,11 +30,6 @@ export const isCertChainValid = async (certificates: x509.X509Certificate[]) =>
|
||||
return true;
|
||||
}
|
||||
|
||||
// check for self-signed
|
||||
if (certificates.length === 2 && certificates[0].equal(certificates[1])) {
|
||||
return true;
|
||||
}
|
||||
|
||||
const leafCert = certificates[0];
|
||||
const chain = new x509.X509ChainBuilder({
|
||||
certificates: certificates.slice(1)
|
||||
|
||||
Reference in New Issue
Block a user