Skip to content

Instantly share code, notes, and snippets.

View Nevercold's full-sized avatar
🏠
Working from home

Moritz Walter Nevercold

🏠
Working from home
View GitHub Profile
@Nevercold
Nevercold / PKPass.md
Created August 9, 2023 13:48 — forked from rlanyi/PKPass.md
How to create Apple PKPass .p12 certificate using Linux

How to create Apple PKPass .p12 certificate using Linux

You don't need a Mac to do this :-)

For generating PKPass files, you'll need 4 things after this tutorial:

  • Certificate Identifier (pass.com.example.www)
  • Team Identified (Organizational Unit (OU) in the cert generated by Apple)
  • The .p12 file
  • The password for the .p12 file
<?php
// just the basics from the docs
namespace hmcsw\service\authorization\auth\twoFactor\types\fido2;
use Cose\Algorithms;
use Cose\Algorithm\Manager;
use Lcobucci\Clock\SystemClock;
use Nyholm\Psr7\Factory\Psr17Factory;
use Symfony\Component\Clock\NativeClock;
composer require hcgcloud/pterodactyl-sdk:dev-master
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
mmap() failed: [12] Cannot allocate memory
mmap() failed: [12] Cannot allocate memory
PHP Fatal error: Out of memory (allocated 1733808128) (tried to allocate 20480 bytes) in phar:///usr/local/bin/composer/src/Composer/Repository/ComposerRepository.php on line 340