LINUX.ORG.RU
ФорумAdmin

centos 7 php openssl

 , , ,


0

1

php56 -i | grep SSL
SSL => Yes
SSL Version => NSS/3.28.4
PHP Warning: Unknown: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in Unknown on line 0
OpenSSL support => enabled
OpenSSL Library Version => OpenSSL 1.0.2k-fips 26 Jan 2017
OpenSSL Header Version => OpenSSL 1.0.2k-fips 26 Jan 2017
Native OpenSSL support => enabled

удалял php и ставил php, php56,php70 и везде NSS
как включить OpenSSL?

Ответ на: комментарий от Pinkbyte

мне нужно чтобы php curl открывал https адрес
на другом линуксе с openssl curl открывает https
на centos с nss пишет ошибку

kommersant ★★
() автор топика
Ответ на: комментарий от Pinkbyte

обнаружил что в centos 6 скрипт работает
nss у обоих центос

kommersant ★★
() автор топика
Ответ на: комментарий от Pinkbyte

[root@]# sestatus
SELinux status: disabled
[root@]# ls -lah /etc/pki/
total 56K
drwxr-xr-x. 12 root root 4,0K Мар 14 03:28 .
drwxr-xr-x. 88 root root 12K Мар 15 05:15 ..
drwxr-xr-x. 6 root root 4,0K Авг 4 2017 CA
drwxr-xr-x. 4 root root 4,0K Мар 14 03:24 ca-trust
drwxr-xr-x. 4 root root 4,0K Мар 14 03:28 dovecot
drwxr-xr-x. 2 root root 4,0K Мар 14 03:24 java
drwxr-xr-x. 2 root root 4,0K Мар 14 03:28 nssdb
drwxr-xr-x 2 root root 4,0K Мар 14 03:28 nss-legacy
drwxr-xr-x. 2 root root 4,0K Фев 23 2016 product
drwxr-xr-x. 2 root root 4,0K Мар 14 03:22 rpm-gpg
drwx------. 2 root root 4,0K Авг 6 2017 rsyslog
drwxr-xr-x. 5 root root 4,0K Мар 14 03:25 tls
[root@]# ls -lah /etc/pki/nssdb/
total 132K
drwxr-xr-x. 2 root root 4,0K Мар 14 03:28 .
drwxr-xr-x. 12 root root 4,0K Мар 14 03:28 ..
-rw-r--r-- 1 root root 64K Окт 19 12:43 cert8.db
-rw-r--r--. 1 root root 9,0K Фев 23 2016 cert9.db
-rw-r--r-- 1 root root 16K Окт 19 12:43 key3.db
-rw-r--r--. 1 root root 11K Фев 23 2016 key4.db
-rw-r--r-- 1 root root 451 Окт 19 12:43 pkcs11.txt
-rw-r--r-- 1 root root 16K Окт 19 12:43 secmod.db

на центос 6 те же значения и там работает

kommersant ★★
() автор топика

как включить OpenSSL?

пересобрать curl с зависимостью от openssl, как это возможно во FreeBSD:

> pkg info curl
curl-7.59.0
Name           : curl
Version        : 7.59.0
Installed on   : Wed Mar 14 23:26:33 2018 MSK
Origin         : ftp/curl
Architecture   : FreeBSD:11:amd64
Prefix         : /usr/local
Categories     : www ftp net ipv6
Licenses       : MIT
Maintainer     : sunpoet@FreeBSD.org
WWW            : https://curl.haxx.se/
Comment        : Command line tool and library for transferring data with URLs
Options        :
	BROTLI         : on
	CARES          : off
	CA_BUNDLE      : on
	COOKIES        : on
	CURL_DEBUG     : off
	DEBUG          : off
	DICT           : on
	DOCS           : off
	EXAMPLES       : off
	FTP            : on
	GNUTLS         : off
	GOPHER         : off
	GSSAPI_BASE    : on
	GSSAPI_HEIMDAL : off
	GSSAPI_MIT     : off
	GSSAPI_NONE    : off
	HTTP           : on
	HTTP2          : on
	IDN            : on
	IMAP           : off
	IPV6           : on
	LDAP           : off
	LDAPS          : off
	LIBSSH2        : off
	METALINK       : off
	NSS            : off
	OPENSSL        : on
	POLARSSL       : off
	POP3           : off
	PROXY          : on
	PSL            : off
	RTMP           : on
	RTSP           : on
	SMB            : off
	SMTP           : off
	TELNET         : off
	TFTP           : off
	THREADED_RESOLVER: on
	TLS_SRP        : on
	WOLFSSL        : off
Shared Libs required:
	libidn2.so.0
	libbrotlidec.so.1
	libnghttp2.so.14
	librtmp.so.1
Shared Libs provided:
	libcurl.so.4
Annotations    :
	FreeBSD_version: 1101511
	cpe            : cpe:2.3:a:haxx:curl:7.59.0:::::freebsd11:x64
Flat size      : 2.33MiB
Description    :
curl is used in command lines or scripts to transfer data. It is also used in
cars, television sets, routers, printers, audio equipment, mobile phones,
tablets, settop boxes, media players and is the internet transfer backbone for
thousands of software applications affecting billions of humans daily.

It supports DICT, FILE, FTP, FTPS, Gopher, HTTP, HTTPS, IMAP, IMAPS, LDAP,
LDAPS, POP3, POP3S, RTMP, RTSP, SCP, SFTP, SMB, SMBS, SMTP, SMTPS, Telnet and
TFTP. curl supports SSL certificates, HTTP POST, HTTP PUT, FTP uploading, HTTP
form based upload, proxies, HTTP/2, cookies, user+password authentication
(Basic, Plain, Digest, CRAM-MD5, NTLM, Negotiate and Kerberos), file transfer
resume, proxy tunneling and more.

WWW: https://curl.haxx.se/

iZEN ★★★★★
()
Ответ на: комментарий от iZEN

пересобирать не вижу смысла потому что на другой центос6 с nss все работает

kommersant ★★
() автор топика
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.