Hi
First sorry for my English. I would like to reward the solution to this problem I am testing the web server with SSL. I have no problems with demo certificates included, but I bought a GoDaddy certificate and my browser shows me the error: Error 107 (net :: ERR_SSL_PROTOCOL_ERROR) What am I doing wrong? Explorer shows me the following information about the certificate: Version: 3 Signature Algorithm: sha1RSA Signature hash: sha1 issuer: SERIALNUMBER = 10688435 CN = Starfield Secure Certification Authority OU = http://certificates.starfieldtech.com/repository O = Starfield Technologies, Inc. L = Scottsdale S = Arizona C = U.S. Identification algorithm: sha1 Some properties: SSLContext.SslVersionMethod: = sslV23_SERVER SSLContext.VerifyPeer: = False; SslContext1.SslCAPath: =''; SslContext1.SslCertFile: = <cert file> SslContext1.SslPassPhrase: = ******** SslContext1.SslPrivKeyFile: = key <private file> SslContext1.SslCAFile: = <ca file> Thanks in advance
18:32:16:689 0059CEE0 Listening 18:32:16:698 SslHttpServer1 started 18:32:16:700 0059D760 Listening 18:32:16:700 HttpServer2 started 18:32:22:971 0059CEE0 Do_FD_ACCEPT 332 18:32:22:976 00582350 Dup accepting accepted socket = 376 18:32:22:980 00582350 DupConnected 18:32:22:984 00582350 AcceptSslHandshake 376 18:32:23:009 InitCtx> OpenSSL version: OpenSSL 0.9.8k 25 Mar 2009 18:32:23:226 00582350 InitSSLConnection 376 18:32:23:229 00582350 SessionIDContext: WebServ_Test 376 18:32:23:234 00582350 BIO_ctrl(sslbio, BIO_C_SET_SSL, BIO_NOCLOSE, 0x28C2DC8) = 1 [1] 18:32:23:239 ICB> SSL_CB_HANDSHAKE_START 18:32:23:244 ICB> SSL_accept: before/accept initialization 18:32:23:249 ICB> SSL_accept: error in SSLv2/v3 read client hello A 18:32:23:254 00582350 BIO_read(sslbio, 0x1, 0) = -1 [2] 18:32:23:259 00582350 BIO_should_retry(sslbio) = 1 [3] 18:32:23:264 00582350 TriggerEvent sslFdRead 376 18:32:23:270 00582350 TriggerEvent sslFdWrite 376 18:32:23:275 0059CEE0 Do_FD_ACCEPT 332 18:32:23:280 00582D80 Dup accepting accepted socket = 384 18:32:23:285 00582D80 DupConnected 18:32:23:290 00582D80 AcceptSslHandshake 384 18:32:23:295 00582D80 InitSSLConnection 384 18:32:23:300 00582D80 SessionIDContext: WebServ_Test 384 18:32:23:306 00582D80 BIO_ctrl(sslbio, BIO_C_SET_SSL, BIO_NOCLOSE, 0x28BB188) = 1 [4] 18:32:23:311 ICB> SSL_CB_HANDSHAKE_START 18:32:23:315 ICB> SSL_accept: before/accept initialization 18:32:23:321 ICB> SSL_accept: error in SSLv2/v3 read client hello A 18:32:23:326 00582D80 BIO_read(sslbio, 0x1, 0) = -1 [5] 18:32:23:331 00582D80 BIO_should_retry(sslbio) = 1 [6] 18:32:23:335 00582D80 TriggerEvent sslFdRead 384 18:32:23:341 00582D80 TriggerEvent sslFdWrite 384 18:32:23:346 00582350 TCustomSslWSocket.Do_FD_READ 376 18:32:23:350 00582350 BIO_ctrl_get_read_request(nbio) = 11 [7] 18:32:23:356 00582350 Winsock recv( 376, 0x18DD10, 11, 0) = 11 [8] 18:32:23:359 00582350 BIO_write(nbio, 0x18DD10, 11) = 11 [9] 18:32:23:364 00582350 BIO_ctrl(nbio, BIO_CTRL_FLUSH, 0, 0x0) = 1 [10] 18:32:23:369 ICB> SSL_accept: error in SSLv3 read client hello B 18:32:23:375 ICB> SSL_accept: error in SSLv3 read client hello B 18:32:23:378 00582350 BIO_read(sslbio, 0x1, 0) = -1 [11] 18:32:23:384 00582350 BIO_should_retry(sslbio) = 1 [12] 18:32:23:389 00582350 TriggerEvents 376 SslState: SSL_ST_INIT // MayFD_Read=0 MayDoRecv=-1 MayFD_Write=-1 MaySslTryToSend=-1 bSslAllSent=0 bAllSent=-1 18:32:23:394 00582350 BIO_ctrl_pending(nbio) = 0 [13] 18:32:23:399 00582350 BIO_ctrl_get_write_guarantee(nbio) = 4096 [14] 18:32:23:403 00582350 TCustomSslWSocket.Do_FD_WRITE 376 18:32:23:409 00582350 BIO_ctrl_pending(nbio) = 0 [15] 18:32:23:414 00582350 BIO_read(nbio, 0x18BD0C, 0) = 0 [16] 18:32:23:420 00582350 TriggerEvents 376 SslState: SSL_ST_INIT // MayFD_Read=0 MayDoRecv=-1 MayFD_Write=-1 MaySslTryToSend=-1 bSslAllSent=0 bAllSent=-1 18:32:23:425 00582350 BIO_ctrl_pending(nbio) = 0 [17] 18:32:23:431 00582350 BIO_ctrl_get_write_guarantee(nbio) = 4096 [18] 18:32:23:435 SslAsyncSelect 376, 1 FD_READ 18:32:23:442 00582350 TCustomSslWSocket.Do_FD_READ 376 18:32:23:447 00582350 BIO_ctrl_get_read_request(nbio) = 79 [19] 18:32:23:452 00582350 Winsock recv( 376, 0x18DCE8, 79, 0) = 79 [20] 18:32:23:458 00582350 BIO_write(nbio, 0x18DCE8, 79) = 79 [21] 18:32:23:463 00582350 BIO_ctrl(nbio, BIO_CTRL_FLUSH, 0, 0x0) = 1 [22] 18:32:23:467 ICB> SSL_accept: SSLv3 read client hello B 18:32:23:473 ICB> SSL_accept: SSLv3 write server hello A 18:32:23:479 ICB> SSL_accept: SSLv3 write certificate A 18:32:23:483 ICB> SSL_accept: SSLv3 write server done A 18:32:23:492 ICB> SSL_accept: error in SSLv3 flush data 18:32:23:496 00582350 BIO_read(sslbio, 0x1, 0) = -1 [23] 18:32:23:501 00582350 BIO_should_retry(sslbio) = 1 [24] 18:32:23:506 00582350 TriggerEvents 376 SslState: SSL_ST_INIT // MayFD_Read=0 MayDoRecv=-1 MayFD_Write=-1 MaySslTryToSend=-1 bSslAllSent=0 bAllSent=-1 18:32:23:511 00582350 BIO_ctrl_pending(nbio) = 4096 [25] 18:32:23:516 00582350 BIO_ctrl_get_write_guarantee(nbio) = 4096 [26] 18:32:23:522 SslAsyncSelect 376, 2 FD_WRITE 18:32:23:527 00582350 TCustomSslWSocket.Do_FD_WRITE 376 18:32:23:531 00582350 BIO_ctrl_pending(nbio) = 4096 [27] 18:32:23:537 00582350 BIO_read(nbio, 0x18BD00, 4096) = 4096 [28] 18:32:23:542 00582350 my_RealSend (0x178, 1621248, 4096) = 4096 [29] 18:32:23:547 00582350 BIO_ctrl_pending(nbio) = 0 [30] 18:32:23:551 00582350 TriggerEvents 376 SslState: SSL_ST_INIT // MayFD_Read=0 MayDoRecv=-1 MayFD_Write=-1 MaySslTryToSend=-1 bSslAllSent=0 bAllSent=-1 18:32:23:555 00582350 BIO_ctrl_pending(nbio) = 0 [31] 18:32:23:560 00582350 BIO_ctrl_get_write_guarantee(nbio) = 4096 [32] 18:32:23:565 00582D80 TCustomSslWSocket.Do_FD_READ 384 18:32:23:571 00582D80 BIO_ctrl_get_read_request(nbio) = 11 [33] 18:32:23:575 00582D80 Winsock recv( 384, 0x18DD10, 11, 0) = 11 [34] 18:32:23:580 00582D80 BIO_write(nbio, 0x18DD10, 11) = 11 [35] 18:32:23:585 00582D80 BIO_ctrl(nbio, BIO_CTRL_FLUSH, 0, 0x0) = 1 [36] 18:32:23:590 ICB> SSL_accept: error in SSLv3 read client hello B 18:32:23:595 ICB> SSL_accept: error in SSLv3 read client hello B 18:32:23:601 00582D80 BIO_read(sslbio, 0x1, 0) = -1 [37] 18:32:23:606 00582D80 BIO_should_retry(sslbio) = 1 [38] 18:32:23:611 00582D80 TriggerEvents 384 SslState: SSL_ST_INIT // MayFD_Read=0 MayDoRecv=-1 MayFD_Write=-1 MaySslTryToSend=-1 bSslAllSent=0 bAllSent=-1 18:32:23:616 00582D80 BIO_ctrl_pending(nbio) = 0 [39] 18:32:23:621 00582D80 BIO_ctrl_get_write_guarantee(nbio) = 4096 [40] 18:32:23:627 00582D80 TCustomSslWSocket.Do_FD_WRITE 384 18:32:23:632 00582D80 BIO_ctrl_pending(nbio) = 0 [41] 18:32:23:637 00582D80 BIO_read(nbio, 0x18BD0C, 0) = 0 [42] 18:32:23:642 00582D80 TriggerEvents 384 SslState: SSL_ST_INIT // MayFD_Read=0 MayDoRecv=-1 MayFD_Write=-1 MaySslTryToSend=-1 bSslAllSent=0 bAllSent=-1 18:32:23:647 00582D80 BIO_ctrl_pending(nbio) = 0 [43] 18:32:23:652 00582D80 BIO_ctrl_get_write_guarantee(nbio) = 4096 [44] 18:32:23:657 SslAsyncSelect 384, 1 FD_READ 18:32:23:662 00582D80 TCustomSslWSocket.Do_FD_READ 384 18:32:23:667 00582D80 BIO_ctrl_get_read_request(nbio) = 79 [45] 18:32:23:674 00582D80 Winsock recv( 384, 0x18DCE8, 79, 0) = 79 [46] 18:32:23:679 00582D80 BIO_write(nbio, 0x18DCE8, 79) = 79 [47] 18:32:23:684 00582D80 BIO_ctrl(nbio, BIO_CTRL_FLUSH, 0, 0x0) = 1 [48] 18:32:23:689 ICB> SSL_accept: SSLv3 read client hello B 18:32:23:694 ICB> SSL_accept: SSLv3 write server hello A 18:32:23:700 ICB> SSL_accept: SSLv3 write certificate A 18:32:23:705 ICB> SSL_accept: SSLv3 write server done A 18:32:23:710 ICB> SSL_accept: error in SSLv3 flush data 18:32:23:715 00582D80 BIO_read(sslbio, 0x1, 0) = -1 [49] 18:32:23:721 00582D80 BIO_should_retry(sslbio) = 1 [50] 18:32:23:726 00582D80 TriggerEvents 384 SslState: SSL_ST_INIT // MayFD_Read=0 MayDoRecv=-1 MayFD_Write=-1 MaySslTryToSend=-1 bSslAllSent=0 bAllSent=-1 18:32:23:731 00582D80 BIO_ctrl_pending(nbio) = 4096 [51] 18:32:23:736 00582D80 BIO_ctrl_get_write_guarantee(nbio) = 4096 [52] 18:32:23:741 SslAsyncSelect 384, 2 FD_WRITE 18:32:23:746 00582D80 TCustomSslWSocket.Do_FD_WRITE 384 18:32:23:752 00582D80 BIO_ctrl_pending(nbio) = 4096 [53] 18:32:23:757 00582D80 BIO_read(nbio, 0x18BD00, 4096) = 4096 [54] 18:32:23:762 00582D80 my_RealSend (0x180, 1621248, 4096) = 4096 [55] 18:32:23:767 00582D80 BIO_ctrl_pending(nbio) = 0 [56] 18:32:23:773 00582D80 TriggerEvents 384 SslState: SSL_ST_INIT // MayFD_Read=0 MayDoRecv=-1 MayFD_Write=-1 MaySslTryToSend=-1 bSslAllSent=0 bAllSent=-1 18:32:23:778 00582D80 BIO_ctrl_pending(nbio) = 0 [57] 18:32:23:784 00582D80 BIO_ctrl_get_write_guarantee(nbio) = 4096 [58] 18:32:23:789 00582350 TCustomSslWSocket.Do_FD_READ 376 18:32:23:795 00582350 BIO_ctrl_get_read_request(nbio) = 0 [59] 18:32:23:800 00582350 BIO_ctrl_get_write_guarantee(nbio) = 4096 [60] 18:32:23:806 00582350 Winsock recv( 376, 0x18DD10, 4096, 0) = -1 [61] 18:32:23:811 00582350 TriggerEvents 376 SslState: SSL_ST_INIT // MayFD_Read=0 MayDoRecv=-1 MayFD_Write=-1 MaySslTryToSend=-1 bSslAllSent=0 bAllSent=-1 18:32:23:816 00582350 BIO_ctrl_pending(nbio) = 0 [62] 18:32:23:822 00582350 BIO_ctrl_get_write_guarantee(nbio) = 4096 [63] 18:32:23:827 00582350 TCustomSslWSocket.Do_FD_WRITE 376 18:32:23:832 00582350 BIO_ctrl_pending(nbio) = 0 [64] 18:32:23:838 00582350 BIO_read(nbio, 0x18BD0C, 0) = 0 [65] 18:32:23:843 00582350 TriggerEvents 376 SslState: SSL_ST_INIT // MayFD_Read=0 MayDoRecv=-1 MayFD_Write=-1 MaySslTryToSend=-1 bSslAllSent=0 bAllSent=-1 18:32:23:848 00582350 BIO_ctrl_pending(nbio) = 0 [66] 18:32:23:854 00582350 BIO_ctrl_get_write_guarantee(nbio) = 4096 [67] 18:32:23:859 00582350 TCustomSslWSocket.Do_FD_WRITE 376 18:32:23:865 00582350 BIO_ctrl_pending(nbio) = 0 [68] 18:32:23:871 00582350 BIO_read(nbio, 0x18BD0C, 0) = 0 [69] 18:32:23:876 00582350 TriggerEvents 376 SslState: SSL_ST_INIT // MayFD_Read=0 MayDoRecv=-1 MayFD_Write=-1 MaySslTryToSend=-1 bSslAllSent=0 bAllSent=-1 18:32:23:882 00582350 BIO_ctrl_pending(nbio) = 0 [70] 18:32:23:887 00582350 BIO_ctrl_get_write_guarantee(nbio) = 4096 [71] 18:32:23:892 00582D80 TCustomSslWSocket.Do_FD_READ 384 18:32:23:898 00582D80 BIO_ctrl_get_read_request(nbio) = 0 [72] 18:32:23:903 00582D80 BIO_ctrl_get_write_guarantee(nbio) = 4096 [73] 18:32:23:909 00582D80 Winsock recv( 384, 0x18DD10, 4096, 0) = -1 [74] 18:32:23:914 00582D80 TriggerEvents 384 SslState: SSL_ST_INIT // MayFD_Read=0 MayDoRecv=-1 MayFD_Write=-1 MaySslTryToSend=-1 bSslAllSent=0 bAllSent=-1 18:32:23:920 00582D80 BIO_ctrl_pending(nbio) = 0 [75] 18:32:23:925 00582D80 BIO_ctrl_get_write_guarantee(nbio) = 4096 [76] 18:32:23:930 00582D80 TCustomSslWSocket.Do_FD_WRITE 384 18:32:23:934 00582D80 BIO_ctrl_pending(nbio) = 0 [77] 18:32:23:940 00582D80 BIO_read(nbio, 0x18BD0C, 0) = 0 [78] 18:32:23:947 00582D80 TriggerEvents 384 SslState: SSL_ST_INIT // MayFD_Read=0 MayDoRecv=-1 MayFD_Write=-1 MaySslTryToSend=-1 bSslAllSent=0 bAllSent=-1 18:32:23:954 00582D80 BIO_ctrl_pending(nbio) = 0 [79] 18:32:23:961 00582D80 BIO_ctrl_get_write_guarantee(nbio) = 4096 [80] 18:32:23:967 00582D80 TCustomSslWSocket.Do_FD_WRITE 384 18:32:23:974 00582D80 BIO_ctrl_pending(nbio) = 0 [81] 18:32:23:980 00582D80 BIO_read(nbio, 0x18BD0C, 0) = 0 [82] 18:32:23:985 00582D80 TriggerEvents 384 SslState: SSL_ST_INIT // MayFD_Read=0 MayDoRecv=-1 MayFD_Write=-1 MaySslTryToSend=-1 bSslAllSent=0 bAllSent=-1 18:32:23:991 00582D80 BIO_ctrl_pending(nbio) = 0 [83] 18:32:23:997 00582D80 BIO_ctrl_get_write_guarantee(nbio) = 4096 [84] 18:32:36:651 00582D80 *CloseCalled 384 18:32:36:665 00582D80 SslInternalClose 384 18:32:36:680 00582D80 TCustomWSocket.Shutdown 1 384 18:32:36:689 00582D80 ResetSslSession -1 18:32:36:695 00582350 *CloseCalled 376 18:32:36:708 00582350 SslInternalClose 376 18:32:36:714 00582350 TCustomWSocket.Shutdown 1 376 18:32:36:719 00582350 ResetSslSession -1
-- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be