我正在尝试在 Nginx 上设置 OCSP 装订
我收到错误:
"ssl_stapling" ignored, host not found in OCSP responder "ocsp.comodoca.com"
Run Code Online (Sandbox Code Playgroud)
这是文件 .conf
server {
ssl_certificate /etc/nginx/myfile.crt;
ssl_certificate_key /etc/nginx/myfile.key;
ssl_stapling on;
ssl_stapling_verify on;
ssl_trusted_certificate /etc/nginx/myfile_trusted.crt;
resolver 8.8.8.8 8.8.4.4 valid=300s;
resolver_timeout 15s;
}
Run Code Online (Sandbox Code Playgroud)
请提出具体的解决方案。
例如,我有对象js
data = {"dt1_a": 20, "dt1_b": 30, "dt2_a": 40, "dt2_b": 50}
Run Code Online (Sandbox Code Playgroud)
我想转换数据
data1 = {"dt1": {"a": 20, "b": 30}, "dt2": {"a": 40, "b": 50}}
Run Code Online (Sandbox Code Playgroud)
请提出具体的解决方案.
我使用引擎AES-NI提高openssl速度(硬件加速)的性能,我的芯片支持引擎AES-NI(Intel(R)Xeon(R)CPU E5620 @ 2.40GHz)。
我尝试安装 openssl 版本1.0.2-chacha和1.0.1l
版本 1.0.2 chacha 测试速度 openssl 时使用命令:
openssl speed aes-256-cbc
Run Code Online (Sandbox Code Playgroud)
然后错误:
错误:错误的选项或值
版本 1.0.1 使用 nginx 配置时出错:
nginx: [warn] ENGINE_by_id("aesni") failed (SSL: error:25066067:DSO supportroutines:DLFCN_LOAD:could not load the shared library:filename(/usr/lib/x86_64-linux-gnu/openssl-1.0.1) /engines/libaesni.so):/usr/lib/x86_64-linux-gnu/openssl-1.0.1/engines/libaesni.so:无法打开共享对象文件:没有此类文件或目录错误:25070067:DSO 支持例程: DSO_load:could not load the shared library error:260B6084:engineroutines:DYNAMIC_LOAD:dso not found error:2606A074:engineroutines:ENGINE_by_id:no such engine:id=aesni)
我知道对于 openssl >= 1.0.1 的版本,AES-NI 不能通过引擎工作,也不会出现在 openssl 引擎命令中。默认情况下,它在支持的硬件上处于活动状态。
我在https://www.ruby-forum.com/topic/6873426#1168394 中看到一个命令说“没有配置选项,只要你的 CPU 支持它就可以工作”。
但我没有找到官方消息来源。
请建议使用版本 openssl 和 nginx 配置的解决方案。
例如我有dict python
dict = {'a': '1', 'b': '2', 'c': '3'}
Run Code Online (Sandbox Code Playgroud)
和数组
arr = ['4', '5', '6']
Run Code Online (Sandbox Code Playgroud)
我想在dict中添加顺序值数组
dict1 = {'a': '4', 'b': '5', 'c': '6'}
Run Code Online (Sandbox Code Playgroud)
请提出具体的解决方案.
nginx ×2
aes-ni ×1
dictionary ×1
javascript ×1
jquery ×1
json ×1
list ×1
openssl ×1
python ×1
python-2.7 ×1