0

I bought an ssl for my backend, and I got 3 files, a private key, a public key and an authority ca certificate.

what i want to do is configure my backend to support https instead of http, my backend i created with spring framework.

after doing my research on the internet, I figured out that I should create .p12 file.

I found this commande

keytool -import -alias springboot -file myCertificate.crt -keystore springboot.p12 -storepass password

but this command uses a single .crt file to generate the .c12 file.

so, how can i use the 3 files i have to generate the .p12 file?

  • 1
    If your files are PEM format see multiple dupes at https://stackoverflow.com/questions/29603989/how-to-create-keystore-from-cer-files otherwise specify what format(s) you have. (Note in years past Java often required JKS so older answers often allow for that; nowadays that should not be necessary.) – dave_thompson_085 Jul 27 '21 at 15:44

0 Answers0