LINUX.ORG.RU
ФорумAdmin

openssl не выполняет рукопожатие

 


0

2

Приветствую

Почему может не выполняться проверка сертификатов сервера???

Пробовал так

openssl s_client -connect fcm.googleapis.com:443

на одном дебиане выхлоп корректный

CONNECTED(00000003)
depth=2 C = US, O = Google Trust Services LLC, CN = GTS Root R1
verify return:1
depth=1 C = US, O = Google Trust Services LLC, CN = GTS CA 1C3
verify return:1
depth=0 CN = *.google.com
verify return:1
---
Certificate chain
 0 s:/CN=*.google.com
   i:/C=US/O=Google Trust Services LLC/CN=GTS CA 1C3
 1 s:/C=US/O=Google Trust Services LLC/CN=GTS CA 1C3
   i:/C=US/O=Google Trust Services LLC/CN=GTS Root R1
 2 s:/C=US/O=Google Trust Services LLC/CN=GTS Root R1
   i:/C=BE/O=GlobalSign nv-sa/OU=Root CA/CN=GlobalSign Root CA
---
Server certificate
-----BEGIN CERTIFICATE-----
MIIPBzCCDe+gAwIBAgIQKuaFLS3w+z4K/anwgexsvTANBgkqhkiG9w0BAQsFADBG
MQswCQYDVQQGEwJVUzEiMCAGA1UEChMZR29vZ2xlIFRydXN0IFNlcnZpY2VzIExM
QzETMBEGA1UEAxMKR1RTIENBIDFDMzAeFw0yMzA3MTcwODE2MzFaFw0yMzEwMDkw
ODE2MzBaMBcxFTATBgNVBAMMDCouZ29vZ2xlLmNvbTCCASIwDQYJKoZIhvcNAQEB
BQADggEPADCCAQoCggEBAMfBborGk6pXdukFvjev59Vz+nq4XsLmbYMMDQEtmSui
8wKv5LP9FxeOa4KyRJbGPajaCXFkV9wkMl5yrTY93bZ5uwMZDORRzUWylxwHlZxN
ks0/Jvjp/gUKtc+K0z5WxOnkq5V+rNpjMr6I6W0UAHHLqS+FjyKCV5b5qA2Jadz9
nvv3ddO6OuA1ozx/wGLY2j2k/27cl4ep6DbK8gDURrciy7zSzAsz1cFUBzAUEfpw
em2YppjmzCuey22gYHuFsXB5k4rzTSu9gwx3A6wooIsg54R+csY3dyNHvisWuC7w
2VlEQ87PeCshOWCfd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6ZeRVn4BEogjk6lgz5w7As6IEdGiz2kZNEp
saJVgbfkdHpVIsiXJBAKSD9gXbI58bxHtIMFAYd9LwwvG4P3yFnPoYiRhKXMBuWl
i906cqjelyUG4kjB+AwDcD837QDZC78fGLDwW9NsdwYyKgY2kBdbleeRwyXtigvw
IabvTdvYKuTK8R0l+DSMz6oKS9F2IU2QDTyO1CXGPU1mYQPmtV714sdzq3r9gZmP
rktC22JuuTQfLVs=
-----END CERTIFICATE-----
subject=/CN=*.google.com
issuer=/C=US/O=Google Trust Services LLC/CN=GTS CA 1C3
---
No client certificate CA names sent
Peer signing digest: SHA256
Server Temp Key: X25519, 253 bits
---
SSL handshake has read 7357 bytes and written 261 bytes
Verification: OK
---
New, TLSv1.2, Cipher is ECDHE-RSA-CHACHA20-POLY1305
Server public key is 2048 bit
Secure Renegotiation IS supported
Compression: NONE
Expansion: NONE
No ALPN negotiated
SSL-Session:
    Protocol  : TLSv1.2
    Cipher    : ECDHE-RSA-CHACHA20-POLY1305
    Session-ID: 6729DCD94FC7F482C061EBA85C6925EBBD3825F91A40308F66BE77408BDE82D3
    Session-ID-ctx:
    Master-Key: A6A142D3777B88391EF8FCDBF83251658DD54178E49FA90D4E19D940BBCC8976BEEFE8AEC4445BD65B9B1232258E91F9
    PSK identity: None
    PSK identity hint: None
    SRP username: None
    TLS session ticket lifetime hint: 100800 (seconds)
    TLS session ticket:
    0000 - 02 f4 dc 2a b0 9d 9e d3-84 56 19 15 ff 1c 8d eb   ...*.....V......
    0010 - 19 65 dc 84 fe c9 6a 7b-fe 89 44 6a e7 88 0f 20   .e....j{..Dj...
    0020 - 6c fa 03 b3 3d b6 0c f0-85 09 2a 26 a5 99 9f 25   l...=.....*&...%
    0030 - fa c3 0b 3d 56 58 96 95-1a 55 96 da 3b 90 07 bc   ...=VX...U..;...
    0040 - 66 54 e8 b7 ad 0d ef b6-9b ff 61 d4 34 f6 6e 03   fT........a.4.n.
    0050 - 3c 19 36 f7 6a fd 77 cf-b1 86 48 93 15 88 d7 40   <.6.j.w...H....@
    0060 - 7b 4d 5b 00 7f 44 ca c8-a9 d0 a3 31 5b e1 b7 2f   {M[..D.....1[../
    0070 - 5a 4e d9 8c e5 69 0b 18-ec 99 45 3a 54 16 f0 39   ZN...i....E:T..9
    0080 - cf 89 de 8d d5 3d 11 0b-e4 04 4e 54 46 a5 fe f8   .....=....NTF...
    0090 - db e9 57 49 c4 c1 b7 9a-84 fe 61 dc b5 bd 13 ed   ..WI......a.....
    00a0 - 2e 08 4e bb b0 f5 b7 d0-ec ae 63 59 1c 0b c7 96   ..N.......cY....
    00b0 - 43 33 2c d3 9e a7 bb b9-5b 30 57 36 a5 c3 b6 12   C3,.....[0W6....
    00c0 - 8e f1 e3 7a d0 fd f7 22-cc bf 1b c1 df f7 22 33   ...z..."......"3
    00d0 - 10 83 e6 3e cc c6 28 b6-c8 d8 4c 50 50 32 52 0d   ...>..(...LPP2R.
    00e0 - 2f 4c 31 d3 14                                    /L1..

    Start Time: 1691473119
    Timeout   : 7200 (sec)
    Verify return code: 0 (ok)
    Extended master secret: yes
---
read:errno=0

на другом вижу только висящее

CONNECTED(00000003)
★★★

версии дебиана одинаковые, на том что «не работает» можно сделать только так

openssl s_client -connect fcm.googleapis.com:443 -servername fcm.googleapis.com

видимо не хватает какой то дефолтной настройки, но какой не пойму…

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