refactored SAN validation logic

This commit is contained in:
Julius Mieliauskas
2025-08-06 00:26:27 +03:00
parent e9f5055481
commit e7a6f46f56
4 changed files with 70 additions and 105 deletions
@@ -104,3 +104,14 @@ export type TGetCertificateCredentialsDTO = {
projectDAL: Pick<TProjectDALFactory, "findOne" | "updateById" | "transaction">;
kmsService: Pick<TKmsServiceFactory, "decryptWithKmsKey" | "generateKmsKey">;
};
export enum TAltNameType {
EMAIL = "email",
DNS = "dns",
IP = "ip",
URL = "url"
}
export type TAltNameMapping = {
type: TAltNameType;
value: string;
};