Adding attributes to certificate request, java + bouncycastle 1.48
问题 I'm currently working on creating attribute certificate requests using bouncycastle 1.48. Since there were some changes in API (and I'm beginner in this matter) I am unnable to add attributes to created request My current code is KeyPairGenerator keyGen = KeyPairGenerator.getInstance("RSA"); keyGen.initialize(512); KeyPair rsaKey = keyGen.generateKeyPair(); PrivateKey privateKey = rsaKey.getPrivate(); PublicKey publicKey = rsaKey.getPublic(); System.out.println(privateKey.getEncoded());