我已经完成了如何在localhost上使用https/SSL中详述的步骤?但这会为我的机器名设置一个自签名证书,当通过https:// localhost浏览时,我会收到IE警告.
有没有办法为"localhost"创建自签名证书以避免此警告?
操作系统: Ubuntu 12.04 64位
PHP版本: 5.4.6-2~precision + 1
当我测试一个https页面时,我正在通过内置的webserver(php5 -S localhost:8000)编写,Firefox(16.0.1)说"问题加载:连接被中断",而终端告诉我":: 1" :37026无效请求(不支持的SSL请求)".
phpinfo()告诉我:
OpenSSL的:
OpenSSL支持:已启用
OpenSSL库版本OpenSSL 1.0.1 2012年3月14日
OpenSSL标题版本OpenSSL 1.0.1 2012年3月14日
是的,http页面工作得很好.
有任何想法吗?
我正在尝试在本地主机上设置ssl我已经删除了http://madurad.wordpress.com/2014/04/25/redirect-http-to-https-with-wamp-server/以及其他许多但无法获取成功.我坚持使用httpd-ssl.conf的语法.当我设置时,我的apache服务器停机了
<Directory "c:/wamp/www/">
Options Indexes FollowSymLinks
AllowOverride all
Require all granted
SSLOptions +StdEnvVars
</Directory>
Run Code Online (Sandbox Code Playgroud)
我尝试了许多其他的喜欢
<Directory "c:/wamp/www/">
SSLOptions +StdEnvVars
</Directory>
Run Code Online (Sandbox Code Playgroud)
什么是无法得到的问题....
我今天在Windows 7计算机上安装了最新的WAMP(来自wampserver.com).
我已经启用了SSL PHP > PHP Extensions > php_openssl
和 Apache > Apache Modules > open_ssl
但是当我尝试使用https://访问任何内容时,我会收到"问题加载页面".apache_error.log说
[Thu Jun 27 16:25:08.622056 2013] [ssl:warn] [pid 4812:tid 356] AH01882: Init: this version of mod_ssl was compiled against a newer library (OpenSSL 1.0.1e 11 Feb 2013, version currently loaded is OpenSSL 1.0.1d 5 Feb 2013) - may result in undefined or erroneous behavior
[Thu Jun 27 16:25:08.973076 2013] [ssl:warn] [pid 4812:tid 356] AH01882: Init: this version of mod_ssl was compiled against …Run Code Online (Sandbox Code Playgroud) 我关注了网站:入门样本.当AdobeCreativeSDK.init调用该函数时,它https://adobeid-na1.services.adobe.com/ims/check/v4/token首先使用请求方法OPTIONS 调用,然后使用请求方法POST 调用,两者都返回状态代码200 OK.对POST请求的响应返回{"error":"invalid_credentials"},我不知道为什么以及如何解决这个问题.
任何帮助将不胜感激.
我试图将图像从url加载到我的android ImageView.但它没有为我的网址提供图片.但当我调用另一个示例网址时,它会加载到ImageView上
我的网址为空
https://192.168.100.15/HeyVoteWeb/Home/GetImage/d9cbd32c-47fc-4644-ab97-1f525c96e9ed/100000102
Run Code Online (Sandbox Code Playgroud)
此示例网址适用于我
https://upload.wikimedia.org/wikipedia/commons/4/47/PNG_transparency_demonstration_1.png
Run Code Online (Sandbox Code Playgroud)
这是我正在处理的代码
public class GetImage extends Activity{
ImageView postpic1;
Bitmap b;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.all_posts);
postpic1 = (ImageView) findViewById(R.id.postpic1);
information info = new information();
info.execute("");
}
public class information extends AsyncTask<String, String, String>
{
@Override
protected String doInBackground(String... arg0) {
try
{
URL url = new URL("https://localhost/HeyVoteWeb/Home/GetImage/d9cbd32c-47fc-4644-ab97-1f525c96e9ed/100000102");
InputStream is = new BufferedInputStream(url.openStream());
b = BitmapFactory.decodeStream(is);
} catch(Exception e){}
return null;
}
@Override
protected void onPostExecute(String result) {
postpic1.setImageBitmap(b);
}
}
}
Run Code Online (Sandbox Code Playgroud)