MCPcopy Create free account
hub / github.com/1Panel-dev/1Panel / createCert

Function createCert

frontend/src/api/modules/host.ts:122–126  ·  view source on GitHub ↗
(params: Host.RootCert)

Source from the content-addressed store, hash-verified

120 return http.post(`/hosts/ssh/file/update`, { key, path, value }, TimeoutEnum.T_60S);
121};
122export const createCert = (params: Host.RootCert) => {
123 let request = deepCopy(params) as Host.RootCert;
124 encodeBase64Fields(request, ['passPhrase', 'privateKey', 'publicKey']);
125 return http.post(`/hosts/ssh/cert`, request);
126};
127export const editCert = (params: Host.RootCert) => {
128 let request = deepCopy(params) as Host.RootCert;
129 encodeBase64Fields(request, ['passPhrase', 'privateKey', 'publicKey']);

Callers

nothing calls this directly

Calls 3

deepCopyFunction · 0.90
encodeBase64FieldsFunction · 0.90
postMethod · 0.80

Tested by

no test coverage detected