Java programmatically add custom trusted + default certificates using SSLContext setDefault смотреть онлайн
Using a custom truststore in java as well as the default one with SSLContext setDefault
In this video we are going to setup truststore load certificates in it programmatically and then include all the certificates from JDK default lib/security/cacerts bundle as well and then set our truststore as default via SSLContext.setDefault method.
0:17 What is a cacert file
1:55 Location of cacerts file in JDK 8, 11, 18
2:25 Please Like and Subscribe!
2:33 What is SSLContext
4:41 Example of impact of setting SSLContext.setDefault method in shared JVM
7:49 Example project that shows how to create truststore programatically and set it via SSLContext.setDefault
8:14 First testcase that shows PKIX Exception for untrusted root certificate
9:36 Second test case that creates truststore programatically and then calls URL with untrusted root certificate
11:20 Third test case that calls google.com but gets PKIX exception since using custom truststore cleared the default certs
11:52 Fourth test case that uses cacerts and calls google.com
12:50 Explanation of @BeforeClass annotation in Junit which keeps a copy of SSLContext and @Before annotation method resets the SSLContext.setDfault so that each test case can run properly
14:46 Test case that covers code that adds custom SSL certificate to truststore including the default cacerts certificate bundle.
Example Project Code:
https://github.com/chandnarahul/import_default_cacerts_certificates_into_custom_truststore
This video covers:
How to create truststore and retain all cacerts certificates in it
How to create truststore and include all cacert certificates in it
How to create truststore and add all JDK cacert certificates in it
Using a custom truststore in java as well as the default one
How to create a certificate store from existing certificates in Java
Add custom SSL certificate to truststore but retain the default cacerts in Java
Supporting Links:
https://untrusted-root.badssl.com/
https://www.websecurity.digicert.com/security-topics/what-is-ssl-tls-https
Google Searches:
https://stackoverflow.com/questions/24555890/using-a-custom-truststore-in-java-as-well-as-the-default-one/6272315 #62723153
https://stackoverflow.com/questions/43594618/add-custom-ssl-certificate-to-truststore-but-retain-the-default-cacerts-in-java
https://stackoverflow.com/questions/24555890/using-a-custom-truststore-in-java-as-well-as-the-default-one/6272315 #62723153
Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «Java programmatically add custom trusted + default certificates using SSLContext setDefault» бесплатно и без регистрации, вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.
Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.
Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!
Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.