This blog explains the steps needed to create .p12 certificate using openSSL command. There can be other ways of generating the certificate
.
Step 1: The first step as part of creating .p12 certificate is to generate a private key and public certificate using openssl.
openssl req -newkey rsa:2048 -nodes -keyout dev_key.pem -x509 -days 365 -out dev_certificate.pem
Step 2: On executing the above command, provide your response to the questions.
Step 3: On creation of the public certificate and private key,now its time to review the certificate
using the below command.
openssl x509 -text -noout -in dev_certificate.pem
Step 4: The next step is to combine the private key and public certificate in PKCS#12 (P12) bundle using the below command. I have used the password as "password" in this case.
openssl pkcs12 -inkey dev_key.pem -in dev_certificate.pem -export -out dev_certificate.p12
Step 5: Finally validate your P12 file.
openssl pkcs12 -export -out dev_certificate.p12 -inkey dev_key.pem -in dev_certificate.pem
Step 6: Verify the folder to see if the .p12 certificate got generated or not.
Thanks for sharing informative article, I follow all your blogs. I am also tech expert working on my own project. It gives all the information about technology such as How Long Does iOs 15 Take To Install? , laptop issues, How to use DSLR cameras, etc.
ReplyDeleteSuch an informative article thanks for sharing this! I would like to tell you about my blog how to fix Kmode Exception Not Handled error.
ReplyDelete