Files
GmSSL/demos/tls12_server.sh
2022-07-20 16:42:32 +08:00

17 lines
624 B
Bash
Executable File
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.
#!/bin/bash
# 现在的错误是服务器想要让客户端发送证书,但是客户端没有发证书
# 如果要求客户端发送证书那么服务器必须准备相应的CA证书
# 客户端的证书和CA证书有什么区别吗可能没有区别但是还应该生成一个
# 客户端的名字是什么呢?
#
# 服务器的证书需要设定服务器名字也就是127.0.0.1或者localhost
# 这个名字和SNI是有关系的
# 客户端的名字可以任意定了而且客户端的CA可以有所不同吧
../build/bin/tls12_server -cert cert.pem -key key.pem -pass 123456 #-cacert cacert.pem