mirror of
https://github.com/SunnyQjm/MIRCertificationManager.git
synced 2026-10-05 01:15:41 +08:00
update: README
This commit is contained in:
1 parent
e1b5cd70d2
commit
88f01b7b4d
1 file changed
+22
@@ -11,6 +11,13 @@
|
||||
sudo apt install redis-server
|
||||
```
|
||||
- libhiredis-dev => C语言实现的redis客户端API的连接库(代码中使用该库来连接redis本机的redis服务器)
|
||||
```bash
|
||||
sudo apt install libhiredis-dev
|
||||
```
|
||||
- libjsoncpp-dev => 用于解析json
|
||||
```bash
|
||||
sudo apt install libjsoncpp-dev
|
||||
```
|
||||
|
||||
- **编译**
|
||||
```bash
|
||||
@@ -32,6 +39,21 @@
|
||||
./uninstallCertificate -f <证书文件路径>
|
||||
```
|
||||
|
||||
- **测试接口**
|
||||
```bash
|
||||
# 首先启动server
|
||||
./MIRCertificationManager
|
||||
|
||||
# 然后再另一个窗口测试客户端
|
||||
./testRequest -f testjson/testAddOrUpdateCertificateRequet.json
|
||||
|
||||
./testRequest -f testjson/testExistsCertificate.json
|
||||
|
||||
./testRequest -f testjson/testGetCertificateLifetime.json
|
||||
|
||||
./testRequest -f testjson/testRemoveCertificateRequest.json
|
||||
```
|
||||
|
||||
## 通信接口
|
||||
|
||||
- **证书下发和更新**
|
||||
|
||||
Reference in new issue
Block a user