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

Make TLS client cert/key file optional #601

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

Conversation

smititelu
Copy link
Contributor

Allow start of sipp TLS client, without a mandatory cert/key.

related to #569


if (SSL_CTX_use_PrivateKey_file(sip_trp_ssl_ctx,
tls_key_name,
SSL_FILETYPE_PEM) != 1) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For indentation all the way to the right, please indent exactly to after the (, like above.

ERR_error_string_n(ERR_get_error(), errbuf, sizeof(errbuf));
ERROR("TLS_init_context: SSL_CTX_use_certificate_file (client) failed: %s", errbuf);
return TLS_INIT_ERROR;
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is a client cert now optional? Or is it not possible anymore?

@smititelu
Copy link
Contributor Author

Updated PR to use client cert only if key/cert files exist at that path.

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