git clone https://github.com/google/boringssl.git
编译前需要安装go
sudo apt install golang
cd boringssl
mkdir build
cd build
cmake ..
make -j16
boringssl提供了bssl工具进行测试。
语句如下:
./tool/bssl client -debug -connect www.baidu.com
测试结果:
Connecting to 36.152.44.95:443
Handshake started.
Handshake progress: TLS client enter_early_data