37 lines
1.6 KiB
Markdown
37 lines
1.6 KiB
Markdown
[目录层次介绍]
|
||
1. conf 配置文件目录
|
||
2. make Makefile配置文件目录
|
||
3. release 执行make tarball后生成的安装包文件
|
||
4. src 源代码目录
|
||
5. ca 根证书目录
|
||
src/components 使用的静态库所需的头文件(libevent、openssl、hiredis)
|
||
src/inc 系统所需头文件
|
||
src/lib 静态库
|
||
src/package 安装包临时目录
|
||
src/rt 公共函数
|
||
|
||
[编译运行]
|
||
1. cd src && make
|
||
2. ./cert_store --normal<--normal|--daemon>
|
||
备注:
|
||
发送请求命令:
|
||
keyring id存在(读取表指定的证书颁发)
|
||
curl -F "blob=@tango-ca-v3.cer;type=text/plain" "http://192.168.11.100:9991/ca?keyring_id=1&sni="www.google.com"&is_valid=1" -m 30 -v
|
||
keyring id不存在(读取本地默认证书颁发)
|
||
curl -F "blob=@tango-ca-v3.cer;type=text/plain" "http://192.168.11.100:9991/ca?keyring_id=5&sni="www.google.com"&is_valid=1" -m 30 -v
|
||
keyring id存在,表中valid为不可用(不信任证书颁发)
|
||
curl -F "blob=@tango-ca-v3.cer;type=text/plain" "http://192.168.11.100:9991/ca?keyring_id=5&sni="www.google.com"&is_valid=0" -m 30 -v
|
||
使用--daemon运行时,配置文件中使用绝对路径
|
||
|
||
[安装包使用]
|
||
1. cd src && make tarball
|
||
2. cd release
|
||
3. tar -zxvf cert_store-1.0.1.0.tar.gz
|
||
4. cd cert_store-1.0.1.0 && make install
|
||
|
||
[Redis密码登录]
|
||
开启redis.conf配置中的
|
||
requirepass foobared : 设置 Redis 连接密码,如果配置了连接密码,客户端在连接 Redis 时需要通过 AUTH <password> 命令提供密码,默认关闭
|
||
终端登录时需要使用-a 指定密码
|
||
redis-cli -a tsg-2022
|