Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

access denied #3

Open
tcurdt opened this issue Feb 13, 2022 · 1 comment
Open

access denied #3

tcurdt opened this issue Feb 13, 2022 · 1 comment

Comments

@tcurdt
Copy link

tcurdt commented Feb 13, 2022

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("[email protected]")
            .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
@ps1dr3x
Copy link

ps1dr3x commented Sep 5, 2022

Same here, with a slightly different error:
curl: (35) error:14094419:SSL routines:ssl3_read_bytes:tlsv1 alert access denied
I couldn't figure out what's wrong either so far.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants