Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/michaelnisi/backfire
How to use self-signed certificates on iOS
https://github.com/michaelnisi/backfire
Last synced: about 1 month ago
JSON representation
How to use self-signed certificates on iOS
- Host: GitHub
- URL: https://github.com/michaelnisi/backfire
- Owner: michaelnisi
- License: mit
- Created: 2015-08-17T09:42:17.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-08-17T11:58:14.000Z (over 9 years ago)
- Last Synced: 2024-10-13T18:45:40.529Z (2 months ago)
- Language: Swift
- Homepage:
- Size: 121 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# backfire - use self-signed certificate
Xcode 7 playground for iOS showing how to use self-signed certificates. Find the relevant Apple technote [here](https://developer.apple.com/library/ios/technotes/tn2232/_index.html).
Create self signed X.509 certificate:
```
$ openssl req -x509 -nodes -days 365 -newkey rsa:2048 \
-keyout key.pem -out cert.pem \
-subj "/C=US/ST=CA/O=Swift/OU=example/CN=localhost"
```Copy to DER encoded certificate for the client-side:
```
$ openssl x509 -in cert.pem -out cert.der -outform DER
```Start https server:
```
$ node server.js &
```Open the playground and add `./cert.der` to its `Resources`.
Execute playground.Problems? Check the server:
```
$ openssl s_client -connect localhost:8081
```## License
[MIT License](https://raw.github.com/michaelnisi/backfire/master/LICENSE)