ios - Swift: Add Certificate Authority root certificate -


we're attempting follow apple docs using own certificate authority (ca):

while self-signed certificate reasonable approach during development, there better way: create own certificate authority ... , have issue certificate test server. can ... hard-wire certificate authority's root certificate app

i haven't been able figure out how hard wire ca root cert using swift. paper mentions approach haven't been able translate swift code:

  1. get copy of remote peer's certificate ...
  2. get server certificate trust object (pass index of 0 sectrustgetcertificateatindex)
  3. get data server certificate (seccertificatecopydata)
  4. compare certificate data got in step 1; if match, you're talking correct peer

how can via swift?


Comments

Popular posts from this blog

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

reactjs - React router and this.props.children - how to pass state to this.props.children -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -