{"id":21768127,"url":"https://github.com/below/ssltestdemo","last_synced_at":"2026-04-24T21:31:21.643Z","repository":{"id":66512622,"uuid":"8728947","full_name":"below/SSLTestDemo","owner":"below","description":"A simple sample to show a problem with Unit Tests on the Command line using SSL","archived":false,"fork":false,"pushed_at":"2013-03-12T17:28:25.000Z","size":138,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-14T19:38:47.485Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/below.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-03-12T13:54:53.000Z","updated_at":"2013-10-22T02:38:54.000Z","dependencies_parsed_at":"2023-02-20T05:45:38.571Z","dependency_job_id":null,"html_url":"https://github.com/below/SSLTestDemo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/below/SSLTestDemo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/below%2FSSLTestDemo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/below%2FSSLTestDemo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/below%2FSSLTestDemo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/below%2FSSLTestDemo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/below","download_url":"https://codeload.github.com/below/SSLTestDemo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/below%2FSSLTestDemo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32241545,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T13:21:15.438Z","status":"ssl_error","status_checked_at":"2026-04-24T13:21:15.005Z","response_time":64,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-26T13:33:41.753Z","updated_at":"2026-04-24T21:31:21.614Z","avatar_url":"https://github.com/below.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SSLTestDemo\n\nA simple sample to show a problem with Unit Tests on the Command line using SSL\n\n## Goal\n\nOur goal is to execute our Unit Tests within a Continuous Integration environment ([Jenkins](http://jenkins-ci.org \"Jenkins CI\"))\n\n(I believe it is essential for every question to state what exactly one is trying to achieve. Maybe the problem can actually be solved a very different way)\n\n## Problem resolved so far\n\nRunning tests from the command line sounds pretty straighforward, but\n\n\txcodebuild -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO clean test\n\nresults in an ugly error:\n\n\tunsupported build action 'test'\n\nSo I searched the web and found this article on [Running OCUnit Tests from Command Line](http://www.raingrove.com/2012/03/28/running-ocunit-and-specta-tests-from-command-line.html \"Running OCUnit Tests from Command Line\").\n\nI followed all the steps, and I can run my tests from the command line like this:\n\n\txcodebuild -scheme CITests -sdk iphonesimulator TEST_AFTER_BUILD=YES ONLY_ACTIVE_ARCH=NO clean build\n\n## Remaining Problem\n\nHowever, now any NSURLConnection to an SSL Server will fail, because \"The certificate for this server is invalid.\". I have heared about keychain issues when running tests from the command line, but can this be true? Any SSL connection is refused?\n\n## To Reproduce\n\nGet the sample at https://github.com/below/SSLTestDemo. Open it up, and run the sample test using Xcode's own **Test ⌘U** command. The test should succeed.\n\nNow run the test on the command line:\n\n\txcodebuild -scheme CITests -sdk iphonesimulator TEST_AFTER_BUILD=YES ONLY_ACTIVE_ARCH=NO clean build\n\nThe test fails due to the \"The certificate for this server is invalid.\" error.\n\n## Any Pointers?\n\n* Am I doing it wrong? \n* Is this a genuine bug? \n* If so, are there workaroungs?\n\nAny input is appreciated!\n\n- - - -\n\n## Legal Stuff ##\n![CC0](http://i.creativecommons.org/p/zero/1.0/88x31.png \"CC0\")\n\nTo the extent possible under law, Alexander von Below has waived all copyright and related or neighboring rights to SSLTestDemo. This work is published from: Germany.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbelow%2Fssltestdemo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbelow%2Fssltestdemo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbelow%2Fssltestdemo/lists"}