[][src]Function lets_encrypt_warp::lets_encrypt

pub fn lets_encrypt<F>(
    service: F,
    email: &str,
    domain: &str
) -> Result<(), Error> where
    F: Filter<Error = Rejection> + Send + Sync + 'static,
    F::Extract: Reply,
    F: Clone

Run forever on the current thread, serving using TLS to serve on the given domain.

This function accepts a single warp::Filter which is the site to host. lets_encrypt requires the capability to serve port 80 and port 443. It obtains TLS credentials from letsencrypt.org and then serves up the site on port 443. It also serves redirects on port 80. Errors are reported on stderr.