guirong / guirong.github.io Goto Github PK
View Code? Open in Web Editor NEWguirong's personal site
Home Page: http://guirong.github.io
guirong's personal site
Home Page: http://guirong.github.io
前端开发一般需要将线上文件代理到本地服务器调试文件,https下本地服务器便需要提供证书,证书生成步骤简化:
# 生成私钥
openssl genrsa -out ca.key 2048
# 生成证书请求
openssl req -new -out ca.csr -key ca.key -config openssl.cnf
# 生成自认证根证书
openssl x509 -req -in ca.csr -signkey ca.key -out ca.crt
openssl genrsa -out server.key 2048
openssl req -new -out server.csr -key server.key -config openssl.cnf
# 使用前面根证书签发证书
openssl x509 -req -CA ca.crt -CAkey ca.key -CAcreateserial -in server.csr -out server.crt -extensions v3_req -extfile openssl.cnf
[req]
distinguished_name = req_distinguished_name
req_extensions = v3_req
# 不让用户输入,使用cnf设置内容
prompt = no
[ req_distinguished_name ]
countryName = CN
stateOrProvinceName = xxx
localityName = xxx
organizationName = xxx
organizationalUnitName = xxx
commonName = xxx
[ v3_req ]
# Extensions to add to a certificate request
basicConstraints = CA:false
subjectAltName = @alt_names
[alt_names]
DNS.1 = *.xxx.com
单独使用根证书直接绑定host没问题,但当被 charels等代理工具代理时,charels本身会有根证书用于客户端验证,此时charels将前面根证书重新签发再送到客户端,客户端会验证失败(chrome,部分android)
just the most useful tools
## 不加sudo 查看不到 sudo执行的程序,之后可以通过kill pid 杀掉
sudo lsof -i:80
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.