In this video we are going to setup keystore + truststore and then load certificates in it programmatically.
00:08 What is the difference between keytool, truststore and keystore
03:20 What is the difference between truststore and keystore
https://docs.oracle.com/cd/E19509-01/...
03:56 Please Like and Subscribe !
04:04 Get Code from github
https://github.com/chandnarahul/creat...
04:42 Going through code in InteliJ
05:56 Preparation for solving PKIX by downloading Intermediate and Root Certificates
06:48 Reproduce PKIX exception running First Junit test case
07:22 Explain TrustStore code
09:28 Re-Run First testcase after setup to resolve PKIX exception
10:07 Preparation for second test case by downloading Root + Intermediate certificates and adding them to the project
10:19 Going through project README.md for Links
12:25 Adding Client Cert to solve for Http code 400
12:30 Going through KeyStore code
12:54 Adding p12 to temporary KeyStore via code
14:57 Explaning @After annotation which removes truststore and keystore from temp directory
15:20 Going through what we have covered till now
15:35 If you received pem file with key and cert then saving them separately
17:13 Convert base key to unencrypted PKCS8 DER format and using it in code
18:28 What I meant when I said DER is binary
19:43 Convert base key to unencrypted PKCS8 PEM format and using it in code
20:10 Difference in PKCS formats https://sslhow.com/pkcs8-vs-pkcs1-vs-...
20:19 Using git bash to convert base key to PKCS8 no-encryption pem format
20:37 Code needs key in DER format so adding method to convert PEM to DER
21:53 Convert base key to encrypted PKCS8 3DES PEM format with password as badssl.com and using it in code
23:30 Convert base key to encrypted PKCS8 AES PEM format with password as badssl.com
For using AES key with java8 please download Unlimited Strength Jurisdiction Policy Files https://www.oracle.com/java/technolog...
23:52 Explaining why we need to use BouncyCastle dependency for AES encrypted key
24:30 How to use BouncyCastle to read AES encrypted key
25:45 Using Bouncy castle to certificate and key from pem file directly
Supporting Links
https://badssl.com/
https://self-signed.badssl.com
https://badssl.com/download/
https://sslhow.com/pkcs8-vs-pkcs1-vs-...
https://www.openssl.org/docs/man1.1.1...
https://www.oracle.com/java/technolog...
Google Searches
https://stackoverflow.com/questions/1...
https://www.thesslstore.com/blog/how-...
https://stackoverflow.com/questions/2...
https://www.baeldung.com/java-read-pe...
Channel #Rahul Random Learnings #RahulRandomLearnings #RahulRandom Learnings
Opinion Disclaimer:
The views and opinions expressed here are my own and not the views of my employer.
The content uploaded on my channel is not intended to malign any religion, ethic group, club, organization, company, individual or anyone or anything.
Поделиться в:
Доступные форматы для скачивания:
Скачать видео mp4
Информация по загрузке:
Скачать аудио mp3
Похожие видео
array(10) {
[0]=>
object(stdClass)#7876 (5) {
["video_id"]=>
int(9999999)
["related_video_id"]=>
string(11) "TZqsGckcLyo"
["related_video_title"]=>
string(91) "Java programmatically add custom trusted + default certificates using SSLContext setDefault"
["posted_time"]=>
string(21) "2 года назад"
["channelName"]=>
string(22) "Rahul Random Learnings"
}
[1]=>
object(stdClass)#7849 (5) {
["video_id"]=>
int(9999999)
["related_video_id"]=>
string(11) "kAaIYRJoJkc"
["related_video_title"]=>
string(56) "Certificates from Scratch - X.509 Certificates explained"
["posted_time"]=>
string(21) "2 года назад"
["channelName"]=>
string(12) "OneMarcFifty"
}
[2]=>
object(stdClass)#7874 (5) {
["video_id"]=>
int(9999999)
["related_video_id"]=>
string(11) "uUrpicDpiWs"
["related_video_title"]=>
string(100) "Покушение на Зеленского / Предатель в Офисе президента"
["posted_time"]=>
string(24) "13 часов назад"
["channelName"]=>
string(10) "NEXTA Live"
}
[3]=>
object(stdClass)#7881 (5) {
["video_id"]=>
int(9999999)
["related_video_id"]=>
string(11) "qc_yglEarkc"
["related_video_title"]=>
string(140) "🎨 Сборка Wan2GP на бесплатном GPU 24gb|29 моделей для создание видео в одной сборке."
["posted_time"]=>
string(26) "52 минуты назад"
["channelName"]=>
string(16) "The_Angel_Studio"
}
[4]=>
object(stdClass)#7860 (5) {
["video_id"]=>
int(9999999)
["related_video_id"]=>
string(11) "HPSnQapJxQg"
["related_video_title"]=>
string(57) "Арест Z-блогера (English subtitles) @Max_Katz"
["posted_time"]=>
string(23) "7 часов назад"
["channelName"]=>
string(19) "Максим Кац"
}
[5]=>
object(stdClass)#7878 (5) {
["video_id"]=>
int(9999999)
["related_video_id"]=>
string(11) "HEQ4dcr9xMc"
["related_video_title"]=>
string(75) "How to Install Spring Security in Spring Boot (Without Breaking Everything)"
["posted_time"]=>
string(21) "6 дней назад"
["channelName"]=>
string(15) "Deividas Strole"
}
[6]=>
object(stdClass)#7873 (5) {
["video_id"]=>
int(9999999)
["related_video_id"]=>
string(11) "BJIohxOyHLQ"
["related_video_title"]=>
string(171) "Не пора ли снимать деньги со вкладов? / Блокировки и цифровой суверенитет || Дмитрий Потапенко*"
["posted_time"]=>
string(23) "9 часов назад"
["channelName"]=>
string(33) "Дмитрий ПОТАПЕНКО"
}
[7]=>
object(stdClass)#7883 (5) {
["video_id"]=>
int(9999999)
["related_video_id"]=>
string(11) "ohxT5dgtITc"
["related_video_title"]=>
string(169) "БЕЛКОВСКИЙ: "Это еще не конец!": как с Ираном, что с дочерьми Путина, чем болен Кадыров, Украина"
["posted_time"]=>
string(23) "6 часов назад"
["channelName"]=>
string(24) "И Грянул Грэм"
}
[8]=>
object(stdClass)#7859 (5) {
["video_id"]=>
int(9999999)
["related_video_id"]=>
string(11) "B93iBFETvos"
["related_video_title"]=>
string(72) "Купили УРАЛ Лесовоз. Первое знакомство!"
["posted_time"]=>
string(21) "1 день назад"
["channelName"]=>
string(11) "Combat Crew"
}
[9]=>
object(stdClass)#7877 (5) {
["video_id"]=>
int(9999999)
["related_video_id"]=>
string(11) "ZkL10eoG1PY"
["related_video_title"]=>
string(71) "TLS Handshake - EVERYTHING that happens when you visit an HTTPS website"
["posted_time"]=>
string(21) "2 года назад"
["channelName"]=>
string(20) "Practical Networking"
}
}