Generate Keys [Snippet]

ရုံးမှာ encrypt , decrypt တွေ လုပ်ဖို့ key တွေ အမျိုးမျိုး ရှိတာနဲ့ အကုန် ပြန်ရှာရ လွယ်အောင် စုထားတာပါ။

Create Public and Private Key

openssl req -x509 -nodes -days 1095 -newkey rsa:2048 -keyout my.key -out my.crt

Create Key Pair to P12 key

openssl pkcs12 -export -in my.crt -inkey my.key -out my.p12

Create PEM Key

openssl pkcs12 -in my.p12 -nodes -out my.pem

Create PFX Key

openssl pkcs12 -inkey my.pem -in my.crt -export -out my.pfx

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Discover more from Saturngod

Subscribe now to keep reading and get access to the full archive.

Continue reading