mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-16 12:04:03 +00:00
misc: finalize KMIP management
This commit is contained in:
@@ -5,11 +5,9 @@ import { apiRequest } from "@app/config/request";
|
||||
import { kmipKeys } from "./queries";
|
||||
import {
|
||||
KmipClientCertificate,
|
||||
OrgKmipServerCert,
|
||||
TCreateKmipClient,
|
||||
TDeleteKmipClient,
|
||||
TGenerateKmipClientCertificate,
|
||||
TGenerateOrgKmipServerCertDTO,
|
||||
TSetupOrgKmipDTO,
|
||||
TUpdateKmipClient
|
||||
} from "./types";
|
||||
@@ -90,11 +88,3 @@ export const useSetupOrgKmip = (orgId: string) => {
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
export const useGenerateOrgKmipServerCert = () => {
|
||||
return useMutation({
|
||||
mutationFn: async (payload: TGenerateOrgKmipServerCertDTO) => {
|
||||
return apiRequest.post<OrgKmipServerCert>("/api/v1/kmip/server-certificates", payload);
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
@@ -73,13 +73,6 @@ export type TSetupOrgKmipDTO = {
|
||||
caKeyAlgorithm: CertKeyAlgorithm;
|
||||
};
|
||||
|
||||
export type TGenerateOrgKmipServerCertDTO = {
|
||||
commonName: string;
|
||||
keyAlgorithm: CertKeyAlgorithm;
|
||||
altNames: string;
|
||||
ttl: string;
|
||||
};
|
||||
|
||||
export type OrgKmipServerCert = {
|
||||
serialNumber: string;
|
||||
certificate: string;
|
||||
|
||||
Reference in New Issue
Block a user