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

TLS Client certificate Verification in Start TLS #3169

Open
junaidsarwar414 opened this issue Feb 12, 2020 · 3 comments
Open

TLS Client certificate Verification in Start TLS #3169

junaidsarwar414 opened this issue Feb 12, 2020 · 3 comments

Comments

@junaidsarwar414
Copy link

I need To Ask that Ejabberd Community version Supports Client Certificate verification .I am not taking about XEP-0178.I want to enable Client Certificate Verification in TLS Connection.

@weiss
Copy link
Member

weiss commented Feb 12, 2020

Client Certificate Verification in TLS Connection

How would that be different from XEP-0178, section 2 (which is indeed supported by ejabberd)?

@junaidsarwar414
Copy link
Author

In Xep 0178 Certificate is used for user authentication.While i need to Verify Client Certificate at Ejabberd for TLS Connection and Login With username nd password.

For reference of prosody server Option for Client Certificate Verification is

verify
A list of verification options (these mostly map to OpenSSL’s set_verify() flags). Prosody’s default is { "peer", "client_once" }.

Available verification options are:

none (no verification)
peer (verify the peer’s certificate)
client_once (do not request the client’s certificate during renegotiation)
fail_if_no_peer_cert (fail if the peer does not present a certificate)

https://prosody.im/doc/advanced_ssl_config

@junaidsarwar414
Copy link
Author

I did ejabberd Setting for TLS_verify: true. But It always Verify the Certificate of Client.
i Think its because of this function in fasttls
static int verify_callback(int preverify_ok, X509_STORE_CTX *ctx) {
return 1;
}
https://github.com/processone/fast_tls/blob/master/c_src/fast_tls.c

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

No branches or pull requests

2 participants