This project provides JavaScript implementations for handling TLS 1.3 parameters as defined in RFC 8446 Section 4.3. The code focuses on encoding, decoding, and managing the data structures involved in TLS 1.3, specifically for CertificateRequest
and EncryptedExtensions
.
-
CertificateRequest: Implements the data structure for requesting certificates during TLS handshake.
- Parses and serializes
certificate_request_context
andextensions
fields. - Validates length constraints as per the specification.
- Parses and serializes
-
EncryptedExtensions: Implements the
EncryptedExtensions
structure.- Handles encoding and decoding of extensions.
- Supports variable-length extensions in compliance with RFC requirements.
Import the modules and utilize them for TLS 1.3 operations:
import { CertificateRequest, EncryptedExtensions } from "@tls/param";
const certRequest = new CertificateRequest(certificate_request_context, ...extensions);
const encryptedExts = EncryptedExtensions.fromExtensions(...extensions);
- 4.3.1. Encrypted Extensions
- 4.3.2. Certificate Request
- None. The implementation fully satisfies RFC 8446 Section 4.3 requirements.
This project is licensed under the MIT License - see the LICENSE file for details.