Apache SSL错误Zend Framework BoxAPi
我在连接OAuth2API时遇到问题,该APi需要HTTPS连接。因此,我试图在我的服务器(apache2)上配置ssl,以提供我给Box API的回调地址,这是一个https地址 但我一直在犯这样的错误:Apache SSL错误Zend Framework BoxAPi,apache,zend-framework,ssl,box-api,Apache,Zend Framework,Ssl,Box Api,我在连接OAuth2API时遇到问题,该APi需要HTTPS连接。因此,我试图在我的服务器(apache2)上配置ssl,以提供我给Box API的回调地址,这是一个https地址 但我一直在犯这样的错误: (Codice di errore: ssl_error_rx_record_too_long) 所以我在网上搜索了一下,发现我必须在我的服务器上设置ssl_mod。但是当我在文件中写入LoadModule行并重新启动服务器时,它说模块已经内置,所以我查看了配置。Httpd.conf有以
(Codice di errore: ssl_error_rx_record_too_long)
所以我在网上搜索了一下,发现我必须在我的服务器上设置ssl_mod。但是当我在文件中写入LoadModule行并重新启动服务器时,它说模块已经内置,所以我查看了配置。Httpd.conf有以下几行:
<IfModule ssl_module>
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
Listen 443
</IfModule>
[...]
<VirtualHost *:443>
ServerName localhost
SSLProxyEngine on
SSLEngine on
SSLCertificateFile /usr/local/zend/apache2/server.crt
SSLCertificateKeyFile /usr/local/zend/apache2/host.nopass.key
</VirtualHost>
我得到了页面的内容,但是如果我尝试连接外部服务(比如我必须使用的api),错误仍然是一样的。我现在正在查看日志。答案并不简单。但是,我必须更改证书并将CommonName设置为localhost。然后在httpd-ssl.conf中,我必须将virtualhost设置为与10088端口(而不是443端口)一起工作,因为我必须创建的URL作为https位于该端口上,因此我必须在ssl上激活正确的virtualhost才能使其工作。
这是我的2美分…请尝试更改您的http-ssl.conf文件。启动
SSLCipherSuite
的行-将其更改为SSLCipherSuite ALL:!阿努尔:!ADH:!埃努尔:!低:!EXP:RC4+RSA:+HIGH:+MEDIUM:+SSLv3
Tryied,没有帮助。我开始工作,但不工作,它一直给我那个错误。可能是浏览器的问题吗?好的。如果从ServerName
行中删除端口号怎么样?:ServerName localhost
#SSLRandomSeed startup file:/dev/random 512
#SSLRandomSeed startup file:/dev/urandom 512
#SSLRandomSeed connect file:/dev/random 512
#SSLRandomSeed connect file:/dev/urandom 512
[...]
Listen *:443
AddType application/x-x509-ca-cert .crt
AddType application/x-pkcs7-crl .crl
SSLPassPhraseDialog builtin
SSLSessionCache "shmcb:/usr/local/zend/apache2/logs/ssl_scache(512000)"
SSLSessionCacheTimeout 300
SSLMutex "file:/usr/local/zend/apache2/logs/ssl_mutex"
<VirtualHost _default_:443>
# General setup for the virtual host
DocumentRoot "/usr/local/zend/apache2/htdocs"
ServerName localhost:443
ServerAdmin
ErrorLog "/usr/local/zend/apache2/logs/error_log"
TransferLog "/usr/local/zend/apache2/logs/access_log"
SSLEngine on
SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
SSLCertificateFile "/usr/local/zend/apache2/server.crt"
#SSLCertificateFile "/usr/local/zend/apache2/conf/server-dsa.crt"
SSLCertificateKeyFile "/usr/local/zend/apache2/host.nopass.key"
#SSLCertificateKeyFile "/usr/local/zend/apache2/conf/server-dsa.key"
#SSLCertificateChainFile "/usr/local/zend/apache2/conf/server-ca.crt"
#SSLCACertificatePath "/usr/local/zend/apache2/conf/ssl.crt"
#SSLCACertificateFile "/usr/local/zend/apache2/conf/ssl.crt/ca-bundle.crt"
#SSLCARevocationPath "/usr/local/zend/apache2/conf/ssl.crl"
#SSLCARevocationFile "/usr/local/zend/apache2/conf/ssl.crl/ca-bundle.crl"
#SSLVerifyClient require
#SSLVerifyDepth 10
#<Location />
#SSLRequire ( %{SSL_CIPHER} !~ m/^(EXP|NULL)/ \
# and %{SSL_CLIENT_S_DN_O} eq "Snake Oil, Ltd." \
# and %{SSL_CLIENT_S_DN_OU} in {"Staff", "CA", "Dev"} \
# and %{TIME_WDAY} >= 1 and %{TIME_WDAY} <= 5 \
# and %{TIME_HOUR} >= 8 and %{TIME_HOUR} <= 20 ) \
# or %{REMOTE_ADDR} =~ m/^192\.76\.162\.[0-9]+$/
#</Location>
#SSLOptions +FakeBasicAuth +ExportCertData +StrictRequire
<FilesMatch "\.(cgi|shtml|phtml|php)$">
SSLOptions +StdEnvVars
</FilesMatch>
<Directory "/usr/local/zend/apache2/cgi-bin">
SSLOptions +StdEnvVars
</Directory>
BrowserMatch ".*MSIE.*" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
CustomLog "/usr/local/zend/apache2/logs/ssl_request_log" \
"%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
</VirtualHost>
https://localhost