お知らせ

  • 利用規約を守って投稿してください。また、よくある質問および投稿の手引きも参照してください。
  • メッセージの投稿にはアカウントが必要です。未登録の方は、ユーザ登録ページからアカウントを作成することができます。

#1 2019-07-09 16:52:57

roswell
メンバ
登録日: 2008-10-30

Local の IMAP port に、openssl で接続すると "wrong version number"

Linuxでも同様の環境を設定する前に、Window環境で試しているのですが、
自己解決できないので、ご教示いただけますでしょうか?

■環境
Windows10
IMAP 中継サーバ davmail
local IMAP port: 1143
No SSL

local の  IMAP port  に、openssl で接続すると、
下記のようなエラーが出て、
wrong version number
になってしまいます。

Webで検索しましたが、自己解決できず。
何が悪いのか、ご教示いただけますでしょうか?

コード:

~> openssl s_client -connect localhost:1143 -debug
CONNECTED(00000170)
write to 0x755f80 [0x29ae800] (293 bytes => 293 (0x125))
0000 - 16 03 01 01 20 01 00 01-1c 03 03 5c 28 f6 cb f2   .... ......\(...
0010 - bb 28 a3 97 3d 78 26 86-d3 d5 93 05 40 72 bc a6   .(..=x&.....@r..
0020 - bb 16 f6 0f 1c 9f 31 60-7c 59 cb 20 7e 95 4e b2   ......1`|Y. ~.N.
0030 - e1 4f e1 18 a0 58 cf 0d-9a 81 36 94 2a 85 c7 df   .O...X....6.*...
0040 - 60 9a fe 65 3c 8d b7 1b-ff 59 fc 40 00 3e 13 02   `..e<....Y.@.>..
0050 - 13 03 13 01 c0 2c c0 30-00 9f cc a9 cc a8 cc aa   .....,.0........
0060 - c0 2b c0 2f 00 9e c0 24-c0 28 00 6b c0 23 c0 27   .+./...$.(.k.#.'
0070 - 00 67 c0 0a c0 14 00 39-c0 09 c0 13 00 33 00 9d   .g.....9.....3..
0080 - 00 9c 00 3d 00 3c 00 35-00 2f 00 ff 01 00 00 95   ...=.<.5./......
0090 - 00 0b 00 04 03 00 01 02-00 0a 00 0c 00 0a 00 1d   ................
00a0 - 00 17 00 1e 00 19 00 18-00 23 00 00 00 16 00 00   .........#......
00b0 - 00 17 00 00 00 0d 00 30-00 2e 04 03 05 03 06 03   .......0........
00c0 - 08 07 08 08 08 09 08 0a-08 0b 08 04 08 05 08 06   ................
00d0 - 04 01 05 01 06 01 03 03-02 03 03 01 02 01 03 02   ................
00e0 - 02 02 04 02 05 02 06 02-00 2b 00 09 08 03 04 03   .........+......
00f0 - 03 03 02 03 01 00 2d 00-02 01 01 00 33 00 26 00   ......-.....3.&.
0100 - 24 00 1d 00 20 3d a1 70-10 4d 23 b1 4d 32 4c 09   $... =.p.M#.M2L.
0110 - f3 63 e7 69 18 d7 8a 73-16 56 fd a2 ee 83 87 6b   .c.i...s.V.....k
0120 - 35 37 72 da 18                                    57r..
read from 0x755f80 [0x29a55e3] (5 bytes => 5 (0x5))
0000 - 2a 20 4f 4b 20                                    * OK
---
no peer certificate available
---
No client certificate CA names sent
---
SSL handshake has read 5 bytes and written 293 bytes
Verification: OK
---
New, (NONE), Cipher is (NONE)
Secure Renegotiation IS NOT supported
Compression: NONE
Expansion: NONE
No ALPN negotiated
Early data was not sent
Verify return code: 0 (ok)
---
read from 0x755f80 [0x6cf790] (8192 bytes => 94 (0x5E))
0000 - 5b 43 41 50 41 42 49 4c-49 54 59 20 49 4d 41 50   [CAPABILITY IMAP
0010 - 34 52 45 56 31 20 41 55-54 48 3d 4c 4f 47 49 4e   4REV1 AUTH=LOGIN
0020 - 20 4d 4f 56 45 20 53 50-45 43 49 41 4c 2d 55 53    MOVE SPECIAL-US
0030 - 45 5d 20 49 4d 41 50 34-72 65 76 31 20 44 61 76   E] IMAP4rev1 Dav
0040 - 4d 61 69 6c 20 35 2e 32-2e 30 2d 32 39 36 31 20   Mail 5.2.0-2961
0050 - 73 65 72 76 65 72 20 72-65 61 64 79 0d 0a         server ready..
read from 0x755f80 [0x6cf790] (8192 bytes => 42 (0x2A))
0000 - 16 03 01 01 20 42 41 44-20 63 6f 6d 6d 61 6e 64   .... BAD command
0010 - 20 61 75 74 68 65 6e 74-69 63 61 74 69 6f 6e 20    authentication
0020 - 72 65 71 75 69 72 65 64-0d 0a                     required..
read from 0x755f80 [0x6cf790] (8192 bytes => 127 (0x7F))
0000 - ef bf bd ef bf bd 36 ef-bf bd 2a ef bf bd ef bf   ......6...*.....
0010 - bd ef bf bd 60 ef bf bd-ef bf bd 65 3c ef bf bd   ....`......e<...
0020 - ef bf bd 1b ef bf bd 59-ef bf bd 40 00 3e 13 02   .......Y...@.>..
0030 - 13 03 13 01 ef bf bd 2c-ef bf bd 30 00 ef bf bd   .......,...0....
0040 - cc a9 cc a8 cc aa ef bf-bd 2b ef bf bd 2f 00 ef   .........+.../..
0050 - bf bd ef bf bd 24 ef bf-bd 28 00 6b ef bf bd 23   .....$...(.k...#
0060 - ef bf bd 27 00 67 ef bf-bd 20 42 41 44 20 6d 69   ...'.g... BAD mi
0070 - 73 73 69 6e 67 20 63 6f-6d 6d 61 6e 64 0d 0a      ssing command..
read from 0x755f80 [0x6cf790] (8192 bytes => 73 (0x49))
0000 - ef bf bd 14 00 39 ef bf-bd 09 ef bf bd 13 00 33   .....9.........3
0010 - 00 ef bf bd 00 ef bf bd-00 3d 00 3c 00 35 00 2f   .........=.<.5./
0020 - 00 ef bf bd 01 00 00 ef-bf bd 00 0b 00 04 03 00   ................
0030 - 01 02 00 20 42 41 44 20-6d 69 73 73 69 6e 67 20   ... BAD missing
0040 - 63 6f 6d 6d 61 6e 64 0d-0a                        command..
read from 0x755f80 [0x6cf790] (8192 bytes => 25 (0x19))
0000 - 00 0c 00 20 42 41 44 20-6d 69 73 73 69 6e 67 20   ... BAD missing
0010 - 63 6f 6d 6d 61 6e 64 0d-0a                        command..
read from 0x755f80 [0x6cf790] (8192 bytes => 45 (0x2D))
0000 - 00 1d 00 17 00 1e 00 19-00 18 00 23 00 00 00 16   ...........#....
0010 - 00 00 00 17 00 00 00 20-42 41 44 20 6d 69 73 73   ....... BAD miss
0020 - 69 6e 67 20 63 6f 6d 6d-61 6e 64 0d 0a            ing command..
read from 0x755f80 [0x6cf790] (8192 bytes => 39 (0x27))
0000 - 00 30 00 2e 04 03 05 03-06 03 08 07 08 08 08 09   .0..............
0010 - 08 20 42 41 44 20 6d 69-73 73 69 6e 67 20 63 6f   . BAD missing co
0020 - 6d 6d 61 6e 64 0d 0a                              mmand..
read from 0x755f80 [0x6cf790] (8192 bytes => 98 (0x62))
0000 - 08 0b 08 04 08 05 08 06-04 01 05 01 06 01 03 03   ................
0010 - 02 03 03 01 02 01 03 02-02 02 04 02 05 02 06 02   ................
0020 - 00 2b 00 09 08 03 04 03-03 03 02 03 01 00 2d 00   .+............-.
0030 - 02 01 01 00 33 00 26 00-24 00 1d 00 20 42 41 44   ....3.&.$... BAD
0040 - 20 63 6f 6d 6d 61 6e 64-20 61 75 74 68 65 6e 74    command authent
0050 - 69 63 61 74 69 6f 6e 20-72 65 71 75 69 72 65 64   ication required
0060 - 0d 0a                                             ..
read from 0x755f80 [0x6cf790] (8192 bytes => 0 (0x0))
4172:error:1408F10B:SSL routines:ssl3_get_record:wrong version number:../openssl-1.1.1c/ssl/record/ssl3_record.c:331:

オフライン

 

Board footer

Powered by FluxBB