小编use*_*689的帖子

Nginx“ssl_stapling”被忽略,在 OCSP 响应程序“ocsp.comodoca.com”中找不到主机

我正在尝试在 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)

请提出具体的解决方案。

nginx ssl-certificate

5
推荐指数
1
解决办法
3万
查看次数

转换对象js显示

例如,我有对象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)

请提出具体的解决方案.

javascript jquery json

2
推荐指数
2
解决办法
73
查看次数

如何在 nginx 中配置 openssl 引擎 aes-ni

我使用引擎AES-NI提高openssl速度(硬件加速)的性能,我的芯片支持引擎AES-NI(Intel(R)Xeon(R)CPU E5620 @ 2.40GHz)。

我尝试安装 openssl 版本1.0.2-chacha1.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 配置的解决方案。

openssl nginx aes-ni

2
推荐指数
1
解决办法
5264
查看次数

Python将顺序值数组添加到dict

例如我有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)

请提出具体的解决方案.

python dictionary list python-2.7

1
推荐指数
1
解决办法
1264
查看次数