title: JcaX509CertificateConverter setcannot find the required provider no such provider BC
body: <p>I don't understand why BC is not being recognized as provider in the setProvider("BC"). I have downloaded the latest bouncycastle hier <a href="http://www.bouncycastle.org/latest_releases.html" rel="noreferrer">http://www.bouncycastle.org/latest_releases.html</a> imported it successfully. however when I run the following code:</p>
  
  <pre><code>X509Certificate crt=(X509Certificate)(new JcaX509CertificateConverter().setProvider("BC").getCertificate(crthold)); 
  </code></pre>
  
  <p>I get an exception that provider BC was not found.</p>
  
  <p>does any one please has an idea on how this could be fixed?
  below is the error message I am getting</p>
  
  <pre><code>org.bouncycastle.cert.jcajce.JcaX509CertificateConverter$ExCertificateException: cannot find required provider:no such provider: BC
  at org.bouncycastle.cert.jcajce.JcaX509CertificateConverter.getCertificate(Unknown Source)
  at client.ClientService.genCert(ClientService.java:399)
  </code></pre>