Failed to configure spring-boot to support https for IOS application -
i using spring-boot backend server , iphone front end app. need setup https in server side in order submit app in apple store. did below configurations in application.properties in spring-boot server:
server.port = 9080 server.ssl.key-store=/data/ssl/server.jks server.ssl.key-store-password=123456 server.ssl.enabled=true server.ssl.key-password=123456 server.ssl.ciphers=tls_ecdhe_rsa_with_aes_128_cbc_sha256,tls_ecdhe_rsa_with_aes_128_cbc_sha,tls_ecdhe_rsa_with_aes_256_cbc_sha384,tls_ecdhe_rsa_with_aes_256_cbc_sha,tls_rsa_with_aes_128_cbc_sha256,tls_rsa_with_aes_128_cbc_sha,tls_rsa_with_aes_256_cbc_sha256,tls_rsa_with_aes_256_cbc_sha server.ssl.protocol=tls
the ios app got below error when connecting server through https:
error:optional(error domain=nsurlerrordomain code=-1200 "an ssl error has occurred , secure connection server cannot made." userinfo={_kcfstreamerrorcodekey=-9824, nslocalizedrecoverysuggestion=would connect server anyway?, nsunderlyingerror=0x610000257490
if set allow arbitrary loads
yes in info.plist in xcode, works fine. setting flag yes not suggested apple. want find why wrong ssl configuration. believe issue in backend setting. did below check:
$ nscurl --ats-diagnostics httsp://www.nurse-go.cn:9080 starting ats diagnostics configuring ats info.plist keys , displaying result of https loads https://www.nurse-go.cn:9080. test "pass" if urlsession:task:didcompletewitherror: returns nil error. use '--verbose' view ats dictionaries used , display error received in urlsession:task:didcompletewitherror:. ================================================================================ default ats secure connection --- ats default connection 2016-12-28 20:07:54.791 nscurl[27229:1903364] nsurlsession/nsurlconnection http load failed (kcfstreamerrordomainssl, -9824) result : fail --- ================================================================================ allowing arbitrary loads --- allow loads result : pass --- ================================================================================ configuring tls exceptions www.nurse-go.cn --- tlsv1.2 2016-12-28 20:07:57.904 nscurl[27229:1903364] nsurlsession/nsurlconnection http load failed (kcfstreamerrordomainssl, -9824) result : fail --- --- tlsv1.1 2016-12-28 20:07:58.873 nscurl[27229:1903364] nsurlsession/nsurlconnection http load failed (kcfstreamerrordomainssl, -9824) result : fail --- --- tlsv1.0 2016-12-28 20:07:59.843 nscurl[27229:1903364] nsurlsession/nsurlconnection http load failed (kcfstreamerrordomainssl, -9824) result : fail --- ================================================================================ configuring pfs exceptions www.nurse-go.cn --- disabling perfect forward secrecy result : pass --- ================================================================================ configuring pfs exceptions , allowing insecure http www.nurse-go.cn --- disabling perfect forward secrecy , allowing insecure http result : pass --- ================================================================================ configuring tls exceptions pfs disabled www.nurse-go.cn --- tlsv1.2 pfs disabled result : pass --- --- tlsv1.1 pfs disabled result : pass --- --- tlsv1.0 pfs disabled result : pass --- ================================================================================ configuring tls exceptions pfs disabled , insecure http allowed www.nurse-go.cn --- tlsv1.2 pfs disabled , insecure http allowed result : pass --- --- tlsv1.1 pfs disabled , insecure http allowed result : pass --- --- tlsv1.0 pfs disabled , insecure http allowed result : pass --- ================================================================================
you see there few fail result in above output. btw, if did same check nginx server same certification file in same server.then passed. confirm problem spring-boot setting. know reason this?
edit1
when use browser access spring-boot server, browser has shown green lock icon correctly. means spring-boot configuration works fine browser has issue iphone app.
Comments
Post a Comment