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

Prefer Hostname in AD CS Web API URL #131

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

rtpt-erikgeiser
Copy link
Contributor

When a certificate is requested with -web, the AD CS web API is currently accessed using IP addresses with the hostname in the host header. This can sometimes fail, probably because IIS checks the TLS-SNI instead of the host header depending on the configuration. With this PR, the hostname is used in the url passed to requests such that the TLS-SNI can be set accordingly. As I understand it, self.target.remote_name contains the IP if the hostname cannot be determined, so it should not break anything.

@rtpt-erikgeiser rtpt-erikgeiser changed the title Prefer hostname in AD CS web api URL Prefer Hostname in AD CS Web API URL Mar 1, 2023
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.

1 participant