• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1The keystore `adservices_test_server.p12` has been generated with the following commands and using
2the password `adservices_test`.
3The cert file `adservices_test_server.crt` is then copied under `res/raw` to make the app to
4trust the server.
5
6
7```shell
8$ openssl req -new -x509 -nodes -sha1 -days 3650 \
9    -subj "/CN=AdServicesTests" \
10    -addext "subjectAltName=DNS:localhost,IP:127.0.0.1" \
11    -out /tmp/adservices_test_server.crt \
12    -keyout /tmp/adservices_test_server.key
13$ openssl pkcs12 -export -clcerts \
14    -in /tmp/adservices_test_server.crt \
15    -inkey /tmp/adservices_test_server.key \
16    -out adservices_test_server.p12
17```