WARNING: can‘t open config file: /usr/local/ssl/openssl.cnf

2018-04-24

WARNING: can't open config file: /usr/local/ssl/openssl.cnf

1、下载最新的openssl

http://slproweb.com/products/Win32OpenSSL.html

2、在输入openssl命令前添加环境变量OPENSSL_CONF即可。

set OPENSSL_CONF=openssl.cnf

3、openssl dgst -sha1 file.txt

4、The reason is that openssl failed to locate the openssl.cnf file

set OPENSSL_CONF=d:\openssl\bin\openssl.cfg

5、openssl sha1 d:\CentOS-7-x86_64-Minimal-1708.iso
SHA1(d:\CentOS-7-x86_64-Minimal-1708.iso)= aae20c8052a55cf179af88d9dd35f1a889cd5773

分类:Linux | 标签: |

相关日志

评论被关闭!