SSL cert error for link.clcik

Hi I have been trying to access the links from webpage and click on them
and capture their web address.

I have done so far capturing the links.

page.links_with(:href => /^https?/).each do |link| => /^https?/))

but when I click on the licks I get below error

SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B:
certificate verify failed (OpenSSL::SSL::SSLError)
block (2 levels) in <top (required)>' ./features/chat_content/step_definitions/launch-chat-unauth-step.rb:43:ineach’
/^Customer should see links "(.*?)" in footer$/' features\chat_content\launch-chat-unauth.feature:27:inAnd Customer
should see links “Terms of Use,Protecting Your Privacy,Security,Site
Map” in footer’

Please help me resolve this