Created attachment 917188 [details]
Test CA that will reproduce the bug
Description of problem:
This is very similar to Bug #1117466.
Here's how to reproduce with rhc-1.27.4-1
ssl_ca_file: [see attached]
3) rhc server add openshift.redhat.com online -l email@example.com
Notice in #2 the only server configuration that exist is the one with the custom CA file. The config is first sync'd from disk and those are actually make it all the way to the 'add' method in https://github.com/openshift/rhc/blob/master/lib/rhc/servers.rb#L100.
I suspect the issue has to do with how sync_from_config calls add_or_update in https://github.com/openshift/rhc/blob/master/lib/rhc/servers.rb#L153. Adding and update probably need separate treatment.
And the 'rhc server configure' will meet "The server's certificate could not be verified" issue when some servers contain ssl_ca_file parameter.
Fixed in https://github.com/openshift/rhc/pull/624
rhc-1.28.0 build from devenv_4962
Can't reproduce this bug for 'rhc server add' and 'rhc server configure'.
Mark bug as verified.