Address greptile comments

This commit is contained in:
Carlos Monastyrski
2025-11-10 22:15:16 -03:00
parent 76645ccd23
commit ff07bb643a
5 changed files with 82 additions and 47 deletions
@@ -675,6 +675,12 @@ export const certificateServiceFactory = ({
throw new BadRequestError({ message: "Password is required for PKCS12 keystore generation" });
}
if (password.length < 6) {
throw new BadRequestError({
message: "Password must be at least 6 characters long for PKCS12 keystore security"
});
}
if (!alias || alias.trim() === "") {
throw new BadRequestError({ message: "Alias is required for PKCS12 keystore generation" });
}