android / codelab-android-network-security-config

Android Network Security Configuration codelab
https://codelabs.developers.google.com/codelabs/android-network-security-config
Apache License 2.0
78 stars 51 forks source link

I Can't see debug_certificate.crt #1

Closed derohimat closed 5 years ago

derohimat commented 7 years ago

https://codelabs.developers.google.com/codelabs/android-network-security-config/index.html?index=..%2F..%2Fio2017#6

yaraki commented 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