{"action":"created","issue":{"url":"https://api.github.com/repos/neutrinolabs/xrdp/issues/313","repository_url":"https://api.github.com/repos/neutrinolabs/xrdp","labels_url":"https://api.github.com/repos/neutrinolabs/xrdp/issues/313/labels{/name}","comments_url":"https://api.github.com/repos/neutrinolabs/xrdp/issues/313/comments","events_url":"https://api.github.com/repos/neutrinolabs/xrdp/issues/313/events","html_url":"https://github.com/neutrinolabs/xrdp/issues/313","id":131367399,"number":313,"title":"TLS not working in Ubuntu 12.04","user":{"login":"HenryJacques","id":11716929,"avatar_url":"https://avatars.githubusercontent.com/u/11716929?v=3","gravatar_id":"","url":"https://api.github.com/users/HenryJacques","html_url":"https://github.com/HenryJacques","followers_url":"https://api.github.com/users/HenryJacques/followers","following_url":"https://api.github.com/users/HenryJacques/following{/other_user}","gists_url":"https://api.github.com/users/HenryJacques/gists{/gist_id}","starred_url":"https://api.github.com/users/HenryJacques/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HenryJacques/subscriptions","organizations_url":"https://api.github.com/users/HenryJacques/orgs","repos_url":"https://api.github.com/users/HenryJacques/repos","events_url":"https://api.github.com/users/HenryJacques/events{/privacy}","received_events_url":"https://api.github.com/users/HenryJacques/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2016-02-04T14:40:42Z","updated_at":"2016-04-06T05:22:15Z","closed_at":null,"body":"Hello,\r\n\r\nI am using:\r\n- Ubuntu 12.04 64bits\r\n- xrdp devel branch and X11Rdp\r\n\r\nrdp security works fine, but when I switch to tls mstsc shows me the certificate and then loop forever...\r\nI have also tried with FreeRDP.\r\n\r\nThis is what I get in the log (I interrupted the connexion):\r\n\r\n> [20160204-15:35:06] [INFO ] A connection received from: 10.10.0.19 port 50642\r\n[20160204-15:35:06] [INFO ] An established connection closed to endpoint: 10.10.0.19:50642 - socket: 11\r\n[20160204-15:35:06] [INFO ] An established connection closed to endpoint: NULL:NULL - socket: 10\r\nssl_tls_accept: TLS connection accepted\r\nssl_tls_print_error: SSL_read: I/O error\r\nlibxrdp_force_read: error\r\nxrdp_process_main_loop: libxrdp_process_incomming failed\r\ngot XRDP SIGPIPE(13)\r\ngot XRDP SIGPIPE(13)\r\nssl_tls_print_error: SSL_shutdown: I/O error\r\n[20160204-15:35:06] [INFO ] An established connection closed to endpoint: NULL:NULL - socket: 11\r\nxrdp_mcs_disconnect - socket closed\r\n[20160204-15:35:06] [ERROR] Listening socket is in wrong state we terminate listener\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n>[20160204-15:35:19] [INFO ] A connection received from: 10.10.0.19 port 50645\r\n[20160204-15:35:19] [INFO ] An established connection closed to endpoint: 10.10.0.19:50645 - socket: 11\r\n[20160204-15:35:19] [INFO ] An established connection closed to endpoint: NULL:NULL - socket: 10\r\nssl_tls_accept: TLS connection accepted\r\ncolorDepth 0xca01 (0xca00 4bpp 0xca01 8bpp)\r\npostBeta2ColorDepth 0xca01 (0xca00 4bpp 0xca01 8bpp 0xca02 15bpp 0xca03 16bpp 0xca04 24bpp)\r\nhighColorDepth 0x0010 (0x0004 4bpp 0x0008 8bpp 0x000f 15bpp 0x0010 16 bpp 0x0018 24bpp)\r\nsupportedColorDepths 0x000f (0x0001 24bpp 0x0002 16bpp 0x0004 15bpp 0x0008 32bpp)\r\nearlyCapabilityFlags 0x07ad (0x0002 want32)\r\ngot client client connection type 0x00000007\r\nxrdp_sec_process_mcs_data_CS_SECURITY:\r\n  client supports 40 bit encryption\r\n  client supports 128 bit encryption\r\n  client supports 56 bit encryption\r\n  client supports fips encryption\r\nerror unknown xrdp_sec_process_mcs_data tag 0xc006 size 8\r\nerror unknown xrdp_sec_process_mcs_data tag 0xc00a size 8\r\nxrdp_sec_out_mcs_data: using no security\r\nssl_tls_print_error: SSL_write: I/O error\r\nxrdp_process_main_loop: libxrdp_process_incomming failed\r\nssl_tls_print_error: SSL_write: Failure in SSL library (protocol error?)\r\nssl_tls_print_error: SSL_shutdown: Failure in SSL library (protocol error?)\r\n[20160204-15:35:28] [INFO ] An established connection closed to endpoint: NULL:NULL - socket: 11\r\nxrdp_mcs_disconnect - socket closed\r\n[20160204-15:35:28] [ERROR] Listening socket is in wrong state we terminate listener\r\n"},"comment":{"url":"https://api.github.com/repos/neutrinolabs/xrdp/issues/comments/206123002","html_url":"https://github.com/neutrinolabs/xrdp/issues/313#issuecomment-206123002","issue_url":"https://api.github.com/repos/neutrinolabs/xrdp/issues/313","id":206123002,"user":{"login":"metalefty","id":941609,"avatar_url":"https://avatars.githubusercontent.com/u/941609?v=3","gravatar_id":"","url":"https://api.github.com/users/metalefty","html_url":"https://github.com/metalefty","followers_url":"https://api.github.com/users/metalefty/followers","following_url":"https://api.github.com/users/metalefty/following{/other_user}","gists_url":"https://api.github.com/users/metalefty/gists{/gist_id}","starred_url":"https://api.github.com/users/metalefty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/metalefty/subscriptions","organizations_url":"https://api.github.com/users/metalefty/orgs","repos_url":"https://api.github.com/users/metalefty/repos","events_url":"https://api.github.com/users/metalefty/events{/privacy}","received_events_url":"https://api.github.com/users/metalefty/received_events","type":"User","site_admin":false},"created_at":"2016-04-06T05:22:15Z","updated_at":"2016-04-06T05:22:15Z","body":"I built xrdp with `--enable-xrdpdebug` option and tried again. Here's the log.\r\n\r\n[xrdp-tls.txt](https://github.com/neutrinolabs/xrdp/files/205805/xrdp-tls.txt)\r\n"}}