bamlab / react-native-app-security

Easily implement usual security measures in React Native Expo apps. Made by BAM ❤️💙💛
69 stars 3 forks source link

'*' as hostname? #8

Closed leabaertschi closed 5 months ago

leabaertschi commented 5 months ago

Hi, can I use * instead of a specific hostname?

matthieugicquel commented 5 months ago

Hello, what's your use case for doing this?

The certificate that you pin will only be associated with a specific domain, so I don't see how pinning every domain to the same certificate would be something you want to do.

leabaertschi commented 5 months ago

Hi, we use the same code base to then create different apps that use different certificates and we thought that we could just add all the certificates to one wildcard and it would try them all until one works. But in the end we decided that it does not really hurt to define all domains in all apps no matter whether they're used or not. So the question becomes obsolete. Thanks a lot for the fast answer though.