GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — v8: support X509Certificate serialization by panva · Pull Request #67083 · nodejs/node Conversation
|
|
Review requested:
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@ ## main #67083 +/- ## ========================================== - Coverage 90.65% 90.65% -0.01% ========================================== Files 797 797 Lines 278593 278740 +147 Branches 53570 53610 +40 ========================================== + Hits 252561 252686 +125 - Misses 16377 16383 +6 - Partials 9655 9671 +16
🚀 New features to boost your workflow:
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| if (typeIndex === kX509CertificateHostObject) { | ||
| const count = this.readUint32(); | ||
| if (!hasOpenSSL || count === 0) { | ||
| throw new ERR_INVALID_STATE('Invalid serialized X509Certificate'); |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Nit: in the !hasOpenSSL case this error message is wrong. The cert is valid (probably) we just can't read it.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Landed in d36e9ba |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
v8.serialize() currently rejects X509Certificate objects. Add a host object encoding containing the certificate's DER snapshot, including its issuerCertificate chain, and reconstruct fresh X509Certificate objects in v8.deserialize(). Read the stored snapshot rather than the cached raw Buffer, which can be modified by callers. Decode each certificate independently without imposing issuer relationships on the serialized sequence. Assisted-by: Codex Signed-off-by: Filip Skokan <[email protected]> PR-URL: #67083 Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: Tim Perry <[email protected]>
v8.serialize() currently rejects X509Certificate objects. Add a host object encoding containing the certificate's DER snapshot, including its issuerCertificate chain, and reconstruct fresh X509Certificate objects in v8.deserialize(). Read the stored snapshot rather than the cached raw Buffer, which can be modified by callers. Decode each certificate independently without imposing issuer relationships on the serialized sequence. Assisted-by: Codex Signed-off-by: Filip Skokan <[email protected]> PR-URL: #67083 Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: Tim Perry <[email protected]>
v8.serialize() currently rejects X509Certificate objects. Add a host object encoding containing the certificate's DER snapshot, including its issuerCertificate chain, and reconstruct fresh X509Certificate objects in v8.deserialize(). Read the stored snapshot rather than the cached raw Buffer, which can be modified by callers. Decode each certificate independently without imposing issuer relationships on the serialized sequence. Assisted-by: Codex Signed-off-by: Filip Skokan <[email protected]> PR-URL: #67083 Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: Tim Perry <[email protected]>
v8.serialize() currently rejects X509Certificate objects. Add a host object encoding containing the certificate's DER snapshot, including its issuerCertificate chain, and reconstruct fresh X509Certificate objects in v8.deserialize(). Read the stored snapshot rather than the cached raw Buffer, which can be modified by callers. Decode each certificate independently without imposing issuer relationships on the serialized sequence. Assisted-by: Codex Signed-off-by: Filip Skokan <[email protected]> PR-URL: nodejs#67083 Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: Tim Perry <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.