Support library for signing Samsung Knox API access tokens
composer require proget-hq/knox-token
More info at Knox Cloud API Integration Guide
use Proget\Samsung\KnoxToken\Certificate;
use Proget\Samsung\KnoxToken\KnoxToken;
$clientIdentifierJwt = KnoxToken::signClientIdentifier('your-client-identifier', Certificate::fromPath('keys.json'));
use Proget\Samsung\KnoxToken\Certificate;
use Proget\Samsung\KnoxToken\KnoxToken;
$accessTokenJwt = KnoxToken::signAccessToken('access-token', Certificate::fromPath('keys.json'));
use Proget\Samsung\KnoxToken\Certificate;
$certificate = Certificate::fromPath('keys.json');
$certificate->publicKey();
$certificate->privateKeyPem();
MIT