LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 11-18-2016, 12:55 PM   #1
zvivered
Member
 
Registered: Sep 2007
Posts: 294

Rep: Reputation: 23
SSL3_GET_CLIENT_HELLO:no shared cipher:s3_srvr.c:1387


Hello,

Attached code for my server, client.

Upon trying to connect from the client, BIO_do_connect returns -1 and the prints the message:

140715962931136:error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure:s23_clnt.c:744:

In the server BIO_read returns -1 and prints the message:
140580721969088:error:1408A0C1:SSL routines:SSL3_GET_CLIENT_HELLO:no shared cipher:s3_srvr.c:1387:

Can you please help ?

Thank you,
Z.V
Attached Files
File Type: txt client.c.txt (2.0 KB, 74 views)
File Type: txt server.c.txt (1.6 KB, 59 views)
 
Old 11-18-2016, 02:10 PM   #2
zvivered
Member
 
Registered: Sep 2007
Posts: 294

Original Poster
Rep: Reputation: 23
SSLv2_server_method

Hello,

In the server side I changed to:
SSLv2_server_method
In the client side I changed to:
SSLv2_client_method

On the server I got:
140538700367808:error:1406B0C9:SSL routines:GET_CLIENT_MASTER_KEYeer error certificate:s2_pkt.c:681:
140538700367808:error:140EC0E5:SSL routines:SSL2_READ_INTERNAL:ssl handshake failure:s2_pkt.c:142:

I'm using Centos 7.215 (64)
Does it mean that this version does not support SSL V3 ?

Why am I getting the "peer error certificate" message ?

Thank you,
Z.V
 
Old 11-18-2016, 05:02 PM   #3
zvivered
Member
 
Registered: Sep 2007
Posts: 294

Original Poster
Rep: Reputation: 23
Solution: SSL_CTX_use_certificate_file, SSL_CTX_use_PrivateKey_file

Hello,

Attached code that works fine.

It also works if I change to:
SSLv3_server_method() on the server side and to SSLv3_client_method() on the client side.

Thank you,
Z.V
Attached Files
File Type: txt client.c.txt (2.0 KB, 253 views)
File Type: txt server.c.txt (1.7 KB, 235 views)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Decrypt a cipher cdpuhrmann Linux - Newbie 11 01-25-2015 02:13 PM
How do you change cipher list order with openssl cipher command? markseger Linux - Security 1 03-20-2013 04:45 AM
Affine Cipher Gato Azul Programming 3 02-01-2013 01:47 PM
C++ Vigenere cipher robertodb Programming 6 09-20-2011 11:07 AM
Cipher all data xanax Linux - Security 9 12-10-2006 02:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 07:09 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration