[libvirt-users] Connecting libvirt remotely using tls: TLS handshake failed : packet with unexpected length +gnutls_handhsake Error

Ajitha Robert ajitharobert01 at gmail.com
Wed Nov 19 06:12:44 UTC 2014


Hi all,

I am facing an error while connecting libvirt remotely using tls.. I
have created CA, client and server certificates with RSA 1024 bit
using Openssl. I am using debian linux flavor in both client and
server.

*Original Error:*

(When trying to connect remote libvirt)

virsh -c xen+tls://destinationipaddr/system

error: failed to connect to the hypervisor
error: authentication failed: TLS handshake failed A TLS packet with
unexpected length was received.


In source code i found the error line. the return value is 21

./src/rpc/virnettlscontext.c: ret = gnutls_handshake(sess->session);


*Below are log details*

*client(Initiator of ssl connection ) :*

virNetTLSSessionHandshake:1351 : Ret=-21

error: authentication failed: TLS handshake failed A TLS packet with
unexpected length was received.

*In the server side,
*

 virNetTLSSessionHandshake:1369 : authentication failed: TLS handshake
failed Could not negotiate a supported cipher suite.


Please guide me for solving this error

-- 


*Regards,Ajitha R*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20141119/584a47f0/attachment.htm>


More information about the libvirt-users mailing list