Support for BouncyCastle to find strongest signature/digest algorithm

Test based on work of JohanPeeters. Thx.
Fix for: https://github.com/jscep/jscep/issues/28