Войти
  • 779Просмотров
  • 1 год назадОпубликованоRahul Random Learnings

Learn CI/CD and Resolve RestAssured PKIX Error Using Certificate as Secret in CI/CD Pipeline

Create a new GitHub project Setup Github username and email for first time use Link remote repository to local folder Add Add src/main/test Add code Download bad SSL Root certificate Add root certificate to JDK21 Explain IntelliJ vulnerability detection in dependency Make sure the run is successful on local Create maven build pipeline on GitHub Explain build pipeline steps Run the project and show failure Add maven source and target properties for JDK 21 Run the project and show SSLHandshake PKIX exception Add BadSSL root certificate to GitHub CI/CD secret variable Add a new job step to fetch the certificate using secret name and export it to a file Add the exported certificate file to cacerts Run pipeline to show that code runs successfully Example Project Code: This video covers: How to create a maven project How to create a GitHub project How to link GitHub remote origin to local folder Explains what makes a folder maven project How to create GitHub Ci/Cd pipeline using existing templates What are the steps in a GitHub pipeline How to configure different versions and providers of JDK in pipeline How to add a SSL certificate to a GitHub secret How to use the GitHub secret to create a SSL certificate file at runtime How to add the certificate to Java cacerts How to solve sslhandshakeexception pkix path building failed in the pipeline Supporting Links: 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.