one more developemnt, this error is related to the openssl bundled with the osx, however it CommonCrypto is being used (--with-darwinssl) presents no error.

maybe it will be a best option to use '--with-darwinssl' as default option on osx - first it is beter library then bundled OpenSSL, second it it using system certificates (in keychains) so it does not require separate ca bundle...