feat(license): 接入授权平台客户端门禁(license-v2/lease-v2)并烧入交付版信任根

This commit is contained in:
lianjianwei2024
2026-10-10 18:05:04 +08:00
parent 6de1370ce5
commit d3a805ede0
25 changed files with 3123 additions and 25 deletions

View File

@@ -0,0 +1,39 @@
{
"lease": {
"canonical": "version=lease-v2\ninstance_id=11111111-2222-3333-4444-555555555555\nstate=active\nserver_time=2026-10-09T03:00:00Z\nentitlement_expires_at=2027-10-09T03:00:00Z\nlease_expires_at=2026-10-23T03:00:00Z\nkey_id=integration-test-only",
"canonical_sha256": "da433cd2ec57a9ebf1f6a47e30521682e205f397ce5988b05785511a3e428aac",
"payload": {
"entitlement_expires_at": "2027-10-09T03:00:00Z",
"instance_id": "11111111-2222-3333-4444-555555555555",
"key_id": "integration-test-only",
"lease_expires_at": "2026-10-23T03:00:00Z",
"server_time": "2026-10-09T03:00:00Z",
"state": "active",
"version": "lease-v2"
},
"signature": "MEUCIC7K5MBrMw2M+mTnI8V14qUbgsqafewS+iFxnW2t7g68AiEAkBpVMJWsZ8T8szdvZHbR24PSiZbXHIWrNedh/+X/g2I"
},
"license": {
"canonical": "version=license-v2\ninstance_id=11111111-2222-3333-4444-555555555555\nlicense_id=1\ncustomer_id=2\nproduct_id=3\nstarts_at=2026-10-09T03:00:00Z\nexpires_at=2027-10-09T03:00:00Z\nkey_id=integration-test-only",
"canonical_sha256": "81d4930737bf289e752f5f37f43f9a0dfa0c0692075b2dba3d4d643ec1602355",
"payload": {
"customer_id": 2,
"expires_at": "2027-10-09T03:00:00Z",
"instance_id": "11111111-2222-3333-4444-555555555555",
"key_id": "integration-test-only",
"license_id": 1,
"product_id": 3,
"starts_at": "2026-10-09T03:00:00Z",
"version": "license-v2"
},
"signature": "MEUCIQDGb8FCV0JWvdE6UrMoscU9ZaidDajGGecslbI8A5xNkgIgVmI7IHlQQi5qhaulYNM9u27INVmXgPrNwNYLQsJrTJw"
},
"pinned_keys": [
{
"key_id": "integration-test-only",
"public_key_pem": "-----BEGIN PUBLIC KEY-----\nMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEhrrB+tsg5H7cPScLrwZh/2q6fPx7\nSfzrQwmlKlJV74r0j0r5qPINY59icRBa42fEQTDI6hd9faWGifSW8Fb+jw==\n-----END PUBLIC KEY-----\n",
"revoked": false
}
],
"warning": "TEST ONLY: never trust this key in production; use frozen now=2026-10-09T03:00:00Z for state tests"
}