Created by Jeff Gaynor
on 6/10/14 at 2:37 PM
Fix for OAUTH-96, sort of. Some python clients send and invalid cert request
because the programmer does not set the version (to zero). Python then sends a
zero-length integer. Now, as this violates the PKCS10 spec., and should be rejected.
Bouncy Castle will ignore it but the Sun libraries will throw an extremely
unhelpful IOException. The method does the check and throws a much better exception.
"of the (PCKS10) request is set to zero.", iox);
if (pkcs10 == null) return "null";