Skip to content

Commit adb4d93

Browse files
committed
remove pem restriction for now
apple-platform-rs orders their pem certs with key then cert...
1 parent d8c8f51 commit adb4d93

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/certificate.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ export async function prepareKeychainWithDeveloperCertificate(
1919
keychain: Keychain
2020
): Promise<void> {
2121
const decodedCert = Buffer.from(secretValue, 'base64').toString('utf-8')
22-
// TODO this won't work for all certificate encodings (e.g. DER)
23-
try {
24-
pki.certificateFromPem(decodedCert)
25-
} catch (e) {
26-
throw new Error(
27-
`Failed to parse certificate (PEM support only right now): ${e}`
28-
)
29-
}
22+
// // TODO this won't work for all certificate encodings (e.g. DER)
23+
// try {
24+
// pki.certificateFromPem(decodedCert)
25+
// } catch (e) {
26+
// throw new Error(
27+
// `Failed to parse certificate (PEM support only right now): ${e}`
28+
// )
29+
// }
3030

3131
await keychain.createKeychain()
3232
await keychain.addToSearchList()

0 commit comments

Comments
 (0)