Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to update the android keystore Signature algorithm name: SHA1withRSA (weak) to a strong key

How to update the android keystore Signature algorithm name: SHA1withRSA (weak) to a strong key

Signature algorithm name: SHA1withRSA (weak)
Subject Public Key Algorithm: 1024-bit RSA key (weak)
Version: 3

Warning:
The certificate uses the SHA1withRSA signature algorithm which is considered a security risk. This algorithm will be disabled in a future update.
The certificate uses a 1024-bit RSA key which is considered a security risk. This key size will be disabled in a future update.
like image 654
sejn Avatar asked Jan 24 '26 09:01

sejn


1 Answers

As the warning indicates, there are two problems. It is not possible to "update an algorithm ... to a strong key".

The certificate uses the SHA1withRSA signature algorithm which is considered a security risk. This algorithm will be disabled in a future update.

This is because the collision resistance of SHA-1 has been SHAttered. Use signatures with SHA-256 ("SHA256withRSA") or SHA-512 ("SHA512withRSA") to counter this. You could also take a look into PSS signtures, although the PKCS#1 v1.5 signature format that "SHA256withRSA" implements is still considered secure.

The certificate uses a 1024-bit RSA key which is considered a security risk. This key size will be disabled in a future update.

To have a 128 bit security it is necessary to upgrade to 3072 bit RSA key pairs. This means regeneration of the key pair and probably requesting a new certificate as well. 2048 bit RSA keys are still in common use, but I would only use this minimum key size for backwards compatibility reasons (or, indeed, if larger key sizes are not feasible for either you or your CA).

like image 87
Maarten Bodewes Avatar answered Jan 26 '26 23:01

Maarten Bodewes



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!