我试图为创建一个自签名证书localhost包含subjectAltName到满足的Chrome 58+:
createcertificate.sh:
#!/usr/bin/env bash
filename="$1server"
openssl req -new -sha256 -nodes -out ./../nginx/ssl/${filename}.csr -newkey rsa:2048 -keyout ./../nginx/ssl/${filename}.key -config <( cat ${filename}_csr.txt )
openssl x509 -req -in ./../nginx/ssl/${filename}.csr -CA ~/ssl/rootCA.pem -CAkey ~/ssl/rootCA.key -CAcreateserial -out ./../nginx/ssl/${filename}.crt -days 500 -sha256
Run Code Online (Sandbox Code Playgroud)
server_csr.txt:
[req]
default_bits = 2048
prompt = no
default_md = sha256
req_extensions = req_ext
distinguished_name = dn
[ dn ]
C=US
ST=New York
L=Rochester
O=End Point
OU=Testing Domain
emailAddress=your-administrative-address@your-awesome-existing-domain.com
CN = localhost
[ req_ext ]
subjectAltName = …Run Code Online (Sandbox Code Playgroud) 我可以使用此命令创建自签名证书
openssl req -new -newkey rsa:2048 -days 365 -nodes -x509 -keyout server.key -out server.crt
Run Code Online (Sandbox Code Playgroud)
但是是否可以将“国家名称”、“州或省名称”等参数传递给 OpenSSL 以自动执行此过程?
我使用的是带有 2GB VRAM 的 Nvidia Quadro K1100M 的 DELL M3800。
在安装 Nvidia 驱动程序之前使用
apt-get install nvidia-331 nvidia-settings nvidia-prime
Run Code Online (Sandbox Code Playgroud)
VirtualBox 5 仅显示集成英特尔视频适配器的 256 MB VRAM。
现在我安装了 Nvidia 驱动程序,但 VirtualBox 仍然只提供 256MB。
如何在 VirtualBox 中提供 Nvidia 卡 VRAM?有没有办法扫描更新的主机硬件?
更新:
我说的是这个 VirtualBox 设置对话框,而不是 VM 内的视频设置。