Lisp HUG Maillist Archive

SSL_CTX error, Lispworks MacOS

I have a student with Lispworks Personal on MacOS El Capitan and we can't get SLL to work.

Using (comm:set-ssl-library-path "/usr/lib/libssl.dylib") fixed a failure with (comm:ensure-ssl) but comm:attach-ssl still fails.

Any ideas what else to check for, configure, test, ...?

CL-USER 9 > (require "comm")
NIL

CL-USER 10 > (comm:ensure-ssl)
NIL

CL-USER 11 > (comm:openssl-version)
"OpenSSL 0.9.8zh 14 Jan 2016"

CL-USER 12 > (comm:open-tcp-stream "google.com" 443 :ssl-ctx t)

Error: Failed to create SSL CTX
  1 (abort) Return to level 0.
  2 Return to top loop level 0.

Type :b for backtrace or :c <option number> to proceed.
Type :bug-form "<subject>" for a bug report template or :? for other options.

CL-USER 13 : 1 > :b
Call to ERROR
Call to COMM:ATTACH-SSL
Call to CLOS::METHOD-COMBINATION-TEMPLATE
Call to CLOS::MAKE-INSTANCE-FROM-CLASS-1
Call to COMM:OPEN-TCP-STREAM
Call to EVAL
Call to CAPI::CAPI-TOP-LEVEL-FUNCTION
Call to CAPI::INTERACTIVE-PANE-TOP-LOOP
Call to MP::PROCESS-SG-FUNCTION


-- 
.................................................
Christopher Riesbeck
Associate Professor, Electrical Engineering and Computer Science
McCormick School of Engineering
Northwestern University

2145 Sheridan Rd., Evanston, IL 60208

Home page: http://www.cs.northwestern.edu/~riesbeck/
Calendar: http://www.cs.northwestern.edu/~riesbeck/calendar.html

Re: SSL_CTX error, Lispworks MacOS

Hi,

works for me with a 64bit LispWorks on macOS 10.12.

Regards,

Rainer

Am 23.09.2016 um 17:49 schrieb Christopher Riesbeck <c-riesbeck@northwestern.edu>:

I have a student with Lispworks Personal on MacOS El Capitan and we can't get SLL to work.

Using (comm:set-ssl-library-path "/usr/lib/libssl.dylib") fixed a failure with (comm:ensure-ssl) but comm:attach-ssl still fails.

Any ideas what else to check for, configure, test, ...?


CL-USER 9 > (require "comm")
NIL

CL-USER 10 > (comm:ensure-ssl)
NIL

CL-USER 11 > (comm:openssl-version)
"OpenSSL 0.9.8zh 14 Jan 2016"

CL-USER 12 > (comm:open-tcp-stream "google.com" 443 :ssl-ctx t)

Error: Failed to create SSL CTX
  1 (abort) Return to level 0.
  2 Return to top loop level 0.

Type :b for backtrace or :c <option number> to proceed.
Type :bug-form "<subject>" for a bug report template or :? for other options.

CL-USER 13 : 1 > :b
Call to ERROR
Call to COMM:ATTACH-SSL
Call to CLOS::METHOD-COMBINATION-TEMPLATE
Call to CLOS::MAKE-INSTANCE-FROM-CLASS-1
Call to COMM:OPEN-TCP-STREAM
Call to EVAL
Call to CAPI::CAPI-TOP-LEVEL-FUNCTION
Call to CAPI::INTERACTIVE-PANE-TOP-LOOP
Call to MP::PROCESS-SG-FUNCTION



-- 
.................................................
Christopher Riesbeck
Associate Professor, Electrical Engineering and Computer Science
McCormick School of Engineering
Northwestern University

2145 Sheridan Rd., Evanston, IL 60208

Home page: http://www.cs.northwestern.edu/~riesbeck/
Calendar: http://www.cs.northwestern.edu/~riesbeck/calendar.html

Re: SSL_CTX error, Lispworks MacOS

Yes, it works for almost everyone but this student. He’s installed OpenSSL multiple ways, multiple architectures. 

When we got ensure-ssl to work after set-ssl-library-path to the same version that works on my Mac, in /usr/lib. It’s a fat binary, but 32 and 64 bit. We thought we were all set, but then attach-ssl breaks internal with that SSL_CTX error. Many restarts along the way. 

So what can we look at next?


On Sep 24, 2016, at 3:24 AM, Rainer Joswig <joswig@lisp.de> wrote:

Hi,

works for me with a 64bit LispWorks on macOS 10.12.

Regards,

Rainer

Am 23.09.2016 um 17:49 schrieb Christopher Riesbeck <c-riesbeck@northwestern.edu>:

I have a student with Lispworks Personal on MacOS El Capitan and we can't get SLL to work.

Using (comm:set-ssl-library-path "/usr/lib/libssl.dylib") fixed a failure with (comm:ensure-ssl) but comm:attach-ssl still fails.

Any ideas what else to check for, configure, test, ...?


CL-USER 9 > (require "comm")
NIL

CL-USER 10 > (comm:ensure-ssl)
NIL

CL-USER 11 > (comm:openssl-version)
"OpenSSL 0.9.8zh 14 Jan 2016"

CL-USER 12 > (comm:open-tcp-stream "google.com" 443 :ssl-ctx t)

Error: Failed to create SSL CTX
  1 (abort) Return to level 0.
  2 Return to top loop level 0.

Type :b for backtrace or :c <option number> to proceed.
Type :bug-form "<subject>" for a bug report template or :? for other options.

CL-USER 13 : 1 > :b
Call to ERROR
Call to COMM:ATTACH-SSL
Call to CLOS::METHOD-COMBINATION-TEMPLATE
Call to CLOS::MAKE-INSTANCE-FROM-CLASS-1
Call to COMM:OPEN-TCP-STREAM
Call to EVAL
Call to CAPI::CAPI-TOP-LEVEL-FUNCTION
Call to CAPI::INTERACTIVE-PANE-TOP-LOOP
Call to MP::PROCESS-SG-FUNCTION



-- 
................................................
Christopher Riesbeck
Associate Professor, Electrical Engineering and Computer Science
McCormick School of Engineering
Northwestern University

2145 Sheridan Rd., Evanston, IL 60208

Home page: http://www.cs.northwestern.edu/~riesbeck/
Calendar: http://www.cs.northwestern.edu/~riesbeck/calendar.html


------------------
Christopher Riesbeck
Home page: http://www.cs.northwestern.edu/~riesbeck
Calendar: http://www.cs.northwestern.edu/~riesbeck/calendar.html


Updated at: 2020-12-10 08:31 UTC