编译boringssl

#下载源码或者直接 git clone

安装依赖
apt-get install libevent-dev libexpat1-dev libexpat1 expat openssl cmake make gcc git curl libssl-dev libunbound-dev
apt-get install -y build-essential golang
wget https://github.com/google/boringssl/archive/master.zip -O boringssl.zip
unzip -q boringssl.zip
mv boringssl-master boringssl
cd boringssl && mkdir build && cd build && cmake ../ && make && cd ../
mkdir -p .openssl/lib && cd .openssl && cp -R ../include . && cd ../
cp build/crypto/libcrypto.a build/ssl/libssl.a .openssl/lib
cd ../
nginx配置的话执行

touch ../boringssl/.openssl/include/openssl/ssl.h
make 
make install
上一篇
下一篇