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

Test TLS connection with bad hostname must fail. #17

Merged
merged 1 commit into from
Nov 15, 2023

Conversation

bluhm
Copy link
Contributor

@bluhm bluhm commented Nov 14, 2023

Create zone file with A and AAAA records in zone regress. Start nsd with zone file listening on 127.0.0.1.
Write hosts of regress zone into pfresolved config. Start pfresolved with nsd as resolver.
Pfresolved is provided with wrong hostname to verify server cert. Wait until pfresolved reports lookup failure.
Check that pfresolved added no addresses.
Check that pfresolved reports "certificate verify failed".

Create zone file with A and AAAA records in zone regress.
Start nsd with zone file listening on 127.0.0.1.
Write hosts of regress zone into pfresolved config.
Start pfresolved with nsd as resolver.
Pfresolved is provided with wrong hostname to verify server cert.
Wait until pfresolved reports lookup failure.
Check that pfresolved added no addresses.
Check that pfresolved reports "certificate verify failed".
@CaBeckmann CaBeckmann merged commit b0bf1f1 into master Nov 15, 2023
1 check passed
@CaBeckmann CaBeckmann deleted the regress-tls-badhost branch November 15, 2023 09:46
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

Successfully merging this pull request may close these issues.

2 participants