Skip to content

access denied #3

@tcurdt

Description

@tcurdt

What's the best way to get some more information why this isn't working?
I assume this is because there is no way to obtain an acme cert?
Or would it fall back to self-signed certs?

use tide_acme::{AcmeConfig, TideRustlsExt};

#[async_std::main]
async fn main() -> tide::Result<()> {
    let mut app = tide::new();
    app.at("/").get(|_| async { Ok("Hello TLS") });

    // app.listen("127.0.0.1:8080").await?;

    app.listen(tide_rustls::TlsListener::build().addrs("127.0.0.1:4443").acme(
        AcmeConfig::new()
            .domains(vec!["domain.example".to_string()])
            .contact_email("admin@example.org")
            .cache_dir("/Users/foo/tide-acme-cache-dir"),
        )
    ).await?;

    Ok(())
}
$ curl -k https://localhost:4443
curl: (35) error:14004419:SSL routines:CONNECT_CR_SRVR_HELLO:tlsv1 alert access denied

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions