On 3 August 2010 20:50, Florent <fvig...@gmail.com> wrote:
> I can't post this code here because my company won't allow it. I work
> in a very competitive business that is not very keen on sharing
> code... I believe the MIT licence allows me to create private
> derivatives from jSCEP's code though. Tell me if I'm wrong. :-p
No, you're absolutely correct in this. I chose MIT because it is the
most permissive license offered by Google Code.
> I can still explain a little more how I developed a working SCEP
> server based on jSCEP (I work with iPhones too).
> I had to completely rewrite the message generation algorithm to use
> other classes from Bouncy Castle. The main classes I used are in the
> org.bouncycastle.cms package : CMSEnvelopedData,
> CMSEnvelopedDataGenerator, CMSException, CMSProcessable,
> CMSProcessableByteArray, CMSSignedData, CMSSignedDataGenerator. And in
> the org.bouncycastle.asn1 package : DERObjectIdentifier,
> DEROctetString, DERPrintableString, DERSet.
> In order to build the message, you will have to read this RFC :
> http://www.faqs.org/rfcs/rfc2315.html and of course the SCEP draft
> ( http://tools.ietf.org/id/draft-nourse-scep-20.txt ).
> You could also have a look at EJBCA's SCEP code.
> The Bouncy Castle classes above will automatically handle things like
> the signature and the encryption of the contents once you provide them
> with all the needed information.
I have been deliberately avoiding the bcmail package to try to reduce
the footprint of jSCEP, but if the implementation in jSCEP is faulty,
it might be time to reassess that decision.
> PS: I'm still not sure if the problem I encountered before that with
> jSCEP was caused by a mistake in jSCEP's implementation of the
> protocol if it was because of my use of it. All I know is that the
> signature that was created was considered invalid by several clients.
It's very likely that there are problems in the jSCEP implementation,
simply because there hasn't been much testing in this area. If you
could find a way to contribute your changes back, I'd be grateful.
Contact me off list if this is an avenue that can be explored.
Dave
Hi All,
I'm running into a the same (?) problem as the one described by
Florent in this thread using a iPhone as a Client. I tried the latest download
(1.1.3) and I still have the issue.
Not very familiar with the BC crypto code so am unsure of how to
address.
Has this been addressed and am I looking at a new problem? Does anyone
have any specific changes I can try?
Thanks,
Joe