Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4018190
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T09:57:08+00:00 2026-05-20T09:57:08+00:00

I am using Ruby on Rails 3 and I would like to know some

  • 0

I am using Ruby on Rails 3 and I would like to know some good advice in developing an application in localhost in order to make and prepare that for future deployment.

Specifically in this question I would like to know something about switching an SSL configuration from my computer to an hosting server.

In localhost I use a self-signed SSL certificate, so to run a HTTPS request I must disable its verification (see the below example), but what should I do when the application is deployed and I bought a SSL certificate?

If in localhost I have (using Typhoeus gem)

Typhoeus::Request.get("https://users.pjtname.com", :disable_ssl_peer_verification => true,)

What I will have to do on a hosting server side?

Have I just to delete the :disable_ssl_peer_verification => true code and then set for Typheous a proper certificate like the following or some other thing?

Typhoeus::Request.get("https://users.pjtname.com",
  :ssl_cacert => "cacert.pem",
  :ssl_capath => "/"
)

… and, at all, it will be difficult to switch this kind of configuration?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T09:57:09+00:00Added an answer on May 20, 2026 at 9:57 am

    You could just do an environment check to run different setups, quick example:

    if Rails.env.development?
        args = {:disable_ssl_peer_verification => true}
    else
        args = {:ssl_cacert => "cacert.pem", :ssl_capath => "/"}
    end
    
    Typhoeus::Request.get("https://users.pjtname.com", args)
    

    Will disable peer verification if you are on the development environment, otherwise it will use the ssl_cacert and ssl_capath settings.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using Ruby on Rails 3 and I would like to use jQuery
I am using Ruby on Rails 3 and I would like to change its
I'm using Ruby on Rails (Edge, the development version), and Ruby rvm 1.9.2. application.js
I would appreciate some advice on how to structure a database for the following
I am trying to attach files in my RoR app. I am using Rails
I'm currently beginning to learn Ruby and the Ruby on Rails framework. I've found
I would like to allow only mobile devices on my web site, such as
I want to us the new Pow server for ruby on rails develop coz
I've been stuck on this for awhile. Does anyone know how to authenticate the
A rails service I am currently working on requires that points are returned as

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.