Looking at the source of CVCertificate.java, I can see that the verify
method throws an exception if the verification is false so if you don't
get any exception the verification should be successful.
For the second question I would try with the Bouncy Castle provider
which should have support for that algorithm.
> Hi all,
> I am trying to verify the inner signature of a authenticated cvc request.
> The following is an extract of my stupid codes (which finally return no
> error/exception in the console):
> File file = new file("c:/absp.req");
> byte bytes = FileHelper.loadFile(file);
> CVCAuthenticatedRequest cvcAR =
> CVCertificate cvcReq = cvcAR.getRequest();
> CVCertificateBody cvcBody = cvcReq.getCertificateBody();
> CVCPublicKey cvcPK = cvcBody.getPublicKey();
> cvcReq.verify(cvcPK, "SunRsaSign");
> catch ...
> I would like to know if this implies that the verification is successful?
> Furthermore, the only provider that can pass the verification is
> "SunRsaSign", but it seems that it cannot verify SHA256WITHECDSA algorithm.
> Is there any providers which can also verify SHA256WITHECDSA?
PrimeKey Solutions offers a commercial EJBCA support subscription and
training for EJBCA. Please see http://www.primekey.se or contact
info@... for more information.