Hi Umesh,
There is nothing to do with naming convention as .txt or .pfx. can you please check your own private key is well PGP formatted. and also check CA team that the key which you are using to applying digital signature is valid one or not.
If it's possible please share your module configuration screen shots.
Thanks & Regards,
Pavan