Нотариально заверенный PKG проверен, но терпит неудачу при попытке установить - PullRequest
0 голосов
/ 24 сентября 2019

Наше приложение MacOS представляет собой Java / JAR-код, упакованный с JRE и несколькими скриптами Python и Bash.Формат доставки - PKG.Начиная с Каталины, у нас есть проблемы с процессом нотариального заверения.PKG заверяется нотариально в соответствии с документацией Apple, и «проверка сшивания» гласит:

Processing: /Users/user/projects/osx/proc/target/signed.product.pkg
Properties are {
    NSURLIsDirectoryKey = 0;
    NSURLIsPackageKey = 0;
    NSURLIsSymbolicLinkKey = 0;
    NSURLLocalizedTypeDescriptionKey = "Installer package";
    NSURLTypeIdentifierKey = "com.apple.installer-package-archive";
    "_NSURLIsApplicationKey" = 0;
}
Sig Type is RSA. Length is 3
Sig Type is CMS. Length is 3
Package signed.product.pkg uses a checksum of size 20
Terminator Trailer size must be 0, not 3416
{magic: t8lr, version: 1, type: 2, length: 3416}
Found expected ticket at 151375717 with length of 3416
JSON Data is {
    records =     (
                {
            recordName = "2/1/ad6df2e38bee327fa8d92cc18376e9e3a0544cb3";
        }
    );
}
 Headers: {
    "Content-Type" = "application/json";
}
Domain is api.apple-cloudkit.com
Response is <NSHTTPURLResponse: 0x7fd65e808ac0> { URL: https://api.apple-cloudkit.com/database/1/com.apple.gk.ticket-delivery/production/public/records/lookup } { Status Code: 200, Headers {
    "Apple-Originating-System" =     (
        UnknownOriginatingSystem
    );
    Connection =     (
        "keep-alive"
    );
    "Content-Encoding" =     (
        gzip
    );
    "Content-Type" =     (
        "application/json; charset=UTF-8"
    );
    Date =     (
        "Tue, 24 Sep 2019 06:10:54 GMT"
    );
    Server =     (
        "AppleHttpServer/e70a1a237a4f"
    );
    "Strict-Transport-Security" =     (
        "max-age=31536000; includeSubDomains;"
    );
    "Transfer-Encoding" =     (
        Identity
    );
    Via =     (
        "xrail:st13p00ic-zteu25203601.me.com:8301:19B135:grp60",
        "icloudedge:sv05p00ic-ztde010716:7401:19RC512:San Jose"
    );
    "X-Apple-CloudKit-Version" =     (
        "1.0"
    );
    "X-Apple-Request-UUID" =     (
        "40f7db26-f1ee-4af2-9db8-f83f7de55ce6"
    );
    "X-Responding-Instance" =     (
        "ckdatabasews:16300501:st42p63ic-ztfb05111901:8201:1917B122:5619602cc516f30b4d2db23ce52800aafe114e31"
    );
    "access-control-expose-headers" =     (
        "X-Apple-Request-UUID, X-Responding-Instance",
        Via
    );
    "apple-seq" =     (
        0
    );
    "apple-tk" =     (
        false
    );
} }
Size of data is 5169
JSON Response is: {
    records =     (
                {
            created =             {
                deviceID = 2;
                timestamp = 1569243563364;
                userRecordName = "_d28c74d190a3782e89496b0a13437fef";
            };
            deleted = 0;
            fields =             {
                signedTicket =                 {
                    type = BYTES;
                    value = "czhjaAEAAADvBQAAEQcAADCCBeswggL9MIICpKADAgECAghyVR35ZD6UaDAKBggqhkjOPQQDAjByMSYwJAYDVQQDDB1BcHBsZSBTeXN0ZW0gSW50ZWdyYXRpb24gQ0EgNDEmMCQGA1UECwwdQXBwbGUgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkxEzARBgNVBAoMCkFwcGxlIEluYy4xCzAJBgNVBAYTAlVTMB4XDTE5MDUyMTIwMTIwMVoXDTIwMDYxOTIwMTIwMVowRDEgMB4GA1UEAwwXU29mdHdhcmUgVGlja2V0IFNpZ25pbmcxEzARBgNVBAoMCkFwcGxlIEluYy4xCzAJBgNVBAYTAlVTMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEcM02cIkH7otsVJzD3Bt6AjHCHVsyVrAqKLr95MykwzNMtiK+ZhzkJdc6QFwM8M6XzCobq/Kvt5tW1yj+/yds0KOCAVAwggFMMAwGA1UdEwEB/wQCMAAwHwYDVR0jBBgwFoAUeke6OIoVJEgiRs2+jxokezQDKmkwQQYIKwYBBQUHAQEENTAzMDEGCCsGAQUFBzABhiVodHRwOi8vb2NzcC5hcHBsZS5jb20vb2NzcDAzLWFzaWNhNDAyMIGWBgNVHSAEgY4wgYswgYgGCSqGSIb3Y2QFATB7MHkGCC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NOOj/23OhzVGvCqr9DJYCdMl6m+2yuBHvqYHY6qU759Q5e54C+JkIP72PuEmwogrRoiu4k4SSPq8CerQzpO7uoEqhjZwx9iuJY2zT4VUC9eC280CjyuItXYbU9k0C07KgEfACN7wycuTwGkYgHpdo+c+pHHtl/L8CyD3OmGxEFcqRVuFFDnL3gphDbKkCa9xRMhggUtLQNZJ0IA2EQbz3w2UCcFNyhODkD2oPM8EI590901qn0qACV5TfEj68sqsd3sSZg/jbXUfsixICKGwIx+jBHQk7q/Xnun0lZGccKZUCms/Vu7+zV5chE10PKidLqVKQmMwCaeix8pOee2KBao7y+Ntdo5d7v2ECa6W4ZNzbjTXkyvE5Zi/qT4HOYwYC4icChG0sTtaUB31uMa7xii0gDEACD3EXemO1BicfiWVJzo2zZLdwQjYCoY1WxYFypjPXHH+Z1PxXeLXxm54CezSi2ohI6P8hPl68d9jYLdGM8LYCeM2Vxq3FDsliVZRF/7d4VsPa50owRQIgJFhXVLK0jnYPUJYwR7Wiyn7OCLbrYi2Y5wZ1tOxs17kCIQCf31QPmRewxFl/xhsUQERJKZ/rqBl8LmBbMg/oRX8mygA=";
                };
            };
            modified =             {
                deviceID = 2;
                timestamp = 1569247052443;
                userRecordName = "_d28c74d190a3782e89496b0a13437fef";
            };
            pluginFields =             {
            };
            recordChangeTag = k0wf3mub;
            recordName = "2/1/ad6df2e38bee327fa8d92cc18376e9e3a0544cb3";
            recordType = DeveloperIDTicket;
        }
    );
}
Downloaded ticket has been stored at file:///var/folders/73/9y0xfbc15js0h2c_cpr5qjkr0000gp/T/40f7db26-f1ee-4af2-9db8-f83f7de55ce6.ticket.
The validate action worked!

Нотариально заверенная PKG хорошо устанавливается на том же компьютере, где была создана, но не работает на других Catalinas.

Что может быть не так?Спасибо.

1 Ответ

0 голосов
/ 24 сентября 2019

Извините за беспорядок.Проблема была в том, что сертификаты и Apple ID использовались там, где они устарели.

И все же я вижу большую проблему, когда ни процесс нотариального заверения, ни сам установщик не сообщают о надлежащей и подробной ошибке ...

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...