key-attestation

Android KeyGenParameterSpec.Builder ignoring setCertificateNotBefore and setCertificateNotAfter when not in Secure Hadware

ε祈祈猫儿з 提交于 2020-06-01 05:02:41
问题 I've created the following method that creates a KeyPair and logs the Certificate details: @RequiresApi(api = Build.VERSION_CODES.N) public void createRSAKeyPairtWithChallenge(final String alias, final String attestationChallenge) throws NoSuchProviderException, NoSuchAlgorithmException, InvalidAlgorithmParameterException, KeyStoreException, CertificateException, IOException { Calendar start = Calendar.getInstance(); Calendar end = new GregorianCalendar(2025,03,24); KeyPairGenerator