Changed algorithm to sha256withRSAencryption since SHA1 is nearing End Of Life.