mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-11 16:29:00 +00:00
small tweaks
This commit is contained in:
@@ -275,7 +275,6 @@ export const certificateServiceFactory = ({
|
|||||||
if (pkiCollection.projectId !== projectId) throw new BadRequestError({ message: "Invalid PKI collection" });
|
if (pkiCollection.projectId !== projectId) throw new BadRequestError({ message: "Invalid PKI collection" });
|
||||||
}
|
}
|
||||||
|
|
||||||
// Parse the certificate
|
|
||||||
const leafCert = new x509.X509Certificate(certificatePem);
|
const leafCert = new x509.X509Certificate(certificatePem);
|
||||||
|
|
||||||
// Verify the certificate chain
|
// Verify the certificate chain
|
||||||
|
|||||||
@@ -56,7 +56,6 @@ export const useImportCertificate = () => {
|
|||||||
const queryClient = useQueryClient();
|
const queryClient = useQueryClient();
|
||||||
return useMutation<TImportCertificateResponse, object, TImportCertificateDTO>({
|
return useMutation<TImportCertificateResponse, object, TImportCertificateDTO>({
|
||||||
mutationFn: async (body) => {
|
mutationFn: async (body) => {
|
||||||
console.log("DBG-1");
|
|
||||||
const { data } = await apiRequest.post<TImportCertificateResponse>(
|
const { data } = await apiRequest.post<TImportCertificateResponse>(
|
||||||
"/api/v1/pki/certificates/import-certificate",
|
"/api/v1/pki/certificates/import-certificate",
|
||||||
body
|
body
|
||||||
|
|||||||
+1
-1
@@ -120,7 +120,7 @@ export const CertificateImportModal = ({ popUp, handlePopUpToggle }: Props) => {
|
|||||||
setCertificateDetails(null);
|
setCertificateDetails(null);
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<ModalContent title={`${cert ? "View" : "Issue"} Certificate`}>
|
<ModalContent title={`${cert ? "View" : "Import"} Certificate`}>
|
||||||
{!certificateDetails ? (
|
{!certificateDetails ? (
|
||||||
<form onSubmit={handleSubmit(onFormSubmit)}>
|
<form onSubmit={handleSubmit(onFormSubmit)}>
|
||||||
<Controller
|
<Controller
|
||||||
|
|||||||
Reference in New Issue
Block a user