Closed meruiden closed 4 years ago
Usually (with all web servers) you bundle website certificate and intermediate CA certificate into one certificate file. (/etc/letsencrypt/live/example.com/fullchain.pem)
cat certificate.crt ca.crt > bundle.crt
fixed by passing the intermediate CA like so:
let acceptor = Rc::new({
let mut builder = SslAcceptor::mozilla_intermediate(SslMethod::tls()).unwrap();
builder.set_private_key(&pkey).unwrap();
builder.set_certificate(&cert).unwrap();
builder.add_extra_chain_cert(inter).unwrap();
builder.check_private_key().unwrap();
builder.build()
});
Is there a way to set the root CA on the SslAcceptor?