2

短篇小说:我正在体验不同的 android 应用程序行为,具体取决于我是使用无线数据还是移动数据。这看起来与使用带有自签名证书的 https 有关。

长话短说:我有一个运行的 tomcat 实例,配置了 SSL 连接器和自签名证书。这一切都很好。我可以从我的桌面和我的 android 应用程序使用 https 访问它。对于 android 应用程序,我不得不使用 BKS 来持有证书,但我也设法让它工作。问题?当我将手机切换到移动数据时,出现以下故障:

<?xml version='1.0'?>
    <!DOCTYPE html PUBLIC '-//WAPFORUM//DTD XHTML Mobile 1.0//EN'
    'http://www.wapforum.org/DTD/xhtml-mobile10.dtd'>
    <html xmlns='http://www.w3.org/1999/xhtml'>
    <head>
    <title>The request failed</title>
    </head>
    <body>
    <p><big>The request is not understood.</big></p>
    <p>
    <i>Technical description:</i><br/>400 Bad Request - Check your spelling for the requested URL</p>
    </body>
    </html>

我试图从手机上运行的 chrome 访问我的应用程序请求的相同 url,并收到此错误:

Error 111 (net::ERR_TUNNEL_CONNECTION_FAILED): Unknown error.

如果我使用 wifi,我认为没有任何问题。该问题在移动数据上始终如一地重现。我的提供商是 at&t。有任何想法吗?

4

0 回答 0