我在我的Ubuntu 10.04上构建/安装了 Python 2.7,我发现SSL没有被激活.

我必须重建Python吗?

如何通过SSL支持重建它并更新我当前的安装?

我不想并行安装新的.

试图使用oauth2:

>>> import oauth2

Traceback (most recent call last):
File “”,line 1,in
File “/usr/local/lib/python2.7/site-packages/oauth2/init.py”,line 32,in
import httplib2
File “/usr/local/lib/python2.7/site-packages/httplib2/init.py”,line 801,in
class HTTPSConnectionWithTimeout(httplib.HTTPSConnection):
AttributeError: ‘module’ object has no attribute ‘HTTPSConnection’

文件正在讲述

HTTPS support is only available if the socket module was compiled with SSL support.

所以我想激活SSL支持

试图安装pyOpenSSL

$python setup.py build

给出这个

/usr/local/lib/python2.7/distutils/dist.py:267: UserWarning: UnkNown distribution option: 'zip_safe'
  warnings.warn(msg)
running build
running build_py
running build_ext
building 'OpenSSL.crypto' extension
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/local/include/python2.7 -c OpenSSL/crypto/crypto.c -o build/temp.linux-x86_64-2.7/OpenSSL/crypto/crypto.o
In file included from OpenSSL/crypto/crypto.h:17,from OpenSSL/crypto/crypto.c:15:
OpenSSL/crypto/x509.h:17:25: error: openssl/ssl.h: No such file or directory
In file included from OpenSSL/crypto/crypto.h:17,from OpenSSL/crypto/crypto.c:15:
OpenSSL/crypto/x509.h:25: error: expected specifier-qualifier-list before ‘X509’
OpenSSL/crypto/x509.h:29: error: expected declaration specifiers or ‘...’ before ‘ASN1_TIME’
OpenSSL/crypto/x509.h:30: error: expected declaration specifiers or ‘...’ before ‘ASN1_TIME’
In file included from OpenSSL/crypto/crypto.h:18,from OpenSSL/crypto/crypto.c:15:
OpenSSL/crypto/x509name.h:27: error: expected specifier-qualifier-list before ‘X509_NAME’
In file included from OpenSSL/crypto/crypto.h:19,from OpenSSL/crypto/crypto.c:15:
OpenSSL/crypto/netscape_spki.h:24: error: expected specifier-qualifier-list before ‘netscape_SPKI’
In file included from OpenSSL/crypto/crypto.h:20,from OpenSSL/crypto/crypto.c:15:
OpenSSL/crypto/x509store.h:25: error: expected specifier-qualifier-list before ‘X509_STORE’
In file included from OpenSSL/crypto/crypto.h:21,from OpenSSL/crypto/crypto.c:15:
OpenSSL/crypto/x509req.h:25: error: expected specifier-qualifier-list before ‘X509_REQ’
In file included from OpenSSL/crypto/crypto.h:22,from OpenSSL/crypto/crypto.c:15:
OpenSSL/crypto/pkey.h:27: error: expected specifier-qualifier-list before ‘EVP_PKEY’
In file included from OpenSSL/crypto/crypto.h:23,from OpenSSL/crypto/crypto.c:15:
OpenSSL/crypto/x509ext.h:16:28: error: openssl/x509v3.h: No such file or directory
In file included from OpenSSL/crypto/crypto.h:23,from OpenSSL/crypto/crypto.c:15:
OpenSSL/crypto/x509ext.h:28: error: expected specifier-qualifier-list before ‘X509_EXTENSION’
In file included from OpenSSL/crypto/crypto.h:24,from OpenSSL/crypto/crypto.c:15:
OpenSSL/crypto/pkcs7.h:15:27: error: openssl/pkcs7.h: No such file or directory
In file included from OpenSSL/crypto/crypto.h:24,from OpenSSL/crypto/crypto.c:15:
OpenSSL/crypto/pkcs7.h:25: error: expected specifier-qualifier-list before ‘PKCS7’
In file included from OpenSSL/crypto/crypto.h:25,from OpenSSL/crypto/crypto.c:15:
OpenSSL/crypto/pkcs12.h:14:28: error: openssl/pkcs12.h: No such file or directory
OpenSSL/crypto/pkcs12.h:15:26: error: openssl/asn1.h: No such file or directory
In file included from OpenSSL/crypto/crypto.h:25,from OpenSSL/crypto/crypto.c:15:
OpenSSL/crypto/pkcs12.h:37: error: expected ‘)’ before ‘*’ token
In file included from OpenSSL/crypto/crypto.h:26,from OpenSSL/crypto/crypto.c:15:
OpenSSL/crypto/crl.h:14: error: expected specifier-qualifier-list before ‘X509_CRL’
OpenSSL/crypto/crl.h:17: error: expected ‘)’ before ‘*’ token
In file included from OpenSSL/crypto/crypto.h:27,from OpenSSL/crypto/crypto.c:15:
OpenSSL/crypto/revoked.h:12: error: expected specifier-qualifier-list before ‘X509_REVOKED’
OpenSSL/crypto/revoked.h:16: error: expected ‘)’ before ‘*’ token
In file included from OpenSSL/crypto/crypto.h:28,from OpenSSL/crypto/crypto.c:15:
OpenSSL/crypto/../util.h:17:25: error: openssl/err.h: No such file or directory
In file included from OpenSSL/crypto/crypto.c:15:
OpenSSL/crypto/crypto.h:74: error: expected ‘)’ before ‘*’ token
OpenSSL/crypto/crypto.h:75: error: expected ‘)’ before ‘*’ token
OpenSSL/crypto/crypto.h:76: error: expected ‘)’ before ‘*’ token
OpenSSL/crypto/crypto.h:77: error: expected ‘)’ before ‘*’ token
OpenSSL/crypto/crypto.h:78: error: expected ‘)’ before ‘*’ token
OpenSSL/crypto/crypto.h:80: error: expected ‘)’ before ‘*’ token
OpenSSL/crypto/crypto.h:81: error: expected ‘)’ before ‘*’ token
OpenSSL/crypto/crypto.c: In function ‘crypto_load_privatekey’:
OpenSSL/crypto/crypto.c:78: error: expected ‘)’ before ‘*’ token
OpenSSL/crypto/crypto.c:82: error: ‘pem_password_cb’ undeclared (first use in this function)
OpenSSL/crypto/crypto.c:82: error: (Each undeclared identifier is reported only once
OpenSSL/crypto/crypto.c:82: error: for each function it appears in.)
OpenSSL/crypto/crypto.c:82: error: ‘cb’ undeclared (first use in this function)
OpenSSL/crypto/crypto.c:84: error: ‘BIO’ undeclared (first use in this function)
OpenSSL/crypto/crypto.c:84: error: ‘bio’ undeclared (first use in this function)
OpenSSL/crypto/crypto.c:85: error: ‘EVP_PKEY’ undeclared (first use in this function)
OpenSSL/crypto/crypto.c:85: error: ‘pkey’ undeclared (first use in this function)
OpenSSL/crypto/crypto.c:109: warning: implicit declaration of function ‘BIO_new_mem_buf’
OpenSSL/crypto/crypto.c:112: error: ‘X509_FILETYPE_PEM’ undeclared (first use in this function)
OpenSSL/crypto/crypto.c:113: warning: implicit declaration of function ‘PEM_read_bio_PrivateKey’
OpenSSL/crypto/crypto.c:116: error: ‘X509_FILETYPE_ASN1’ undeclared (first use in this function)
OpenSSL/crypto/crypto.c:117: warning: implicit declaration of function ‘d2i_PrivateKey_bio’
OpenSSL/crypto/crypto.c:122: warning: implicit declaration of function ‘BIO_free’
OpenSSL/crypto/crypto.c:133: warning: implicit declaration of function ‘crypto_PKey_New’
OpenSSL/crypto/crypto.c: In function ‘crypto_dump_privatekey’:
OpenSSL/crypto/crypto.c:157: error: expected ‘=’,‘,’,‘;’,‘asm’ or ‘__attribute__’ before ‘*’ token
OpenSSL/crypto/crypto.c:157: error: ‘cipher’ undeclared (first use in this function)
OpenSSL/crypto/crypto.c:159: error: ‘pem_password_cb’ undeclared (first use in this function)
OpenSSL/crypto/crypto.c:159: error: ‘cb’ undeclared (first use in this function)
OpenSSL/crypto/crypto.c:161: error: ‘BIO’ undeclared (first use in this function)
OpenSSL/crypto/crypto.c:161: error: ‘bio’ undeclared (first use in this function)
OpenSSL/crypto/crypto.c:162: error: ‘RSA’ undeclared (first use in this function)
OpenSSL/crypto/crypto.c:162: error: ‘rsa’ undeclared (first use in this function)
OpenSSL/crypto/crypto.c:176: warning: implicit declaration of function ‘EVP_get_cipherbyname’
OpenSSL/crypto/crypto.c:199: warning: implicit declaration of function ‘BIO_new’
OpenSSL/crypto/crypto.c:199: warning: implicit declaration of function ‘BIO_s_mem’
OpenSSL/crypto/crypto.c:202: error: ‘X509_FILETYPE_PEM’ undeclared (first use in this function)
OpenSSL/crypto/crypto.c:203: warning: implicit declaration of function ‘PEM_write_bio_PrivateKey’
OpenSSL/crypto/crypto.c:203: error: ‘crypto_PKeyObj’ has no member named ‘pkey’
OpenSSL/crypto/crypto.c:211: error: ‘X509_FILETYPE_ASN1’ undeclared (first use in this function)
OpenSSL/crypto/crypto.c:212: warning: implicit declaration of function ‘i2d_PrivateKey_bio’
OpenSSL/crypto/crypto.c:212: error: ‘crypto_PKeyObj’ has no member named ‘pkey’
OpenSSL/crypto/crypto.c:216: warning: implicit declaration of function ‘EVP_PKEY_get1_RSA’
OpenSSL/crypto/crypto.c:216: error: ‘crypto_PKeyObj’ has no member named ‘pkey’
OpenSSL/crypto/crypto.c:217: warning: implicit declaration of function ‘RSA_print’
OpenSSL/crypto/crypto.c:218: warning: implicit declaration of function ‘RSA_free’
OpenSSL/crypto/crypto.c:234: warning: implicit declaration of function ‘BIO_get_mem_data’
OpenSSL/crypto/crypto.c: In function ‘crypto_load_certificate’:
OpenSSL/crypto/crypto.c:252: error: expected ‘)’ before ‘*’ token
OpenSSL/crypto/crypto.c:255: error: ‘BIO’ undeclared (first use in this function)
OpenSSL/crypto/crypto.c:255: error: ‘bio’ undeclared (first use in this function)
OpenSSL/crypto/crypto.c:256: error: ‘X509’ undeclared (first use in this function)
OpenSSL/crypto/crypto.c:256: error: ‘cert’ undeclared (first use in this function)
OpenSSL/crypto/crypto.c:264: error: ‘X509_FILETYPE_PEM’ undeclared (first use in this function)
OpenSSL/crypto/crypto.c:265: warning: implicit declaration of function ‘PEM_read_bio_X509’
OpenSSL/crypto/crypto.c:268: error: ‘X509_FILETYPE_ASN1’ undeclared (first use in this function)
OpenSSL/crypto/crypto.c:269: warning: implicit declaration of function ‘d2i_X509_bio’
OpenSSL/crypto/crypto.c:285: warning: implicit declaration of function ‘crypto_X509_New’
OpenSSL/crypto/crypto.c: In function ‘crypto_dump_certificate’:
OpenSSL/crypto/crypto.c:302: error: ‘BIO’ undeclared (first use in this function)
OpenSSL/crypto/crypto.c:302: error: ‘bio’ undeclared (first use in this function)
OpenSSL/crypto/crypto.c:312: error: ‘X509_FILETYPE_PEM’ undeclared (first use in this function)
OpenSSL/crypto/crypto.c:313: warning: implicit declaration of function ‘PEM_write_bio_X509’
OpenSSL/crypto/crypto.c:313: error: ‘crypto_X509Obj’ has no member named ‘x509’
OpenSSL/crypto/crypto.c:316: error: ‘X509_FILETYPE_ASN1’ undeclared (first use in this function)
OpenSSL/crypto/crypto.c:317: warning: implicit declaration of function ‘i2d_X509_bio’
OpenSSL/crypto/crypto.c:317: error: ‘crypto_X509Obj’ has no member named ‘x509’
OpenSSL/crypto/crypto.c:321: warning: implicit declaration of function ‘X509_print_ex’
OpenSSL/crypto/crypto.c:321: error: ‘crypto_X509Obj’ has no member named ‘x509’
OpenSSL/crypto/crypto.c: In function ‘crypto_load_certificate_request’:
OpenSSL/crypto/crypto.c:355: error: expected ‘)’ before ‘*’ token
OpenSSL/crypto/crypto.c:358: error: ‘BIO’ undeclared (first use in this function)
OpenSSL/crypto/crypto.c:358: error: ‘bio’ undeclared (first use in this function)
OpenSSL/crypto/crypto.c:359: error: ‘X509_REQ’ undeclared (first use in this function)
OpenSSL/crypto/crypto.c:359: error: ‘req’ undeclared (first use in this function)
OpenSSL/crypto/crypto.c:367: error: ‘X509_FILETYPE_PEM’ undeclared (first use in this function)
OpenSSL/crypto/crypto.c:368: warning: implicit declaration of function ‘PEM_read_bio_X509_REQ’
OpenSSL/crypto/crypto.c:371: error: ‘X509_FILETYPE_ASN1’ undeclared (first use in this function)
OpenSSL/crypto/crypto.c:372: warning: implicit declaration of function ‘d2i_X509_REQ_bio’
OpenSSL/crypto/crypto.c:388: warning: implicit declaration of function ‘crypto_X509Req_New’
OpenSSL/crypto/crypto.c: In function ‘crypto_dump_certificate_request’:
OpenSSL/crypto/crypto.c:405: error: ‘BIO’ undeclared (first use in this function)
OpenSSL/crypto/crypto.c:405: error: ‘bio’ undeclared (first use in this function)
OpenSSL/crypto/crypto.c:415: error: ‘X509_FILETYPE_PEM’ undeclared (first use in this function)
OpenSSL/crypto/crypto.c:416: warning: implicit declaration of function ‘PEM_write_bio_X509_REQ’
OpenSSL/crypto/crypto.c:416: error: ‘crypto_X509ReqObj’ has no member named ‘x509_req’
OpenSSL/crypto/crypto.c:419: error: ‘X509_FILETYPE_ASN1’ undeclared (first use in this function)
OpenSSL/crypto/crypto.c:420: warning: implicit declaration of function ‘i2d_X509_REQ_bio’
OpenSSL/crypto/crypto.c:420: error: ‘crypto_X509ReqObj’ has no member named ‘x509_req’
OpenSSL/crypto/crypto.c:424: warning: implicit declaration of function ‘X509_REQ_print_ex’
OpenSSL/crypto/crypto.c:424: error: ‘crypto_X509ReqObj’ has no member named ‘x509_req’
OpenSSL/crypto/crypto.c: In function ‘crypto_load_crl’:
OpenSSL/crypto/crypto.c:460: error: ‘BIO’ undeclared (first use in this function)
OpenSSL/crypto/crypto.c:460: error: ‘bio’ undeclared (first use in this function)
OpenSSL/crypto/crypto.c:461: error: ‘X509_CRL’ undeclared (first use in this function)
OpenSSL/crypto/crypto.c:461: error: ‘crl’ undeclared (first use in this function)
OpenSSL/crypto/crypto.c:469: error: ‘X509_FILETYPE_PEM’ undeclared (first use in this function)
OpenSSL/crypto/crypto.c:470: warning: implicit declaration of function ‘PEM_read_bio_X509_CRL’
OpenSSL/crypto/crypto.c:473: error: ‘X509_FILETYPE_ASN1’ undeclared (first use in this function)
OpenSSL/crypto/crypto.c:474: warning: implicit declaration of function ‘d2i_X509_CRL_bio’
OpenSSL/crypto/crypto.c:489: warning: implicit declaration of function ‘crypto_CRL_New’
OpenSSL/crypto/crypto.c: In function ‘crypto_load_pkcs7_data’:
OpenSSL/crypto/crypto.c:505: error: ‘BIO’ undeclared (first use in this function)
OpenSSL/crypto/crypto.c:505: error: ‘bio’ undeclared (first use in this function)
OpenSSL/crypto/crypto.c:506: error: ‘PKCS7’ undeclared (first use in this function)
OpenSSL/crypto/crypto.c:506: error: ‘pkcs7’ undeclared (first use in this function)
OpenSSL/crypto/crypto.c:517: error: ‘X509_FILETYPE_PEM’ undeclared (first use in this function)
OpenSSL/crypto/crypto.c:518: warning: implicit declaration of function ‘PEM_read_bio_PKCS7’
OpenSSL/crypto/crypto.c:521: error: ‘X509_FILETYPE_ASN1’ undeclared (first use in this function)
OpenSSL/crypto/crypto.c:522: warning: implicit declaration of function ‘d2i_PKCS7_bio’
OpenSSL/crypto/crypto.c:541: warning: implicit declaration of function ‘crypto_PKCS7_New’
OpenSSL/crypto/crypto.c: In function ‘crypto_load_pkcs12’:
OpenSSL/crypto/crypto.c:557: error: ‘BIO’ undeclared (first use in this function)
OpenSSL/crypto/crypto.c:557: error: ‘bio’ undeclared (first use in this function)
OpenSSL/crypto/crypto.c:558: error: ‘PKCS12’ undeclared (first use in this function)
OpenSSL/crypto/crypto.c:558: error: ‘p12’ undeclared (first use in this function)
OpenSSL/crypto/crypto.c:564: warning: implicit declaration of function ‘d2i_PKCS12_bio’
OpenSSL/crypto/crypto.c:572: warning: implicit declaration of function ‘crypto_PKCS12_New’
OpenSSL/crypto/crypto.c: In function ‘crypto_X509_verify_cert_error_string’:
OpenSSL/crypto/crypto.c:592: warning: implicit declaration of function ‘X509_verify_cert_error_string’
OpenSSL/crypto/crypto.c:592: warning: assignment makes pointer from integer without a cast
OpenSSL/crypto/crypto.c: In function ‘crypto_sign’:
OpenSSL/crypto/crypto.c:623: error: expected ‘=’,‘asm’ or ‘__attribute__’ before ‘*’ token
OpenSSL/crypto/crypto.c:623: error: ‘digest’ undeclared (first use in this function)
OpenSSL/crypto/crypto.c:624: error: ‘EVP_MD_CTX’ undeclared (first use in this function)
OpenSSL/crypto/crypto.c:624: error: expected ‘;’ before ‘md_ctx’
OpenSSL/crypto/crypto.c:633: warning: implicit declaration of function ‘EVP_get_digestbyname’
OpenSSL/crypto/crypto.c:638: warning: implicit declaration of function ‘EVP_SignInit’
OpenSSL/crypto/crypto.c:638: error: ‘md_ctx’ undeclared (first use in this function)
OpenSSL/crypto/crypto.c:639: warning: implicit declaration of function ‘EVP_SignUpdate’
OpenSSL/crypto/crypto.c:641: warning: implicit declaration of function ‘EVP_SignFinal’
OpenSSL/crypto/crypto.c:641: error: ‘crypto_PKeyObj’ has no member named ‘pkey’
OpenSSL/crypto/crypto.c: In function ‘crypto_verify’:
OpenSSL/crypto/crypto.c:669: error: expected ‘=’,‘asm’ or ‘__attribute__’ before ‘*’ token
OpenSSL/crypto/crypto.c:669: error: ‘digest’ undeclared (first use in this function)
OpenSSL/crypto/crypto.c:670: error: ‘EVP_MD_CTX’ undeclared (first use in this function)
OpenSSL/crypto/crypto.c:670: error: expected ‘;’ before ‘md_ctx’
OpenSSL/crypto/crypto.c:671: error: ‘EVP_PKEY’ undeclared (first use in this function)
OpenSSL/crypto/crypto.c:671: error: ‘pkey’ undeclared (first use in this function)
OpenSSL/crypto/crypto.c:686: warning: implicit declaration of function ‘X509_get_pubkey’
OpenSSL/crypto/crypto.c:686: error: ‘crypto_X509Obj’ has no member named ‘x509’
OpenSSL/crypto/crypto.c:692: warning: implicit declaration of function ‘EVP_VerifyInit’
OpenSSL/crypto/crypto.c:692: error: ‘md_ctx’ undeclared (first use in this function)
OpenSSL/crypto/crypto.c:693: warning: implicit declaration of function ‘EVP_VerifyUpdate’
OpenSSL/crypto/crypto.c:694: warning: implicit declaration of function ‘EVP_VerifyFinal’
OpenSSL/crypto/crypto.c:695: warning: implicit declaration of function ‘EVP_PKEY_free’
OpenSSL/crypto/crypto.c: In function ‘locking_function’:
OpenSSL/crypto/crypto.c:741: error: ‘CRYPTO_LOCK’ undeclared (first use in this function)
OpenSSL/crypto/crypto.c: In function ‘init_openssl_threads’:
OpenSSL/crypto/crypto.c:758: warning: implicit declaration of function ‘CRYPTO_num_locks’
OpenSSL/crypto/crypto.c:765: warning: implicit declaration of function ‘CRYPTO_set_id_callback’
OpenSSL/crypto/crypto.c:766: warning: implicit declaration of function ‘CRYPTO_set_locking_callback’
OpenSSL/crypto/crypto.c: In function ‘initcrypto’:
OpenSSL/crypto/crypto.c:814: warning: implicit declaration of function ‘ERR_load_crypto_strings’
OpenSSL/crypto/crypto.c:815: warning: implicit declaration of function ‘OpenSSL_add_all_algorithms’
OpenSSL/crypto/crypto.c:829: error: ‘crypto_X509_New’ undeclared (first use in this function)
OpenSSL/crypto/crypto.c:830: error: ‘crypto_X509Name_New’ undeclared (first use in this function)
OpenSSL/crypto/crypto.c:831: error: ‘crypto_X509Req_New’ undeclared (first use in this function)
OpenSSL/crypto/crypto.c:832: error: ‘crypto_X509Store_New’ undeclared (first use in this function)
OpenSSL/crypto/crypto.c:833: error: ‘crypto_PKey_New’ undeclared (first use in this function)
OpenSSL/crypto/crypto.c:835: error: ‘crypto_PKCS7_New’ undeclared (first use in this function)
OpenSSL/crypto/crypto.c:836: error: ‘crypto_netscapeSPKI_New’ undeclared (first use in this function)
OpenSSL/crypto/crypto.c:848: error: ‘X509_FILETYPE_PEM’ undeclared (first use in this function)
OpenSSL/crypto/crypto.c:849: error: ‘X509_FILETYPE_ASN1’ undeclared (first use in this function)
OpenSSL/crypto/crypto.c:852: error: ‘EVP_PKEY_RSA’ undeclared (first use in this function)
OpenSSL/crypto/crypto.c:853: error: ‘EVP_PKEY_DSA’ undeclared (first use in this function)
error: command 'gcc' Failed with exit status 1
要将自定义构建的软件与库链接,您需要安装C头.在ubuntu中,它们位于-dev包中(libname-dev).

在您的特定情况下,您需要安装libssl-dev(apt-get install libssl-dev)和

>如果您需要标准库中的SSL相关功能,那么您应该重建python 2.7安装.>对于自定义库SSL支持,只需重建库(pip uninstall&& pip install)

在ubuntu上使用SSL支持重新编译python的更多相关文章

  1. ios – 找不到lcrypto的库

    我正在尝试构建iOSAllJoyn项目,但我遇到了OpenSSL集成的问题.我一直在看这些方向:https://allseenalliance.org/docs-and-downloads/documentation/configuring-build-environment-ios-and-osx#unique_16我已经按照指示一直到XcodeIDEBuild,但现在我收到一个错误,上面写着:

  2. ios – 如何在iphone中生成推送通知的pem文件?

    使用这个link生成pem文件进行推送通知,但是我不明白以下步骤…

  3. 一个适用于多个iOS应用程序的APNS证书

    你有什么其他建议可以解决这个问题吗?解决方法不可以为多个应用使用相同的PEM文件.您需要为每个应用程序创建单独的PEM文件.因为苹果推送通知服务器无法通过一个PEM证书来识别您的不同应用程序.

  4. 我的Android项目的FIPS合规性

    我正在开发一个与安全相关的项目,并且必须确保它符合FIPS标准.根据我的理解,FIPS合规性是硬件和软件级别的合规性.目前有2款三星Android设备符合FIPS标准,即它们在硬件和软件级别都具有合规性.我的问题如下:–1)如果我想让我的Android应用程序符合FIPS标准,如果我在我的项目FIPS兼容中使用了唯一的加密模块,这就够了吗?

  5. 在Android上移植C lib / app

    我想将几个C/C++库移植到Android,它的可行性如何例如OpenSSL可以移植或者假设一个依赖于OpenSSL的应用程序,当我认为自己拥有libssl.so时,将它移植到Android的最佳方式是什么?什么是可用的工具,例如ScratchBox,还有其他选择吗?

  6. 如何使用Android中的Keytool为W7 32bit生成Keyhash(Facebook)

    name=openssl-0.9.8k_WIN32.zip.然后解压缩文件并运行以下命令:DON是我的系统名称,应替换为您的系统名称.

  7. php实现基于openssl的加密解密方法

    这篇文章主要介绍了php实现基于openssl的加密解密方法,结合实例形式分析了php自定义函数实现基于openssl的加密解密操作相关技巧,需要的朋友可以参考下

  8. PHP基于openssl实现非对称加密代码实例

    这篇文章主要介绍了PHP基于openssl实现非对称加密代码实例,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友可以参考下

  9. php无需编译安装openssl扩展的实现方法

    下面小编就为大家分享一篇php无需编译安装openssl扩展的实现方法,具有很好的参考价值,希望对大家有所帮助。一起跟随小编过来看看吧

  10. PHP基于openssl实现的非对称加密操作示例

    这篇文章主要介绍了PHP基于openssl实现的非对称加密操作,结合实例形式分析了openssl安装、密钥生成及php基于openssl的非对称加密算法相关操作技巧,需要的朋友可以参考下

随机推荐

  1. crontab发送一个月份的电子邮件

    ubuntu14.04邮件服务器:Postfixroot收到来自crontab的十几封电子邮件.这些邮件包含PHP警告.>我已经解决了这些警告的原因.>我已修复每个cronjobs不发送电子邮件(输出发送到>/dev/null2>&1)>我删除了之前的所有电子邮件/var/mail/root/var/spool/mail/root但我仍然每小时收到十几封电子邮件.这些电子邮件来自cronjobs,

  2. 模拟两个ubuntu服务器计算机之间的慢速连接

    我想模拟以下场景:假设我有4台ubuntu服务器机器A,B,C和D.我想在机器A和机器C之间减少20%的网络带宽,在A和B之间减少10%.使用网络模拟/限制工具来做到这一点?

  3. ubuntu-12.04 – 如何在ubuntu 12.04中卸载从源安装的redis?

    我从源代码在Ubuntu12.04上安装了redis-server.但在某些时候它无法完全安装,最后一次makeinstallcmd失败.然后我刚刚通过apt包安装.现在我很困惑哪个安装正在运行哪个conf文件?实际上我想卸载/删除通过源安装的所有内容,只是想安装一个包.转到源代码树并尝试以下命令:如果这不起作用,您可以列出软件自行安装所需的步骤:

  4. ubuntu – “apt-get source”无法找到包但“apt-get install”和“apt-get cache”可以找到它

    我正在尝试下载软件包的源代码,但是当我运行时它无法找到.但是当我运行apt-cache搜索squid3时,它会找到它.它也适用于apt-getinstallsquid3.我使用的是Ubuntu11.04服务器,这是我的/etc/apt/sources.list我已经多次更新了.我尝试了很多不同的debs,并没有发现任何其他地方的错误.这里的问题是你的二进制包(deb)与你的源包(deb-src)不

  5. ubuntu – 有没有办法检测nginx何时完成正常关闭?

    &&touchrestarted),因为即使Nginx没有完成其关闭,touch命令也会立即执行.有没有好办法呢?这样的事情怎么样?因此,pgrep将查找任何Nginx进程,而while循环将让它坐在那里直到它们全部消失.你可以改变一些有用的东西,比如睡1;/etc/init.d/Nginx停止,以便它会休眠一秒钟,然后尝试使用init.d脚本停止Nginx.你也可以在某处放置一个计数器,这样你就可以在需要太长时间时发出轰击信号.

  6. ubuntu – 如何将所有外发电子邮件从postfix重定向到单个地址进行测试

    我正在为基于Web的应用程序设置测试服务器,该应用程序发送一些电子邮件通知.有时候测试是使用真实的客户数据进行的,因此我需要保证服务器在我们测试时无法向真实客户发送电子邮件.我想要的是配置postfix,以便它接收任何外发电子邮件并将其重定向到一个电子邮件地址,而不是传递到真正的目的地.我正在运行ubuntu服务器9.10.先感谢您设置本地用户以接收所有被困邮件:你需要在main.cf中添加:然后

  7. ubuntu – vagrant无法连接到虚拟框

    当我使用基本的Vagrantfile,只配置了两条线:我看到我的虚拟框打开,但是我的流氓日志多次显示此行直到超时:然后,超时后的一段时间,虚拟框框终于要求我登录,但是太久了!所以我用流氓/流氓记录.然后在我的物理机器上,如果我“流氓ssh”.没有事情发生,直到:怎么了?

  8. ubuntu – Nginx – 转发HTTP AUTH – 用户?

    我和Nginx和Jenkins有些麻烦.我尝试使用Nginx作为Jenkins实例的反向代理,使用HTTP基本身份验证.它到目前为止工作,但我不知道如何传递带有AUTH用户名的标头?}尝试将此指令添加到您的位置块

  9. Debian / Ubuntu – 删除后如何恢复/ var / cache / apt结构?

    我在ubuntu服务器上的空间不足,所以我做了这个命令以节省空间但是现在在尝试使用apt时,我会收到以下错误:等等显然我删除了一些目录结构.有没有办法做apt-getrebuild-var-tree或类似的?

  10. 检查ubuntu上安装的rubygems版本?

    如何查看我的ubuntu盒子上安装的rubygems版本?只是一个想法,列出已安装的软件包和grep为ruby或宝石或其他:)dpkg–get-selections

返回
顶部