summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAndrej Mihajlov <and@mullvad.net>2021-05-18 16:23:33 +0200
committerAndrej Mihajlov <and@mullvad.net>2021-05-21 15:44:51 +0200
commit4fe4f706d50c65f51dff80a231ac28871590c62f (patch)
tree5ea5cf84931b98ad8856379ff02e3ff90cfc2810
parentc3cfd95a07adce3ab9acd0a1c17632231a8b80a2 (diff)
downloadmullvadvpn-4fe4f706d50c65f51dff80a231ac28871590c62f.tar.xz
mullvadvpn-4fe4f706d50c65f51dff80a231ac28871590c62f.zip
Update instructions regarding removing old keys and certificates
-rw-r--r--ios/BuildInstructions.md31
1 files changed, 31 insertions, 0 deletions
diff --git a/ios/BuildInstructions.md b/ios/BuildInstructions.md
index 4c73601ee3..c8cc6ce657 100644
--- a/ios/BuildInstructions.md
+++ b/ios/BuildInstructions.md
@@ -72,6 +72,37 @@ openssl pkcs12 -export \
-name "<FRIENDLY_KEYCHAIN_NAME>"
```
+# Remove old private key and certificates from Keychain
+
+__Skip this section if you create the private key in the very first time.__
+
+If you happen to re-create the keys, you will have to remove the old keys and certificates from
+Keychain.
+
+You can list all certificates with corresponding keys by using the following command:
+
+```
+security find-identity
+```
+
+You'll get a list of identities that looks like that:
+
+```
+Valid identities only
+1) <HASH_ID> "Apple Distribution: <COMPANY NAME> (<TEAM ID>)"
+2) <HASH_ID> "Apple Development: <COMPANY NAME> (<TEAM ID>)"
+```
+
+Pick the one that you don't want anymore and copy the `<HASH_ID>` from the output, then paste into
+the command below:
+
+```
+security delete-identity -Z <HASH_ID>
+```
+
+This should take care of removing both private keys and certificates. Repeat as many times as needed
+if you wish to remove multiple identities.
+
# Import private key and certificates into Keychain
```