jjzjj

certification

全部标签

安卓自签名证书 : Trust anchor for certification path not found

我知道这个主题在很多地方都有讨论,但在我几乎浏览了所有这些之后,我决定创建我的第一个StackOverflow问题...问题如下:我想连接到使用证书限制访问并使用用户名/密码对用户进行身份验证的安全网络服务(https)。所以我有一个客户端证书(p12文件)和一个服务器证书(pem或der文件)。我尝试使用HttpURLConnection类,因为据我所知,Android将不再支持Apache库。这是我的实现(serverCert和clientCert是我的文件的完整路径)://LoadCAsfromourreferencetothefileCertificateFactorycf=C

安卓工作室 : Error:Cause: unable to find valid certification path to requested target

在何处获取有关AndroidStudio中此错误的更多信息Error:Cause:unabletofindvalidcertificationpathtorequestedtarget我不知道它来自哪里以及要寻找什么?下面是我的Build.gradle中的fragment。buildscript{repositories{jcenter(){url"http://jcenter.bintray.com/"}//mavenCentral()maven{url'https://maven.fabric.io/public'}}dependencies{classpath'com.andro

repo init报error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed

repoinit报error[SSL:CERTIFICATE_VERIFY_FAILED]certificateverifyfailed1repoinit出错的信息2解决方法在ubuntu执行repoinit的时候报了repoinit报error[SSL:CERTIFICATE_VERIFY_FAILED]certificateverifyfailed这种错误,解决方法是需要更新本地证书。问题现象以及解决方法如下所示:1repoinit出错的信息DownloadingReposourcefromhttps://mirrors.tuna.tsinghua.edu.cn/git/git-repof

go mod tidy 报错:x509: certificate signed by unknown authority 最佳实践

最近在docker中运行了一个ubuntu20的系统,在上面运行golang程序,使用gomodtidy后报错:tls:failedtoverifycertificate:x509:certificatesignedbyunknownauthority如:go:findingmoduleforpackagegoogle.golang.org/grpc/credentials/insecurego:findingmoduleforpackagegithub.com/shopspring/decimalgo:findingmoduleforpackagegithub.com/stretchr/te

Android - 通过本地 HTTPS 服务器的视频流 : SSL certificate rejected

我需要在Android中通过本地HTTPS服务器流式传输视频(当然要进行一些后台DRM)。然后Android媒体播放器连接到本地服务器,将视频内容“流”到屏幕上。在HTTP服务器上一切正常,但一旦我启用SSL,视频播放器就会停止。如果我使用浏览器从我的应用程序外部连接到HTTPS服务器,我会收到一个SSL警告,我可以忽略该警告,然后视频播放器启动。有没有办法禁用媒体播放器模块的严格证书处理?我看过很多关于如何使用我自己的HTTP连接执行此操作的帖子,但没有关于如何为媒体播放器执行此操作的帖子。谢谢!更新:用谷歌搜索“内部网证书”或“即时证书”,您会发现一些应该有效的东西。明天会试一试,

java - Android KeyStore : Failed to generate self-signed certificate , 无效的日期字符串

我正在尝试按照我的代码使用androidkeystore创建key对:Calendarstart=Calendar.getInstance();Calendarend=Calendar.getInstance();end.add(Calendar.YEAR,10);KeyPairGeneratorSpecspec=newKeyPairGeneratorSpec.Builder(MyApplication.getInstance()).setAlias(m_alias).setSubject(newX500Principal("CN="+m_alias)).setSerialNumber

android - 如何在 Android Studio 2.3.2 上解析 'unable to find valid certification path to requested target'

当我尝试创建EmptyActivity项目时,我在AndroidStudio2.3.2中遇到以下错误。当我尝试导入项目时,我也会得到这个。Error:Cause:unabletofindvalidcertificationpathtorequestedtarget这是我的gradlebuildscript{repositories{jcenter()}dependencies{classpath'com.android.tools.build:gradle:2.3.2'//NOTE:Donotplaceyourapplicationdependencieshere;theybelong

android - 如何从 key.pk8 和 certificate.pem 生成 Android Keystore?

所以今天我终于将我的SDK更新到22.0.0但这在AndroidManifest.xml中为android:debuggable="false"创建了一个错误,这意味着我不能再从外部签名和zipalign我的自己的apk。我一直在使用我自己的key.pk8和certificate.pem进行签名,但是eclipseADT需要一个keystore。有谁知道使用我已经生成的key构建keystore或找到解决方法的方法吗? 最佳答案 好的,所以我最终设法解决了这个问题。我从here下载了适用于Windows的opensslKeytool

android - PhoneGap 中的 INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES 错误

我制作了一个基于PhoneGap/Cordova的应用程序,在使用Chrome+Ripple进行测试时似乎运行良好。当我尝试将它安装到我的Android设备(已配置ADB,并显示在EclipseSDK中)时,我收到了INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES错误。通过阅读关于同一问题的现有帖子,我了解到它必须处理应用程序的重新安装。但是,这是我第一次尝试在任何设备上运行此应用程序,而且我不知道重新安装如何解决问题。如有任何解决错误的建议,我们将不胜感激。 最佳答案 在设置->应用->

如何解决 fatal: unable to access ‘https://github.com/Geekwaner/vue3-.git/‘: SSL certificate problem: una

这个错误通常表示SSL证书有问题,导致无法访问HTTPS的远程仓库。解决这个问题有几种方法:使用SSH协议而非HTTPS协议克隆仓库:gitclonegit@github.com:Geekwaner/vue3-.git这种方式需要先将SSHKey添加到GitHub账户中。忽略SSL证书验证问题(不推荐):gitclone-chttp.sslVerify=falsehttps://github.com/Geekwaner/vue3-.git这种方式会跳过SSL证书的验证,存在一定的风险,不建议在正式环境中使用。更新系统中的根证书:在某些情况下,可能是因为系统中的根证书不完整或过期导致无法验证SS