zhuzengpeng / jscep

Automatically exported from code.google.com/p/jscep
MIT License
0 stars 0 forks source link

Update to Bouncy Castle 1.48 to fix issues with DES #88

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The following exceptions can be seen with the current dependency (Bouncy Castle 
1.47):

{{{
org.jscep.transaction.TransactionException: 
org.jscep.message.MessageDecodingException: org.bouncycastle.cms.CMSException: 
cannot create cipher: Cannot find any provider supporting 1.3.14.3.2.7
org.jscep.transaction.TransactionException: 
org.jscep.message.MessageDecodingException: org.bouncycastle.cms.CMSException: 
cannot create cipher: Cannot find any provider supporting 1.3.14.3.2.7
    at org.jscep.transaction.EnrollmentTransaction.send(EnrollmentTransaction.java:149)
    at org.jscep.client.Client.send(Client.java:607)
    at org.jscep.client.Client.enrol(Client.java:575)
    at com.opencsi.jscepcli.App.scepCLI(App.java:74)
    at com.opencsi.jscepcli.App.main(App.java:175)
Caused by: org.jscep.message.MessageDecodingException: 
org.bouncycastle.cms.CMSException: cannot create cipher: Cannot find any 
provider supporting 1.3.14.3.2.7
    at org.jscep.message.PkcsPkiEnvelopeDecoder.decode(PkcsPkiEnvelopeDecoder.java:63)
    at org.jscep.message.PkiMessageDecoder.decode(PkiMessageDecoder.java:135)
    at org.jscep.transaction.Transaction.decode(Transaction.java:92)
    at org.jscep.transaction.EnrollmentTransaction.send(EnrollmentTransaction.java:147)
    ... 4 more
Caused by: org.bouncycastle.cms.CMSException: cannot create cipher: Cannot find 
any provider supporting 1.3.14.3.2.7
    at org.bouncycastle.cms.jcajce.EnvelopedDataHelper.createCipher(Unknown Source)
    at org.bouncycastle.cms.jcajce.EnvelopedDataHelper$1.doInJCE(Unknown Source)
    at org.bouncycastle.cms.jcajce.EnvelopedDataHelper.execute(Unknown Source)
    at org.bouncycastle.cms.jcajce.EnvelopedDataHelper.createContentCipher(Unknown Source)
    at org.bouncycastle.cms.jcajce.JceKeyTransEnvelopedRecipient.getRecipientOperator(Unknown Source)
    at org.bouncycastle.cms.KeyTransRecipientInformation.getRecipientOperator(Unknown Source)
    at org.bouncycastle.cms.RecipientInformation.getContentStream(Unknown Source)
    at org.bouncycastle.cms.RecipientInformation.getContent(Unknown Source)
    at org.jscep.message.PkcsPkiEnvelopeDecoder.decode(PkcsPkiEnvelopeDecoder.java:61)
    ... 7 more
Caused by: java.security.NoSuchAlgorithmException: Cannot find any provider 
supporting 1.3.14.3.2.7
    at javax.crypto.Cipher.getInstance(DashoA13*..)
    at org.bouncycastle.jcajce.DefaultJcaJceHelper.createCipher(Unknown Source)
    ... 16 more
}}}

These exceptions ceased when I tested by changing the Bouncy Castle version to 
version 1.48.

More discussion can be found here:
https://github.com/asyd/jscep-cli-jdk6/issues/4

Original issue reported on code.google.com by ponti...@gmail.com on 3 Mar 2013 at 6:18

GoogleCodeExporter commented 9 years ago
Fixed in 
https://github.com/seize-the-dave/jscep/commit/727d0149a5bd5940acf3be202b6cad9a4
52f4f40

Original comment by da...@grant.org.uk on 4 Mar 2013 at 9:27