small tweaks

This commit is contained in:
x
2025-04-30 21:36:11 -04:00
parent f5fdd1a266
commit 01e13ca7bd
3 changed files with 1 additions and 3 deletions
@@ -275,7 +275,6 @@ export const certificateServiceFactory = ({
if (pkiCollection.projectId !== projectId) throw new BadRequestError({ message: "Invalid PKI collection" });
}
// Parse the certificate
const leafCert = new x509.X509Certificate(certificatePem);
// Verify the certificate chain
@@ -56,7 +56,6 @@ export const useImportCertificate = () => {
const queryClient = useQueryClient();
return useMutation<TImportCertificateResponse, object, TImportCertificateDTO>({
mutationFn: async (body) => {
console.log("DBG-1");
const { data } = await apiRequest.post<TImportCertificateResponse>(
"/api/v1/pki/certificates/import-certificate",
body
@@ -120,7 +120,7 @@ export const CertificateImportModal = ({ popUp, handlePopUpToggle }: Props) => {
setCertificateDetails(null);
}}
>
<ModalContent title={`${cert ? "View" : "Issue"} Certificate`}>
<ModalContent title={`${cert ? "View" : "Import"} Certificate`}>
{!certificateDetails ? (
<form onSubmit={handleSubmit(onFormSubmit)}>
<Controller