Open PKCS12 files as binary
Opening as text on Windows causes read failures: tls DEBUG error:0680008E:asn1 encoding routines::not enough data
This commit is contained in:
@@ -974,7 +974,7 @@ _tls_cert_read_p12(xmpp_conn_t *conn, EVP_PKEY **pkey, STACK_OF(X509) * *ca)
|
|||||||
return conn->tls->client_cert;
|
return conn->tls->client_cert;
|
||||||
X509 *cert = NULL;
|
X509 *cert = NULL;
|
||||||
PKCS12 *p12 = NULL;
|
PKCS12 *p12 = NULL;
|
||||||
BIO *f = BIO_new_file(conn->tls_client_key, "r");
|
BIO *f = BIO_new_file(conn->tls_client_key, "rb");
|
||||||
if (!f) {
|
if (!f) {
|
||||||
strophe_debug(conn->ctx, "tls", "f == NULL");
|
strophe_debug(conn->ctx, "tls", "f == NULL");
|
||||||
goto error_out;
|
goto error_out;
|
||||||
|
|||||||
Reference in New Issue
Block a user