Change sign to always set the signature object to a new Sha256WithRsaSignature.