With section.io CLI I get an error trying to section up: "unknown ssl method 'TLSv1_2'"

When trying to launch a Developer PoP using section up command with the section.io CLI, you might get this error:

"unknown ssl method" TLSv1_2

What should I do?

This is probably caused by using Ruby 2.0.0. There seems to be limited compatibility with TLS 1.2. section.io has tightened the TLS versions to keep in line with PCI compliance and other good security practices.

if you run ruby -ropenssl -e 'puts OpenSSL::SSL::SSLContext::METHODS' in a terminal, you’ll probably notice that TLSv1_2 is missing from the list. Thanks Ruby TLS 1.2 Problems.

Upgrading Ruby should fix this problem.

I encountered this when I was having my setup.

For MAC: ( Cause I was using Mac )

  1. Update your Ruby to latest version
  2. Download “https://curl.haxx.se/ca/cacert.pem
  3. Run “export SSL_CERT_FILE=/location/where/you/downloaded/thefile/cacert.pem” From Terminal. Note: Change path of the cacert.pem to much your download location.

Hope this helps!