Re: [openssl-users] Sending files in SSL communication

2015-07-22 Thread Salz, Rich
What you want is application-specific, not part of the TLS protocol.  So you 
have to use SSL_read/SSL_write and pull the data out as needed.
___
openssl-users mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users


Re: [openssl-users] Sending files in SSL communication

2015-07-22 Thread Salz, Rich
 But is there a way to send text files through SSL_write()? 

No. 
___
openssl-users mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users


[openssl-users] Sending files in SSL communication

2015-07-22 Thread Anirudh Raghunath
Hello all,
I have a ssl server client connection set up which I have written in C using 
sockets and openssl. I understand that I can attach a certificate of the server 
and send it to the client by attaching it to the SSL_CTX object. I used the 
SSL_CTX_use_certificate_file to do so. Now I can retrieve that certificate by 
using SSL_get_peer_certificate function on the client side. I also want to send 
a test( say a text file) from the server to the client for the client to sign 
it and send it back. What function do I use to do so? Is it similar to the way 
we attach certificates to the SSL_CTX? And how do I retrieve it on the client 
side?Thanks in advance.___
openssl-users mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users


Re: [openssl-users] Sending files in SSL communication

2015-07-22 Thread Anirudh Raghunath
But there is a way in which the server sends a test( for example a random 
number) and the client signs it with his private key right?


 On Wednesday, 22 July 2015 1:30 PM, Anirudh Raghunath 
anirudhraghun...@rocketmail.com wrote:
   

 But is there a way to send text files through SSL_write()? If so, can you 
please give a small example? Thanks. 


 On Wednesday, 22 July 2015 1:27 PM, Salz, Rich rs...@akamai.com wrote:
   

 What you want is application-specific, not part of the TLS protocol.  So you 
have to use SSL_read/SSL_write and pull the data out as needed.


   
___
openssl-users mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users


  ___
openssl-users mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users


Re: [openssl-users] Sending files in SSL communication

2015-07-22 Thread Anirudh Raghunath
But is there a way to send text files through SSL_write()? If so, can you 
please give a small example? Thanks. 


 On Wednesday, 22 July 2015 1:27 PM, Salz, Rich rs...@akamai.com wrote:
   

 What you want is application-specific, not part of the TLS protocol.  So you 
have to use SSL_read/SSL_write and pull the data out as needed.


  ___
openssl-users mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users


Re: [openssl-users] Sending files in SSL communication

2015-07-22 Thread Salz, Rich
 But there is a way in which the server sends a test( for example a random 
 number) and the client signs it with his private key right?

It's called mutual (or client-side) authentication and is part of the TLS 
protocol.  The client must have an X.509-style certificate.
___
openssl-users mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users