Frederick Cheung wrote:
> On 20 Feb 2009, at 16:09, Ashikali Ashikali wrote:
>>
>> In the https scenario , I have configured my cerificate in appache
>> configuration
>> file .
>>
> 
>> Do I need any decryption method to decrypt this in my rails  
>> application
>> ?
>>
> As far as https is concerned that will all be handled by apache.
> 
> Fred

Thank you so much Fred .

I have lot of confusing over here .

Doubts :
       Please see this ruby code ,

require 'net/http'
require 'net/https'

http = Net::HTTP.new('192.168.1.191' , 443 )
http.use_ssl = true
p http.peer_cert
path = '/main/test'
data = 
'msisdn=919822222222&PTRefId=12345236789012345678&PTDateTime=20090120123020&custid=1234567890&messageType=50011'
resp, data = http.post(path, data, nil )
puts( resp,data )

Here I am posting this data to my https apache server . Being a client
I have to encrypt this data using public key . But here I didn't do any
encryption using certificate public key . But this is working how ?

can you explain me ?


cheers ,
ashikali
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to