Remove cert secret structure, show cert sk once upon issuance

This commit is contained in:
Tuan Dang
2024-05-28 22:04:13 -07:00
parent 2f06168b29
commit f9847f48b0
12 changed files with 347 additions and 478 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
import { CaStatus,CaType } from "./enums";
import { CaStatus, CaType } from "./enums";
export type TCertificateAuthority = {
id: string;
@@ -85,6 +85,6 @@ export type TCreateCertificateResponse = {
certificate: string;
issuingCertificate: string;
certificateChain: string;
sk: string;
privateKey: string;
serialNumber: string;
};
@@ -29,8 +29,6 @@ export const useGetCertCert = (certId: string) => {
const { data } = await apiRequest.get<{
certificate: string;
certificateChain: string;
issuingCaCertificate: string;
privateKey: string;
serialNumber: string;
}>(`/api/v1/certificates/${certId}/certificate`);
return data;