Android WPA/8021X自签名证书

Android WPA/8021X自签名证书,android,wifi,x509certificate,Android,Wifi,X509certificate,我正在编写一个应用程序,允许用户使用PEAP或TTLS和证书轻松地将android连接到企业无线网络 我可以添加基于EAP的wifi配置文件,并使用正确的凭据和证书将wpa_请求者连接到网络。部分原因是 但事实证明,证书的安装非常困难 目前,我正在应用程序中使用WebVew安装证书,以打开一个php文件,其中包含适当的头文件和证书。看见这将引发一个certManager实例,该实例需要证书的用户名 有没有更简洁的方法在android上安装CA证书 从我到目前为止的搜索来看,我猜没有。好的,因为我

我正在编写一个应用程序,允许用户使用PEAP或TTLS和证书轻松地将android连接到企业无线网络

我可以添加基于EAP的wifi配置文件,并使用正确的凭据和证书将wpa_请求者连接到网络。部分原因是

但事实证明,证书的安装非常困难

目前,我正在应用程序中使用WebVew安装证书,以打开一个php文件,其中包含适当的头文件和证书。看见这将引发一个certManager实例,该实例需要证书的用户名

有没有更简洁的方法在android上安装CA证书


从我到目前为止的搜索来看,我猜没有。

好的,因为我发布了这个冰淇淋三明治4.x,它在密钥库API中提供了一个解决方案:

enter code here
Certificate cert = null;
//some code to get the cert
Intent intent = new Intent("android.credentials.INSTALL");
intent.putExtra("name", "Swansea Uni WiFi Cert");
try {
intent.putExtra("CERT",cert.getEncoded());
} 
catch (CertificateEncodingException e)
{
e.printStackTrace();
SU1X.debug("error on cert install");
}
startActivityForResult(intent,0);

我想我会更新它,以防其他人尝试做同样的事情并发现这个问题。

好的,因为我发布了这个冰淇淋三明治4.x,它在密钥库API中提供了一个解决方案:

enter code here
Certificate cert = null;
//some code to get the cert
Intent intent = new Intent("android.credentials.INSTALL");
intent.putExtra("name", "Swansea Uni WiFi Cert");
try {
intent.putExtra("CERT",cert.getEncoded());
} 
catch (CertificateEncodingException e)
{
e.printStackTrace();
SU1X.debug("error on cert install");
}
startActivityForResult(intent,0);
我想我会更新这个,以防其他人尝试做同样的事情并发现这个问题