mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-16 03:31:27 +00:00
Added key algorithm opts to CA generation
This commit is contained in:
@@ -1,6 +1,20 @@
|
||||
import { CertStatus } from "./enums";
|
||||
import { CertKeyAlgorithm,CertStatus } from "./enums";
|
||||
|
||||
export const certStatusToNameMap: { [K in CertStatus]: string } = {
|
||||
[CertStatus.ACTIVE]: "Active",
|
||||
[CertStatus.REVOKED]: "Revoked"
|
||||
};
|
||||
|
||||
export const certKeyAlgorithmToNameMap: { [K in CertKeyAlgorithm]: string } = {
|
||||
[CertKeyAlgorithm.RSA_2048]: "RSA 2048",
|
||||
[CertKeyAlgorithm.RSA_4096]: "RSA 4096",
|
||||
[CertKeyAlgorithm.ECDSA_P256]: "ECDSA P256",
|
||||
[CertKeyAlgorithm.ECDSA_P384]: "ECDSA P384"
|
||||
};
|
||||
|
||||
export const certKeyAlgorithms = [
|
||||
{ label: "RSA 2048", value: CertKeyAlgorithm.RSA_2048 },
|
||||
{ label: "RSA 4096", value: CertKeyAlgorithm.RSA_4096 },
|
||||
{ label: "ECDSA P256", value: CertKeyAlgorithm.ECDSA_P256 },
|
||||
{ label: "ECDSA P384", value: CertKeyAlgorithm.ECDSA_P384 }
|
||||
];
|
||||
|
||||
@@ -2,3 +2,10 @@ export enum CertStatus {
|
||||
ACTIVE = "active",
|
||||
REVOKED = "revoked"
|
||||
}
|
||||
|
||||
export enum CertKeyAlgorithm {
|
||||
RSA_2048 = "RSA_2048",
|
||||
RSA_4096 = "RSA_4096",
|
||||
ECDSA_P256 = "EC_prime256v1",
|
||||
ECDSA_P384 = "EC_secp384r1"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user