写在前面 由于上一篇介绍 如何使用Fleck创建WebSocket服务器 ,感觉不够完善,因为生产环境中肯定是需要用到ssl的,而创建或申请ssl证书,相对而言是比较繁琐的事情,特别是本地如果要构建一个使用ssl的测试环境时,就难免要多费一番周折了。 本文介绍了如何创建一个 ssl 证书,用于test.com在本地环境中测试带安全验证的 WebSocket。 1.首先下载并安装 Win64 OpenSSL 建议把安装目录指定为 C:\OpenSSL-Win64\ 2.然后创建openssl.cnf 并保存到如下目录:C:\OpenSSL-Win64\ 内容如下: [ req ] default_bits = 2048 default_keyfile = server-key.pem distinguished_name = subject req_extensions = req_ext x509_extensions = x509_ext string_mask = utf8only # The Subject DN can be formed using X501 or...
Is this you? As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.
Claim your profile
Get in touch with Openssl Req
Contact Openssl Req, search articles and posts on X, monitor coverage, and track replies from one place.
Learn more about Muck Rack