完整异常如下:
java.security.cert.CertificateException: org.apache.harmony.security.asn1.ASN1Exception: ASN.1 UTCTime: wrong format for DER, identifier at [114]
at org.apache.harmony.security.provider.cert.X509CertFactoryImpl.engineGenerateCertificate(X509CertFactoryImpl.java:112)
at java.security.cert.CertificateFactory.generateCertificate(CertificateFactory.java:195)
at com.iiordanov.util.TrustCertainHostNameFactory.getDefault(TrustCertainHostNameFactory.java:74)
at com.iiordanov.bVNC.AutoLoginActivity.initSSLCertainWithHttpClient(AutoLoginActivity.java:657)
at com.iiordanov.bVNC.AutoLoginActivity$1.run(AutoLoginActivity.java:238)
at java.lang.Thread.run(Thread.java:856)
Caused by: org.apache.harmony.security.asn1.ASN1Exception: ASN.1 UTCTime: wrong format for DER, identifier at [114]
at org.apache.harmony.security.asn1.DerInputStream.readUTCTime(DerInputStream.java:135)
at org.apache.harmony.security.asn1.ASN1UTCTime.decode(ASN1UTCTime.java:77)
at org.apache.harmony.security.asn1.ASN1Choice.decode(ASN1Choice.java:308)
at org.apache.harmony.security.asn1.BerInputStream.readSequence(BerInputStream.java:554)
at org.apache.harmony.security.asn1.DerInputStream.readSequence(DerInputStream.java:105)
at org.apache.harmony.security.asn1.ASN1Sequence.decode(ASN1Sequence.java:40)
at org.apache.harmony.security.asn1.BerInputStream.readSequence(BerInputStream.java:554)
at org.apache.harmony.security.asn1.DerInputStream.readSequence(DerInputStream.java:105)
at org.apache.harmony.security.asn1.ASN1Sequence.decode(ASN1Sequence.java:40)
at org.apache.harmony.security.asn1.BerInputStream.readSequence(BerInputStream.java:554)
at org.apache.harmony.security.asn1.DerInputStream.readSequence(DerInputStream.java:105)
at org.apache.harmony.security.asn1.ASN1Sequence.decode(ASN1Sequence.java:40)
at org.apache.harmony.security.asn1.ASN1Type.decode(ASN1Type.java:82)
at org.apache.harmony.security.provider.cert.X509CertImpl.(X509CertImpl.java:128)
at org.apache.harmony.security.provider.cert.X509CertFactoryImpl.getCertificate(X509CertFactoryImpl.java:614)
at org.apache.harmony.security.provider.cert.X509CertFactoryImpl.engineGenerateCertificate(X509CertFactoryImpl.java:105)
... 5 more
已经导入服务器给的crt证书,魅族mx4pro上正常通过,Rk3188的开发板报以上异常,Rk3188是4.2.2系统,请大神赐教。