NSURLSession “HTTP load failed kCFStreamErrorDomainSSL, -9813 ; Self signing certificate

If I understood well, Apple now wants the developers to use HTTPS and TLS 1.2 for network calls. Temporary, you can add this in your “Info.plist” file : <key>NSAppTransportSecurity</key> <dict> <key>NSAllowsArbitraryLoads</key> <true/> </dict> Just have a look to this link, it may also help you : http://ste.vn/2015/06/10/configuring-app-transport-security-ios-9-osx-10-11/ — Update : Following some comments the above … Read more

How can I make cookies secure (https-only) by default in rails?

There’s no need to monkeypatch ActionController/ActionDispatch, and force_ssl has side effects (e.g. when behind an ELB). The most straightforward way to achieve secure cookies is to modify config/initializers/session_store.rb: MyApp::Application.config.session_store( :cookie_store, key: ‘_my_app_session’, secure: Rails.env.production? )

Authentication Test Servers

httpbin.org has public endpoints for HTTP Basic and Digest Authentication (in each example, replace :user and :passwd with the test values you’d like to check against – :qop, too, for Digest): /basic-auth/:user/:passwd Challenges HTTPBasic Auth. /hidden-basic-auth/:user/:passwd 404’d BasicAuth. /digest-auth/:qop/:user/:passwd Challenges HTTP Digest Auth. Each endpoint is available in both HTTP and HTTPS.