LINUX.ORG.RU

Сообщения Vo1t

 

Ошибка SSL unknown protocol при подключении к веб-серверу

Здравствуйте. Сайт работает нормально, если открывать из браузера, но другие программы с ним не работают. Раньше с подобным не сталкивался, доступа к конфигам нет, но хочется выяснить , почему так происходит.

Например,

openssl s_client -connect host:443 -state -nbio_test -debug -showcerts

Выводит следующее

CONNECTED(00000003)

SSL_connect:before/connect initialization

write to 0x94933b8 [0x9493420] (121 bytes => 3 (0x3))

0000 - 80 77 01 .w.

write to 0x94933b8 [0x9493423] (118 bytes => -1 (0xFFFFFFFF))

SSL_connect:error in SSLv2/v3 write client hello B

write W BLOCK

write to 0x94933b8 [0x9493423] (118 bytes => 4 (0x4))

0000 - 03 01 00 4e ...N

write to 0x94933b8 [0x9493427] (114 bytes => -1 (0xFFFFFFFF))

SSL_connect:error in SSLv2/v3 write client hello B

write W BLOCK

write to 0x94933b8 [0x9493427] (114 bytes => 6 (0x6))

0006 - <SPACES/NULS>

write to 0x94933b8 [0x949342d] (108 bytes => 6 (0x6))

0000 - 39 00 00 38 9..8

0006 - <SPACES/NULS>

write to 0x94933b8 [0x9493433] (102 bytes => 1 (0x1))

0000 - 35 5

write to 0x94933b8 [0x9493434] (101 bytes => 6 (0x6))

0000 - 00 00 16 00 00 13 ......

write to 0x94933b8 [0x949343a] (95 bytes => 4 (0x4))

0000 - 00 00 0a 07 ....

write to 0x94933b8 [0x949343e] (91 bytes => 1 (0x1))

0001 - <SPACES/NULS>

write to 0x94933b8 [0x949343f] (90 bytes => 1 (0x1))

0000 - c0 .

write to 0x94933b8 [0x9493440] (89 bytes => 5 (0x5))

0000 - 00 00 33 ..3

0005 - <SPACES/NULS>

write to 0x94933b8 [0x9493445] (84 bytes => -1 (0xFFFFFFFF))

SSL_connect:error in SSLv2/v3 write client hello B

write W BLOCK

write to 0x94933b8 [0x9493445] (84 bytes => 2 (0x2))

0000 - 32 2

0002 - <SPACES/NULS>

write to 0x94933b8 [0x9493447] (82 bytes => 2 (0x2))

0000 - 00 2f ./

write to 0x94933b8 [0x9493449] (80 bytes => -1 (0xFFFFFFFF))

SSL_connect:error in SSLv2/v3 write client hello B

write W BLOCK

write to 0x94933b8 [0x9493449] (80 bytes => 7 (0x7))

0000 - 03 00 80 00 00 05 ......

0007 - <SPACES/NULS>

write to 0x94933b8 [0x9493450] (73 bytes => -1 (0xFFFFFFFF))

SSL_connect:error in SSLv2/v3 write client hello B

write W BLOCK

write to 0x94933b8 [0x9493450] (73 bytes => -1 (0xFFFFFFFF))

SSL_connect:error in SSLv2/v3 write client hello B

write W BLOCK

write to 0x94933b8 [0x9493450] (73 bytes => -1 (0xFFFFFFFF))

SSL_connect:error in SSLv2/v3 write client hello B

write W BLOCK

write to 0x94933b8 [0x9493450] (73 bytes => 5 (0x5))

0000 - 00 04 01 00 80 .....

write to 0x94933b8 [0x9493455] (68 bytes => 3 (0x3))

0000 - 00 00 15 ...

write to 0x94933b8 [0x9493458] (65 bytes => 1 (0x1))

0001 - <SPACES/NULS>

write to 0x94933b8 [0x9493459] (64 bytes => 4 (0x4))

0000 - 00 12 ..

0004 - <SPACES/NULS>

write to 0x94933b8 [0x949345d] (60 bytes => 6 (0x6))

0000 - 09 06 00 40 ...@

0006 - <SPACES/NULS>

write to 0x94933b8 [0x9493463] (54 bytes => 6 (0x6))

0000 - 14 00 00 11 ....

0006 - <SPACES/NULS>

write to 0x94933b8 [0x9493469] (48 bytes => 7 (0x7))

0000 - 08 00 00 06 04 00 80 .......

write to 0x94933b8 [0x9493470] (41 bytes => 5 (0x5))

0000 - 00 00 03 02 ....

0005 - <SPACES/NULS>

write to 0x94933b8 [0x9493475] (36 bytes => 3 (0x3))

0000 - 80 .

0003 - <SPACES/NULS>

write to 0x94933b8 [0x9493478] (33 bytes => 5 (0x5))

0000 - ff 62 20 37 3f .b 7?

write to 0x94933b8 [0x949347d] (28 bytes => 4 (0x4))

0000 - a7 8f 78 9e ..x.

write to 0x94933b8 [0x9493481] (24 bytes => 7 (0x7))

0000 - 1e df 22 15 cd cd 35 .."...5

write to 0x94933b8 [0x9493488] (17 bytes => 4 (0x4))

0000 - 4c df a4 d9 L...

write to 0x94933b8 [0x949348c] (13 bytes => 5 (0x5))

0000 - e7 e3 50 1d 7c ..P.|

write to 0x94933b8 [0x9493491] (8 bytes => -1 (0xFFFFFFFF))

SSL_connect:error in SSLv2/v3 write client hello B

write W BLOCK

write to 0x94933b8 [0x9493491] (8 bytes => 6 (0x6))

0000 - bd 5f 4b 2f f0 b1 ._K/..

write to 0x94933b8 [0x9493497] (2 bytes => 1 (0x1))

0000 - 44 D

write to 0x94933b8 [0x9493498] (1 bytes => 1 (0x1))

0000 - a3 .

SSL_connect:SSLv2/v3 write client hello B

read from 0x94933b8 [0x9498980] (7 bytes => 4 (0x4))

0000 - 3c 68 74 6d <htm

read from 0x94933b8 [0x9498984] (3 bytes => -1 (0xFFFFFFFF))

SSL_connect:error in SSLv2/v3 read server hello A

write R BLOCK

read from 0x94933b8 [0x9498984] (3 bytes => 2 (0x2))

0000 - 6c 3e l>

read from 0x94933b8 [0x9498986] (1 bytes => -1 (0xFFFFFFFF))

SSL_connect:error in SSLv2/v3 read server hello A

read R BLOCK

read from 0x94933b8 [0x9498986] (1 bytes => 1 (0x1))

0000 - 0d .

SSL_connect:error in SSLv2/v3 read server hello A

21764:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown

protocol:s23_clnt.c:601:

 ,

Vo1t
()

Установка переменной окружения в командной строке

Сорри за глупый вопрос, но найти не могу вообще нигде. Есть программа, где функция main такая:

int main(int argc, char **argv, char **envp)

Допустим, что я хочу ее запустить и при этом установить PATH в значение, допустим, /tmp/path Как будет выглядеть командная строка.

Vo1t
()

RSS подписка на новые темы