Problem establishing ssl connection between server and client

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • suppoor
    New Member
    • Feb 2010
    • 4

    Problem establishing ssl connection between server and client

    Hi every on e

    I am building a server client communication . I need to make this communication secure . I am using python 2.6 and its ssl module . But i am not able to get the communication between server and client . Please can any one give me a sample code ?
  • Motoma
    Recognized Expert Specialist
    • Jan 2007
    • 3236

    #2
    Hi suppoor,

    Are you able to get the communication working without SSL? If you remove calls to ssl.wrap_socket , does the sever-client system function properly?

    If so, please post the SSL specific code you have so that we may take a look at how you initialize the SSL wrapper.

    If not, your problem likely lies somewhere other than in the SSL code.

    Cheers,
    Motoma
    Last edited by Motoma; Feb 21 '10, 01:01 PM. Reason: Politeness.

    Comment

    • suppoor
      New Member
      • Feb 2010
      • 4

      #3
      Hi Motoma,

      Thank you for the helping hand , i got it working . Since i am new to python it took some time . But i still have a Query .

      I am using server certificate and server key and also ca certificate

      How do i display the content of the certificate from the client program ?
      But using getpeercert gives junk or encrypted value .

      Comment

      • Motoma
        Recognized Expert Specialist
        • Jan 2007
        • 3236

        #4
        The Python SSL Documentation has two examples of reading the SSL certificate information.

        Client Side
        Server Side

        Comment

        Working...