Skip to main content

self_signed_pem

Function self_signed_pem 

Source
pub fn self_signed_pem(name: &str) -> (String, String)
Expand description

A self-signed certificate and its private key, both PEM, for name.

Two calls with different names produce certificates with different serial numbers and keys, which is all a rotation test needs to tell “old” and “new” apart. Nothing verifies one of these: a test that needs a client to complete a handshake wants issue_for.