Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: tls serial number causes illegal padding error (#2459)
This is a hack to work around PeculiarVentures/x509#74 until it is addressed upstream. It seems serial numbers starting with `80` cause `@peculiar/x509` to generate invalid certifiates that Node's `TLSSocket` then fails to parse, throwing an `ERR_OSSL_ASN1_ILLEGAL_PADDING` error, so the hack is to generate serial numbers until we get one that doesn't start with `80`. This can be reverted when the upstream issue is fixed.
- Loading branch information