Commit fbf1a93
Fix revoke for short (1-byte) certificate serial numbers (#7)
Idnomic's revoke SOAP API expects the serial in canonical form
(no leading zeros, lowercase hex). X509Certificate2.SerialNumber
returns padded uppercase hex (e.g. "05" for a 1-byte serial), which
the API rejects. Normalize to "5" before submitting, with a guard
so an all-zero serial doesn't trim to an empty string.
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 08d2568 commit fbf1a93
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
683 | 683 | | |
684 | 684 | | |
685 | 685 | | |
686 | | - | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
687 | 690 | | |
688 | 691 | | |
689 | 692 | | |
| |||
0 commit comments