Hi Martin, > I don't know if this is the only problem, or if OpenSSL actually cares > about this, but that echo will be adding a newline to the end of the > string which might well be getting included in the signature. > > Using the -n flag to echo will stop it doing that. You are completely right. Adding the -e fixed it. Thanks! -l