{"id":6837,"date":"2014-04-23T08:11:18","date_gmt":"2014-04-23T08:11:18","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/04\/23\/problem-about-gnutls-collection-of-common-programming-errors\/"},"modified":"2014-04-23T08:11:18","modified_gmt":"2014-04-23T08:11:18","slug":"problem-about-gnutls-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/04\/23\/problem-about-gnutls-collection-of-common-programming-errors\/","title":{"rendered":"problem about gnutls-Collection of common programming errors"},"content":{"rendered":"<ul>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/5edd2c6ebbb9f48ae0e04ae10b8658ad?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nMartin Fejes<br \/>\nfacebook curl ssl facebook-php-sdk gnutls<br \/>\nI&#8217;m developing a Facebook canvas application and sometimes (3 times in one week) I get this error (to be honest, this time it&#8217;s a user getting the error):Fatal error: Uncaught CurlException: 52: GnuTLS recv error (-12): A TLS fatal alert has been received. thrown in \/myURL\/facebook-php-sdk-master\/src\/base_facebook.php on line 1031 myURL is the URL of my application&#8217;s original address (not the apps.facebook.com one).I can&#8217;t find the meaning of this error, the only thing I could guess is that it&#8217;s<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/ff8c776bd6d480f731ec63905fbc48be?s=128&amp;d=identicon&amp;r=PG\" \/><br \/>\nnepda<br \/>\nssl ssl-certificate openssl console gnutls<br \/>\non my server i have multiple virtual hosts with apache2. Some with domain *.example-one.org and some whith *.example-two.org. Each domain has it&#8217;s own wildcard certificate.When I fetch the certificate via openssl s_client the output is something like that:$ openssl s_client -connect sub.example-one.org:443 CONNECTED(00000003) [&#8230;] CN = *.example-two.org, emailAddress [&#8230;] verify error:num=18:self signed certificate verify return:1 [&#8230;] CN = *.example-two.org, emailAddress [&#8230;] verify return:<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/25bf97f9d19dd4973951c7ffbf437c75?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nEightBitTony<br \/>\nwindows ubuntu vsftpd filezilla gnutls<br \/>\nI&#8217;ve a problem about vsftpd server. I&#8217;ve created an vsftpd server with implicit ssl. It works perfectly with filezilla client on ubuntu 10.04, but when I run with filezilla client on windows, it got an error. The error was &#8220;GnuTLS error -12: A TLS fatal alert has been received.&#8221;This is the content of my vsftpd.conflisten=YES anonymous_enable=NO local_enable=YES write_enable=YES dirmessage_enable=YES use_localtime=YES xferlog_enable=YES connect_from_port_20=YES secure_chroot_dir=\/var\/run\/vsftpd\/e<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/02afeffcf2b0b2413404ccc8923966a1?s=128&amp;d=identicon&amp;r=PG\" \/><br \/>\nzero0<br \/>\nexim gnutls<br \/>\nMy exim server is showing the following error:TLS error on connection from xxxx.xxxx.xxxx. ([127.0.0.1]) [xxx.xxx.xxx.xxx] (gnutls_handshake): A TLS fatal alert has been received.I&#8217;m using the plain authentication and my settings are :plain_server:driver = plaintextpublic_name = PLAINserver_condition = &#8220;${if crypteq{$auth3}{${extract{1}{:}{${lookup{$auth2}lsearch{CONFDIR\/passwd}{$value}{*:*}}}}}{1}{0}}&#8221;server_set_id = $auth2server_prompts = :.ifndef AUTH_SERVER_ALLOW_NOTLS_PASSWORDSserver_advert<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/9da1fe0ca09c408213402533ff38812c?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nhalfer<br \/>\nandroid git ssl repository gnutls<br \/>\nI want to get the source code of Android. To browse some blogs in the Internet, &#8220;repo init&#8221; is recommended.Then I use it, but it is impossible because of the following error.android@ubuntu]~\/WORKING_DIRECOTRY$ repo init -u xxxxxxxxxxxxxxxxxxGet https:\/\/gerrit.googlesource.com\/git-repo error:GnuTLS recv error (-9): A TLS packet with unexpected length was received while accessing https:\/\/gerrit.googlesource.com\/git-repo\/info\/refs?service=git-upload-pack fatal:HTTP request failedI wrote the Androi<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/673d1e3f15cb30eec0a0eeace9eb1c9a?s=32&amp;d=identicon&amp;r=PG&amp;f=1\" \/><br \/>\npajooh<br \/>\ngit openssl debian gnutls<br \/>\nrecently, trying to clone a git repo from my debian(jessie) box, i&#8217;m facing this:fatal: unable to access &#8216;https:\/\/github.com\/foo\/bar\/&#8217;: gnutls_handshake() failed: A TLS packet with unexpected length was received.as mentioned by ubuntu folks i used the git compiled with openssl, and now i get:fatal: unable to access &#8216;https:\/\/github.com\/foo\/bar\/&#8217;: Unknown SSL protocol error in connection to github.com:443<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/442cab27a6d5e8556b6873246c8adabd?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nuser2428118<br \/>\nc gnutls<br \/>\nI am trying to compile my code for GnuTLS, but on compiling it gives the following errors.I have checked gnutls.h is present on my system in \/usr\/include\/gnutls\/.What else can be the cause?gcc -o tls.o tls.c \/tmp\/ccfyZ1Bd.o: In function `main&#8217;: tls.c:(.text+0x1c): undefined reference to `gnutls_global_init&#8217; tls.c:(.text+0x28): undefined reference to `gnutls_anon_allocate_client_credentials&#8217; tls.c:(.text+0x3c): undefined reference to `gnutls_init&#8217; tls.c:(.text+0x58): undefined reference<\/li>\n<\/ul>\n<p>Web site is in building<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Martin Fejes facebook curl ssl facebook-php-sdk gnutls I&#8217;m developing a Facebook canvas application and sometimes (3 times in one week) I get this error (to be honest, this time it&#8217;s a user getting the error):Fatal error: Uncaught CurlException: 52: GnuTLS recv error (-12): A TLS fatal alert has been received. thrown in \/myURL\/facebook-php-sdk-master\/src\/base_facebook.php on line [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-6837","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6837","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=6837"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6837\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=6837"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=6837"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=6837"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}