短篇小说:根据我是使用无线还是移动数据,我遇到了不同的Android应用行为。这与使用自签名证书的https相关。
长话:我运行了一个tomcat实例,配置了SSL连接器和自签名证书。这一切都很棒。我可以使用https从我的桌面和我的Android应用程序访问它。对于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访问同一个网址我的应用请求,并收到此错误:
Error 111 (net::ERR_TUNNEL_CONNECTION_FAILED): Unknown error.
如果我使用wifi,我看不出任何问题。该问题在移动数据上一致地重现。我的供应商是&amp; t。有什么想法吗?