Closed derohimat closed 5 years ago
You have to create the file yourself.
openssl genrsa -out root-ca.privkey.pem 2048
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" -extensions v3_ca -addext "subjectAltName = DNS:localhost,IP:127.0.0.1"
openssl x509 -outform der -in root-ca.cert.pem -out debug_certificate.crt
https://codelabs.developers.google.com/codelabs/android-network-security-config/index.html?index=..%2F..%2Fio2017#6