Create PKCS#12 file with self-signed certificate via OpenSSL in Windows for my Android App

后端 未结 3 1932
一向
一向 2021-01-30 00:06

I am writing an Android App that requires SSL certification for certain web requests. I need to build a PKCS12 file (.pfx) with Self-Signed Certificate.

I d

3条回答
  •  心在旅途
    2021-01-30 00:16

    I used the info at https://geekflare.com/openssl-commands-certificates/ and was successful in just 2 steps:

    1. openssl req -x509 -sha256 -nodes -days 3650 -newkey rsa:4096 -keyout mykey.key -out mypem.pem

    2. openssl pkcs12 -export -out myp12.p12 -inkey mykey.key -in mypem.pem

提交回复
热议问题