app: fix rsa signature generation