Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash with proguard #113

Open
bmesing opened this issue May 8, 2020 · 1 comment
Open

Crash with proguard #113

bmesing opened this issue May 8, 2020 · 1 comment
Labels

Comments

@bmesing
Copy link

bmesing commented May 8, 2020

Hi,
the REST-Mock crashes when proguard obfuscation is applied and HTTPS is enabled.
Here is the stacktrace:
2020-05-08 14:19:07.799 13382-13475/xxx E/AndroidRuntime: FATAL EXCEPTION: pool-10-thread-1
Process: xxx, PID: 13382
java.lang.NullPointerException: Attempt to invoke interface method 'java.lang.String java.security.PublicKey.getAlgorithm()' on a null object reference
at java.security.KeyStore$PrivateKeyEntry.(KeyStore.java:576)
at java.security.KeyStore$PrivateKeyEntry.(KeyStore.java:526)
at java.security.KeyStoreSpi.engineGetEntry(KeyStoreSpi.java:485)
at java.security.KeyStore.getEntry(KeyStore.java:1560)
at com.android.org.conscrypt.KeyManagerImpl.(KeyManagerImpl.java:72)
at com.android.org.conscrypt.KeyManagerFactoryImpl.engineGetKeyManagers(KeyManagerFactoryImpl.java:115)
at javax.net.ssl.KeyManagerFactory.getKeyManagers(KeyManagerFactory.java:305)

According to this article the reason may be, that a deprecated version of spongycastle code to generate a self signed certificate is used:
http://quabr.com:8182/59848764/how-to-fix-proguard-removes-java-security-code

Regards
Benjamin

@andrzejchm andrzejchm added the bug label Jun 3, 2020
@andrzejchm
Copy link
Owner

thanks @bmesing for reporting this, I'll take a look into it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants