Thanks to visit codestin.com
Credit goes to github.com

Skip to content

TLS client cert verifier works with file but not folder #7542

@mattxtaz

Description

@mattxtaz

Issue Details

If I use verifier leaf file inside a tls client_auth block then it works fine. If I use verifier leaf folder then it fails and I can't negotiate TLS. Am I doing something wrong?

Works:

tls {
                client_auth {
                        trust_pool file /etc/caddy/tls/root_ca.crt
                        verifier leaf file /etc/caddy/tls/test.crt
                }
        }

Fails:

tls {
                client_auth {
                        trust_pool file /etc/caddy/tls/root_ca.crt
                        verifier leaf folder /etc/caddy/tls/
                }
        }

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