Skip to content

Instantly share code, notes, and snippets.

@prongbang
Created January 8, 2021 16:22
Show Gist options
  • Save prongbang/eab6289cd0d1e1e151e471d4b58d1513 to your computer and use it in GitHub Desktop.
Save prongbang/eab6289cd0d1e1e151e471d4b58d1513 to your computer and use it in GitHub Desktop.

Run these commands from inside the server/ directory!

Create a certificate authority

openssl genrsa -out root-ca.privkey.pem 2048

Sign the certificate authority

openssl req -x509 -new -nodes -key root-ca.privkey.pem -days 100 -out root-ca.cert.pem -subj "/C=US/O=Debug Cert/CN=localhost"

create DER format crt for Android

openssl x509 -outform der -in root-ca.cert.pem -out debug_certificate.crt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment