密钥管理接口

This commit is contained in:
liulu
2024-10-30 15:29:04 +08:00
parent b6ff674d0b
commit f4030f9265
34 changed files with 3052 additions and 39 deletions
@@ -0,0 +1,8 @@
package com.sunyard.chsm.controller;
/**
* @author liulu
* @since 2024/10/29
*/
public class ApplicationController {
}
@@ -21,6 +21,7 @@ import javax.validation.Valid;
/**
* 非对称密钥管理接口
*
* @author liulu
* @since 2024/10/28
*/
@@ -71,5 +72,14 @@ public class KeyInfoAsymController {
.body(new ByteArrayResource(content));
}
@PostMapping("/createCsr")
public R<KeyInfoDTO.CreateCSRResp> createCsr(KeyInfoDTO.CreateCsr createCsr) {
String csr = keyInfoService.createCsr(createCsr);
KeyInfoDTO.CreateCSRResp resp = new KeyInfoDTO.CreateCSRResp();
resp.setCsr(csr);
return R.data(resp);
}
}