# SSL for PayPal

**URL:** <https://www.ruby-forum.com/t/ssl-for-paypal/146485>\
**Category:** Rails\
**Created:** [August 21, 2008, 4:30pm UTC](https://www.ruby-forum.com/t/ssl-for-paypal/146485 "2008-08-21T16:30:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![paulbutcher](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/a5b964/32.png) [@paulbutcher](https://www.ruby-forum.com/u/paulbutcher)\
**Post date:** [August 21, 2008, 4:30pm UTC](https://www.ruby-forum.com/t/ssl-for-paypal/146485/1 "2008-08-21T16:30:06Z")

</div>

I have this for PayPal IPN:

@query = ‘cmd=\_notify-validate’  
request.params.each\_pair {|key, value| @query = @query + ‘&’ + key + ‘=’

- value.first if key != ‘register/pay\_pal\_ipn.html/pay\_pal\_ipn’ }  
http = Net::HTTP.new(‘[www.paypal.com](http://www.paypal.com)’, 443)  
http.use\_ssl = true  
response = http.post(‘/cgi-bin/webscr’, @query)

Will this work when the app server doesn’t have SSL?

I wonder because I get this Notice from the LSWS “peer certificate won’t  
be verified in this SSL session”.
