Skip to content

Commit 3ea14a4

Browse files
author
David Benko
committed
Update README.md
Added instructions to generate X.509 RSA key pair
1 parent 7f8ad4c commit 3ea14a4

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,18 @@ Transport Layer Security for securing data payloads in Objective-C. An easy way
2020
- Add `ObjectiveTLS` folder to your project
2121
- Import header (`#import "ObjectiveTLS.h"`)
2222

23+
### Generate X.509 RSA Key Pair
24+
- Run the following commands to generate a personal key pair for testing.
25+
- The files you care about are `public_key.der` and `private_key.p12`
26+
27+
```shell
28+
openssl req -x509 -out public_key.der -outform der -new -newkey rsa:1024 -keyout private_key.pem -days 3650
29+
openssl x509 -inform der -outform pem -in public_key.der -out public_key.pem
30+
openssl pkcs12 -export -in public_key.pem -inkey private_key.pem -out private_key.p12
31+
```
32+
33+
34+
2335
Encryption
2436
---------
2537

0 commit comments

Comments
 (0)