Scope
Port Bun corpus position 4019, js/third_party/jsonwebtoken/issue_70.test.js, without weakening the RSA key-policy cases already covered by asynchronous signing tests.
Acceptance criteria
- RS/PS signing accepts Buffer-backed PKCS#1 RSA private PEM input from
fs.readFileSync. - Arbitrary strings, public-only keys, wrong asymmetric KeyObjects, and insecure generated keys remain rejected under the existing policy.
- Verification accepts the matching
BEGIN PUBLIC KEYBuffer fixture. - RSA signing failures retain code, algorithm/operation metadata, original cause, and operation-aware cause stacks.
- Focused, adjacent JWT, and permanent diagnostics pass.