-
-
Notifications
You must be signed in to change notification settings - Fork 46
Customization
Daniel Quah edited this page Nov 12, 2019
·
2 revisions
Changing the default oAuth callback URL
- Change
config.hostname
value inconfig.properties
to your desired value and build your own APK.
Certificate pinning
There are many write up on the internet with regards to certificate pinning. This project shall not go into details. 1 2 3
A quote from okhttp docs
Warning: Certificate Pinning is Dangerous! Pinning certificates limits your server team's abilities to update their TLS certificates. By pinning certificates, you take on additional operational complexity and limit your ability to migrate between certificate authorities. Do not use certificate pinning without the blessing of your server's TLS administrator!
If you are still brave, carry on reading.
To enable certificate pinning:
- Run
cert_pinning.sh
$ ./cert.sh www.google.com
/C=US/ST=California/L=Mountain View/O=Google LLC/CN=www.google.com
47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=
/C=US/O=Google Trust Services/CN=Google Internet Authority G3
f8NnEFZxQ4ExFOhSN7EiFWtiudZQVD2oY60uauV/n78=
- Copy the sha256 value hash of the certificate's Subject Public Key Info to the app settings.