#322 SSL Context Problem.

closed
Crypto (16)
5
2012-09-14
2010-01-05
Anonymous
No

Cannot create SSL_CTX object: error:140A90A1:lib(20):func(169):reason(161)

poco-1.3.6p1
OpenSSL 0.9.8l (static and shared tested)
Windows 7 64 (Everything compiled as 32 though)

I fixed this by adding SSL_library_init() as the first line of Poco::Net::Context's constructor.

Discussion

  • Calling Poco::Crypto::OpenSSLInitializer::initialize() would be the right thing.
    Fixed in 1.3.6, rev. 1306.

     
  • Matt
    Matt
    2010-01-08

    The samples in NetSSL don't do this, which lead to my confusion.

     
  • The samples use the SSLManager class to (implicitly) create a Context and SSLManager takes care of calling Poco::Crypto::OpenSSLInitializer::initialize().

     
  • Matt
    Matt
    2010-01-11

    I was using the samples to debug this problem.