mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-15 05:19:49 +00:00
feat: pki and ssh setup for instance proxy
This commit is contained in:
@@ -52,6 +52,9 @@ export const constructPemChainFromCerts = (certificates: x509.X509Certificate[])
|
||||
.join("\n")
|
||||
.trim();
|
||||
|
||||
export const prependCertToPemChain = (cert: x509.X509Certificate, pemChain: string) =>
|
||||
`${cert.toString("pem")}\n${pemChain}`;
|
||||
|
||||
export const splitPemChain = (pemText: string) => {
|
||||
const re2Pattern = new RE2("-----BEGIN CERTIFICATE-----[^-]+-----END CERTIFICATE-----", "g");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user