4

Is there any equivalent in bouncycastle lib for the following openssl command?

openssl verify -CAfile cert.pem Attesttation.pem

closed as off-topic by Tobi Nary, forest, Steffen Ullrich, TheJulyPlot, Rory Alsop Apr 1 '18 at 10:06

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This question does not appear to be about Information security within the scope defined in the help center." – Tobi Nary, forest, Steffen Ullrich, TheJulyPlot, Rory Alsop
If this question can be reworded to fit the rules in the help center, please edit the question.

  • - Update - The mentioned command openssl verifies that the second pem (in my example Attestation.pem) is in the chain with the first pem (cert.pem). In other words, it checks that the second pem was signed with the private key related to the public key of the first pem. For my purpouse I solve the issue simply using these few lines of code: X509Certificate attestationCert = ...//get the certificate X509Certificate rootCert = ...//get the certificate boolean isValid = attestationCert.verify(root.getPublicKey()); – rocky Apr 4 '18 at 12:33

Browse other questions tagged or ask your own question.