This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
tango-certstore/README.md
fengweihao bd352e07e3 增加从配置文件中读取密钥强度配置
修改本地json配置
2019-08-08 17:12:18 +08:00

30 lines
1.3 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

[目录层次介绍]
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