일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
- otpkey
- kmip
- SWIFT
- Nodejs
- SSH
- apple
- 2FA
- 안드로이드
- FIDO2
- openssl
- MFA
- css
- appres
- 애플
- OTP
- 앱리소스
- WebAuthn
- 인증
- albumbook
- Xcode
- MSYS2
- SwiftUI
- git
- OSX
- 앱스토어
- MYSQL
- SSL
- 앨범북
- Android
- fido
- Today
- Total
인디노트
JRE cacerts 에 들어있는 인증서 리스트 본문
TrustManagerFactory trustManagerFactory = TrustManagerFactory.getInstance("PKIX");
trustManagerFactory.init((KeyStore) null);
TrustManager[] trustManagers = trustManagerFactory.getTrustManagers();
X509TrustManager trustManager = (X509TrustManager) trustManagers[0];
X509Certificate[] acceptedIssuers = trustManager.getAcceptedIssuers();
System.out.println("X509TrustManager count : " + trustManagers.length);
System.out.println("X509Certificate count : " + acceptedIssuers.length);
for(X509Certificate x509cert : acceptedIssuers)
{
String IssuerDNName = x509cert.getIssuerDN().getName();
BigInteger serialNumber = x509cert.getSerialNumber();
if(IssuerDNName.toLowerCase().indexOf("entrust")>=0)
{
System.out.println("x509cert IssuerDNName : " + IssuerDNName);
System.out.println("x509cert serialNumber : " + serialNumber);
}
}
'소스 팁 > Java, Android, Kotlin' 카테고리의 다른 글
Could not generate DH keypair (0) | 2018.06.01 |
---|---|
HTTPS (SSL 사이트) 읽어오기 - readFromSSLUrl (0) | 2018.06.01 |
Java code 에서 Java 버전 확인 (0) | 2018.06.01 |
How To Avoid javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated Problem Using Apache HttpClient (0) | 2018.05.31 |
How to read p12 file from system in Java? (0) | 2018.05.16 |