How To Fix SSL Error 161

If you are seeing ssl error 161, this guide should help.

ssl error 161

We can find libwebsockets version 1.3 in our SSL-enabled web socket client program written in c. We are compiling on Centos 6.5 with openssl 1.0.1 installed, leaving the .so library, which will then be used normally in Asterisk. Compiling might be ok, but I get this learning error:

Problem creating SSL context 336236705: error:140A90A1:lib(20):func(169):reason(161)

In the libwebsockets code, I found that your current part is generating what I would say is an error message (line 90 of lib/ssl.c):

/* simple openssl initialization */SSL_library_init();OpenSSL_add_all_algorithms();SSL_load_error_strings();openssl_websocket_private_data_index=    SSL_get_ex_new_index(0, "libwebsockets", NULL, NULL, NULL);/* - Firefox insists on SSLv23, not SSLv3 * Konq now disables SSLv2 via fallback, SSLv23 works */The method corresponds to (SSL_METHOD *)SSLv23_server_method();if (! method)    exit = ERR_get_error();    lwsl_err("Error creating SSL method %lu: %sn",        error, ERR_error_string(error,                      (char *)context->service_buffer));    send 1;context->ssl_ctx = SSL_CTX_new(method); /* grab context */if (!context->ssl_ctx)    Error = ERR_get_error();    lwsl_err("Problem creating %lu SSL perspective: %sn",        error, ERR_error_string(error,(char *)context->service_buffer));    use 1 again;

Which looks very good from the examples I’ve seen online, the last few days I’ve been thinking about my move, searching and trying everything including reinstalling different versions of openssl and changing their code to replace the above. SSLv23_server_method with various methods etc. But I can’t get this situation to work, does anyone know what could be the problem?< /p>

3077879544:error:140A90A1:lib(20):func(169):reason(161):ssl_lib.c:1802:

ssl error 161

int solve 0;const = char *interface = NULL;listen interval_port;memset(&wsInfo, 0, wsInfo size);listen_port = CONTEXT_PORT_NO_LISTEN;wsInfo.port implies listen_port;wsInfo.iface = interface;wsInfo.protocols = Protocols;wsInfo.extensions corresponds to libwebsocket_get_internal_extensions();wsInfo.gid = -1;wsInfo.uid = -1;wsInfo.options are options;wsContext = libwebsocket_create_context(&wsInfo);

The compiled program is in the .so library, and this particular library is used today in a modified version of Asterisk (which, to my knowledge, uses openssl itself).

Added by Mike Fry about 4 years ago. Updated almost 4 years ago.

Libcurl HTTP Request Failed: SSL: Context Not Created: Error: 140A90A1:lib(20):func(169):reason(161)

While debugging this bug, I configured curl to get the environment variable via https by mode, and curl_ca_bundle passed it to the bundle file. I thought curl was called ipsec sceptclient but I was wrong. Here is my order.

ipsec scepclient –url http://$SCEPSERVER/CertSrv/mscep/mscep.dll
-k 2048 -f -order $CHALLENGE
–dn “C=$COUNTRY , S= $STATE, L=$LOCALITY, O=$ORGANIZATION, OU=$ORGANISATIONALUNIT, CN=$HOSTNAME”
–subjectAltName dns=$HOSTNAME
–subjectAltName email=$email < br> – -in pkcs1=myKey.der
Cert=myCert –out.der
–in cacert-enc=caCert-ra-1.der
–in cacert-sig =caCert- ra-2.der
–debug 4

History

#one Updated by Mike Fry about 4-5 years ago.

IKE Charon daemon status (strongSwan 5.1.2, Linux 4.4.0-116-generic, x86_64):
Availability: 20 hours from Feb 27 14:15:29 2018
malloc: sbrk 2977792 , mmap 532480, recommended 721808, free 2255984
Worker threads: 20 out of 16 idle, 5/0/0/0 workers, maintenance queue: 0/0/0/0, scheduled: 0
plugins loaded: test charon vectors curl sups unrelated ldap mysql sqlite pkcs11 aes rc2 sha1 sha2 md4 md5 rdrand cool nonce x509 revoke pubkey pkcs1 restrictionspkcs7 pkcs8 pkcs12 pgp dnskey sshkey dnscert ipseckey pem openssl gcrypt af-albbg fips gmp xcbbg xcbbg ntru attr gettr gettr ntru eap-identity eap-sim eap-sim-pcsc eap-aka eap-aka-3gpp2 eap-simaka-alias eap-simaka -reauth eap-md5 eap-gtc eap-mschapv2 eap-dynamic eap-radius eap-tls eap-ttls eap-peap eap-tnc xauth-generic xauth-eap xauth-noauth tnc-tnccs tnccs-20 tnccs-11 tnccs-dynamic dhcp whitelist lookip error-notify certexpire led d uplichec k radattr addrblock unity
Listening IP addresses:
10.57.172.246
Connections:
Active security associations, (connection 0 0):

Previous post Tips För Att Fixa Vsam Exchange-kod 148 På öppen
Next post Solutions Pour L’erreur SQL 12030