Hi Mike,
SSL contexts are needed for each client and each server. Multiple clients can share the same client SSL context, and multiple servers can share the same server SSL context, but a client cannot share a server's SSL context and vice versa. See the notes in the nsopenssl distribution for details.
/s.
On Jun 22, 2004, at 3:29 PM, Mike Schilli wrote:
Hi all,
from a AOLserver 4.0 running nsopenssl 3.x, I'm trying to initiate https requests to another server using ns_httpsget. However, I'm getting this error:
[21/Jun/2004:13:20:37][17108.40966][-nscp::1-] Error: nsopenssl (server1): attempt to get SSL context with NULL name [21/Jun/2004:13:20:37][17108.40966][-nscp::1-] Error: failed to use either named or default client SSL context failed to use either named or default client SSL context while executing "ns_openssl_sockopen -nonblock $host $port" (procedure "ns_httpsopen" line 42) invoked from within "ns_httpsopen GET $url $rqset $timeout "" $module" (procedure "ns_httpsget" line 10) invoked from within
Here's my configuration:
ns_section "ns/server/${servername}/module/nsopenssl/sslcontexts" ns_param vs1_client_ctx "SSL context used for outgoing script socket connections" ns_section "ns/server/${servername}/module/nsopenssl/defaults" #ns_param server vs1_users_ctx ns_param client vs1_client_ctx ns_param server vs1_client_ctx
It seems like this error message stems from nsopenssl's Ns_OpenSSLServerSSLContextGet function which gets a *server* context -- but is this correct if a client context is used?
I didn't install any certs or configure server context(s), is this required? Would be great if you could point me in the right direction.
-- -- Mike Mike Schilli
-- AOLserver - http://www.aolserver.com/
To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> with the body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: field of your email blank.
-- AOLserver - http://www.aolserver.com/
To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> with the body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: field of your email blank.
