feat(ipsec): add certificate export functionality by name
Docker images / prepare-release (push) Successful in 12s
Docker images / backend-test (push) Successful in 2m41s
Docker images / frontend-image (push) Successful in 2m57s
Docker images / updater-image (push) Successful in 48s
Docker images / backend-image (push) Successful in 2m48s
Docker images / notify-webhook (push) Skipped
Docker images / publish-release (push) Successful in 13s
Docker images / prepare-release (push) Successful in 12s
Docker images / backend-test (push) Successful in 2m41s
Docker images / frontend-image (push) Successful in 2m57s
Docker images / updater-image (push) Successful in 48s
Docker images / backend-image (push) Successful in 2m48s
Docker images / notify-webhook (push) Skipped
Docker images / publish-release (push) Successful in 13s
- Implemented a new backend route for exporting existing client certificates in .p12 format by name. - Enhanced the frontend to support exporting certificates directly from the IPsec server grid. - Updated the IPsec page to manage certificate states and handle exports effectively. - Introduced new utility functions for certificate handling and improved data structures to accommodate the changes. - Added tests to ensure the reliability of the new certificate export feature.
This commit is contained in:
@@ -97,6 +97,19 @@ export async function exportIpsecUserCert(
|
||||
)
|
||||
}
|
||||
|
||||
export async function exportIpsecCertByName(
|
||||
baseUrl: string,
|
||||
serverId: string,
|
||||
name: string,
|
||||
passphrase: string,
|
||||
): Promise<IpsecCertBundle> {
|
||||
return requestJson<IpsecCertBundle>(
|
||||
baseUrl,
|
||||
`/api/ipsec/certs/${encodeURIComponent(serverId)}/export`,
|
||||
{ method: "POST", body: JSON.stringify({ name, passphrase }) },
|
||||
)
|
||||
}
|
||||
|
||||
export async function restoreIpsecRevision(
|
||||
baseUrl: string,
|
||||
revisionId: string,
|
||||
|
||||
Reference in New Issue
Block a user