Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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/3.13.1.0
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
add comment

migrated from stackoverflow.com Aug 12 '13 at 9:40

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

1 Answer

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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.