Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to implement OpenID login in PHP by using php-openid library. But it did not work on my server probably because PHP libcurl is using NSS, not OpenSSL for SSL connection(according to phpinfo).

I could not find any reliable documentation to handle this situation. My server is normal CentOS6 and PHP 5.3 is installed from yum.

Currently, php -i | grep SSL shows like this:

SSL => Yes
SSL Version => NSS/
OpenSSL support => enabled
OpenSSL Library Version => OpenSSL 1.0.0-fips 29 Mar 2010
OpenSSL Header Version => OpenSSL 1.0.0-fips 29 Mar 2010
Native OpenSSL support => enabled

I think I need to make PHP's SSL version like this:

SSL Version => OpenSSL/1.0.0

Does anyone know how to enable OpenSSL without recompling PHP? Thanks a lot in advance for any information or advice, where to look.

share|improve this question

migrated from Aug 12 '13 at 9:40

This question came from our site for professional and enthusiast programmers.

PHP uses libcurl which uses the SSL library. You don't need to rebuild PHP but you need to provide a separate libcurl that is built to use the SSL library of your choice.

Alas, you need to build libcurl to use OpenSSL or install a libcurl-OpenSSL and then have your PHP use that libcurl instead of the original one.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .