SAMLUtils: fix signature, refactor generateRandomX509Certificate

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>