mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-17 02:33:27 +01:00
[AltServer] Fixes missing embedded certificate when using cached certificate
This commit is contained in:
@@ -287,6 +287,8 @@ private extension ALTDeviceManager
|
|||||||
let data = try? Data(contentsOf: certificateFileURL),
|
let data = try? Data(contentsOf: certificateFileURL),
|
||||||
let certificate = ALTCertificate(p12Data: data, password: previousCertificate.machineIdentifier)
|
let certificate = ALTCertificate(p12Data: data, password: previousCertificate.machineIdentifier)
|
||||||
{
|
{
|
||||||
|
// Manually set machineIdentifier so we can encrypt + embed certificate if needed.
|
||||||
|
certificate.machineIdentifier = previousCertificate.machineIdentifier
|
||||||
return completionHandler(.success(certificate))
|
return completionHandler(.success(certificate))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user