Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Build https+http2 by nginx

2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Wget https://github.com/openssl/openssl/archive/OpenSSL_1_1_1a.tar.gztar zxvf OpenSSL_1_1_1a.tar.gzcd nginx-1.15.8/# specifies the openssl directory through-- with-http_v2_module packaging http2-- with-openssl. / configure-- prefix=/usr/local/nginx-- with-http_stub_status_module-- with-http_ssl_module-- with-http_realip_module-- with-http_v2_ Module-- with-openssl=../openssl-OpenSSL_1_1_1amake-j2sudo make install # finally configure listen 443 ssl http2 under nginx conf server Server_name localhost;ssl_certificate_key / home/anfang/Downloads/cert/key.pem;ssl_certificate / home/anfang/Downloads/cert/cert.pem;openssl genrsa-out key.pem 2048openssl req-new-x509-sha256-key key.pem\-out cert.pem-days 36500\-subj / C=CN/ST=Shanghai/L=Songjiang/O=ztgame/OU=tech/CN=mydomain.ztgame.com/emailAddress=myname@ztgame.comopenssl x509-in cert.pem-noout-text

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report