今天我安装nut在我的 Ubuntu 服务器(Ubuntu 14.04 LTS)上。
$ uname -a
Linux boson 3.13.0-24-generic #47-Ubuntu SMP Fri May 2 23:30:00 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
Run Code Online (Sandbox Code Playgroud)
UPS 连接到另一台服务器(称为 neutron),所以我nut-client用来密切关注 UPS 的状态。
当我这样做时sudo upsc ups@neutron.local:
Init SSL without certificate database
battery.charge: 15
battery.charge.low: 10
battery.charge.warning: 50
battery.date: not set
battery.mfr.date: 2012/11/27
:
Run Code Online (Sandbox Code Playgroud)
输出的第一行与我有关。我还没有nut在基于 Debian 的服务器上的其他安装中看到这一点。
我该怎么做才能摆脱那条线?
编辑:这个“没有证书数据库的初始化 SSL”特别烦人,因为它不是输出的一部分,upsc因此我无法grep输出。
编辑(2):澄清一下,(Synology)服务器(直接与 UPS 对话)未设置 SSL 或证书。网络上的其他(Debian/Raspbian)客户端没有上述问题。没有安装 SSL 证书(据我所知)。
find / |grep …
我已经安装了 openssl 和 openssl-dev,其中:
sudo apt-get install openssl
sudo apt-get install libssl-dev
Run Code Online (Sandbox Code Playgroud)
并通过这些安装 ffmpeg:
sudo add-apt-repository ppa:mc3man/trusty-media
sudo apt-get install ffmpeg
Run Code Online (Sandbox Code Playgroud)
现在我想启用 https 协议ffmpeg。我确实尝试过这些:
user@user-VirtualBox:~/ffmpeg_sources/ffmpeg$ ./configure --enable-openssl
Run Code Online (Sandbox Code Playgroud)
并将其列在Enabled protocols列表中。
之后运行这些命令:
make
make install
Run Code Online (Sandbox Code Playgroud)
但没有任何帮助。如果检查ffmpeg -protocols,https协议不会在那里列出。
我在 virtualbox 中使用 ubuntu,但我不太擅长。如果您能指导我如何openssl使用 ffmpeg 进行编译以启用 https 协议,我将非常感谢。谢谢。
OpenSSL 发布了安全公告,警告用户注意最近发现的两个漏洞:
他们的建议如下:
OpenSSL 1.0.2 用户应该升级到 1.0.2h
OpenSSL 1.0.1 用户应该升级到 1.0.1t
但是,可用于 Trusty (14.04) 的最新版本是1.0.1f-1ubuntu2.19. 为什么仍然提供这么旧的版本,我该如何缓解这种情况?
我正在运行 Ubuntu 16.04.1 LTS,我检查了我的处理器是否支持所有 CPU 上的 AES-NI 加速:
johndoe@mycomputer:~$ grep -m1 -o aes /proc/cpuinfo
aes
johndoe@mycomputer:~$ grep -o aes /proc/cpuinfo | wc -l
4
johndoe@mycomputer:~$ lscpu | grep '^CPU(s):'
CPU(s): 4
Run Code Online (Sandbox Code Playgroud)
如何使用 AES-NI 检查 openssl?
谢谢你,幸运环
与wget 因证书问题而中断的问题相同:
\ndo-release-upgrade16.04 至 18.01之后
Failed to connect to https://changelogs.ubuntu.com/meta-release-lts. \nCheck your Internet connection or proxy settings\nRun Code Online (Sandbox Code Playgroud)\nwget https://changelogs.ubuntu.com/meta-release-lts
--2018-09-15 08:03:41-- https://changelogs.ubuntu.com/meta-release-lts\nResolving changelogs.ubuntu.com (changelogs.ubuntu.com)... 91.189.95.15, 2001:67c:1560:8008::11\nConnecting to changelogs.ubuntu.com (changelogs.ubuntu.com)|91.189.95.15|:443... connected.\nERROR: cannot verify changelogs.ubuntu.com\'s certificate, issued by \xe2\x80\x98CN=DigiCert SHA2 Secure Server CA,O=DigiCert Inc,C=US\xe2\x80\x99:\n Unable to locally verify the issuer\'s authority.\nTo connect to changelogs.ubuntu.com insecurely, use `--no-check-certificate\'.\nRun Code Online (Sandbox Code Playgroud)\n另外(作为 root):
\n# update-ca-certificates\n\nUpdating certificates in /etc/ssl/certs...\n0 added, 0 removed; done.\nRunning hooks in /etc/ca-certificates/update.d...\ndone.\nRun Code Online (Sandbox Code Playgroud)\n# …Run Code Online (Sandbox Code Playgroud) 尝试通过 https 连接到 github.com、google.com、dropbox.com 时出现以下错误,但 stackoverflow.com、askubuntu.com 和大多数 https 网站都可以正常工作。
相关详情:
错误信息:
$ openssl s_client -connect github.com:443
CONNECTED(00000003)
write:errno=104
---
no peer certificate available
---
No client certificate CA names sent
---
SSL handshake has read 0 bytes and written 311 bytes
---
New, (NONE), Cipher is (NONE)
Secure Renegotiation IS NOT supported
Compression: NONE
Expansion: …Run Code Online (Sandbox Code Playgroud) 我在我的 VPS 上安装了 Ubuntu 20。这就是为什么我要尝试这样做:
curl -v https://imenik.tportal.hr/show?action=pretraga&type=bijeleStranice
[1] 438975
root@vps:/var/www/html/tportal# * Trying 195.29.166.100:443...
* TCP_NODELAY set
* Connected to imenik.tportal.hr (195.29.166.100) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
* CAfile: /etc/ssl/certs/ca-certificates.crt
CApath: /etc/ssl/certs
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.3 (OUT), TLS alert, protocol version (582):
* error:1425F102:SSL routines:ssl_choose_client_version:unsupported protocol
* Closing connection 0
curl: (35) error:1425F102:SSL routines:ssl_choose_client_version:unsupported …Run Code Online (Sandbox Code Playgroud) 我已经在我的 Ubuntu 20.04 上安装了 Sql Server 2019 Developer Edition 和 mssql-tools。我可以毫无问题地连接到我的本地主机,但是当我想远程连接到另一个 sql 服务器时:
sqlcmd -S <server> -U <username> -P <password>
Run Code Online (Sandbox Code Playgroud)
我面临这个错误:
Sqlcmd: Error: Microsoft ODBC Driver 17 for SQL Server : SSL Provider: [error:1425F102:SSL routines:ssl_choose_client_version:unsupported protocol].
Sqlcmd: Error: Microsoft ODBC Driver 17 for SQL Server : Client unable to establish connection.
Run Code Online (Sandbox Code Playgroud)
我在 Debian 10 中遇到过一次这个问题,也在网上搜索解决方案,所以之后我openssl.conf手动更改了我的(需要 su 权限):
nano /etc/ssl/openssl.cnf
Run Code Online (Sandbox Code Playgroud)
并将这些添加到我的文件中:
ess_cert_id_alg = sha1在[tsa_config1]标题下
openssl_conf = default_conf 靠近顶部
结尾如下:
[default_conf]
ssl_conf = ssl_sect
[ssl_sect]
system_default = …
我刚刚阅读了 CVE-2020-1971 的描述,它表明今天为 openSSL 发布了一个补丁,补丁版本是 1.1.1i——我的 Ubuntu 20.04.1 LTS 版本正在运行 openSSL 版本 1.1.1f。从去年三月开始。
软件更新程序说我的系统是最新的。我希望 Canonical 在明天之前发布这个 openSSL 更新……谁能确认他们正在处理这个问题?
我运行了以下命令:
sudo apt-get install --only-upgrade openssl
Run Code Online (Sandbox Code Playgroud)
输出是:
openssl is already the newest version (1.1.0g-2ubuntu4.1).
Run Code Online (Sandbox Code Playgroud)
但是,当我输入openssl version -a终端时,输出是:
OpenSSL 1.0.2o 27 Mar 2018
built on: reproducible build, date unspecified
platform: linux-x86_64
options: bn(64,64) rc4(16x,int) des(idx,cisc,16,int) idea(int) blowfish(idx)
compiler: /tmp/build/80754af9/openssl_1522162531585/_build_env/bin/x86_64-conda_cos6-linux-gnu-cc -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -pipe -I/home/vedantroy/anaconda3/include -fdebug-prefix-map=/tmp/build/80754af9/openssl_1522162531585/work=/usr/local/src/conda/openssl-1.0.2o -fdebug-prefix-map=/home/vedantroy/anaconda3=/usr/local/src/conda-prefix -Wa,--noexecstack -I. -I.. -I../include -fPIC -DOPENSSL_PIC -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -m64 -DL_ENDIAN -O3 -Wall -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DRC4_ASM -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -DVPAES_ASM -DBSAES_ASM …Run Code Online (Sandbox Code Playgroud)