Skip to content
This repository was archived by the owner on Mar 7, 2026. It is now read-only.

Commit 9b999aa

Browse files
authored
Update ProStore to use password
1 parent 2187257 commit 9b999aa

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Sources/prostore/install/GenerateCert.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ public final class GenerateCert {
6060
try writePrivateKeyPEM(pkey: serverPkey, to: serverKeyURL.path)
6161
try writeX509PEM(x509: serverX509, to: serverCertURL.path)
6262

63-
// Try with empty password first, which is what installApp.swift expects
64-
try writePKCS12(pkey: serverPkey, cert: serverX509, caCert: caX509, to: localhostP12URL.path, password: "")
63+
// Try with password 'ProStore' first, which is what installApp.swift expects
64+
try writePKCS12(pkey: serverPkey, cert: serverX509, caCert: caX509, to: localhostP12URL.path, password: "ProStore")
6565

6666
EVP_PKEY_free(caPkey)
6767
X509_free(caX509)

Sources/prostore/install/installApp.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -762,8 +762,8 @@ public func installApp(from ipaURL: URL) throws {
762762
}
763763
} else {
764764
// Try with common passwords if empty password fails
765-
InstallLogger.shared.log("Trying common passwords for PKCS12 file...")
766-
let commonPasswords = ["password", "123456", "admin", "localhost", "ssl", "cert", "prostore"]
765+
InstallLogger.shared.log("Trying password for PKCS12 file...")
766+
let commonPasswords = ["ProStore"]
767767
var foundPassword = false
768768

769769
for password in commonPasswords {

0 commit comments

Comments
 (0)