Beryl::TLS::CertifiedKey
A certificate chain and the private key of its leaf: what a server presents and signs its CertificateVerify with.
certified_key = Beryl::TLS::CertifiedKey.from_pem(File.read("chain.pem"), File.read("server.key"))
Keys: P-256 (signs ecdsa_secp256r1_sha256), RSA 2,048 to 4,096 bits
(rsa_pss_rsae_sha256/384/512), Ed25519 (ed25519).
Constructors
Reads the chain (leaf first) and the key from PEM text.
Instance methods
list_of_certificates
Sourcelist_of_signature_schemes
The signature schemes this key signs, in Beryl's order of preference.
private_key
SourceSigns content (the CertificateVerify input) with scheme, which
must be one of list_of_signature_schemes. RSA-PSS draws its salt
(one hash long, RFC 9846 ยง4.2.3) from randomness.