cannot create signature: no such algorithm: MD5withDSA for provider BC

View some of the Frequently Asked Questions to our support staff. Included are some tips and tricks making this forum ideal for users getting started with GoAnywhere MFT. Note: Users can reply to existing topics but only our support staff can add new topics to this forum.
1 post Page 1 of 1


User avatar
Posts: 12
Joined: Thu Feb 16, 2017 11:20 am

Post by Support_Josh » Fri Feb 15, 2019 11:57 am
Why is the error "cannot create signature: no such algorithm: MD5withDSA for provider BC" being presented when attempting to encrypt and sign a file using a PGP Encrypt task?

The reason that this particular error is being thrown, is that by default, Java does not provide a method to do MD5 hashing of a file using a DSA key. When the file is being hashed with MD5 and is using a DSA key to do so, the application attempts to perform the requested action. However, since there is no method to do so built into the JVM, the error is thrown.

In order to resolve the error, simply switch from using a DSA (Diffie Hellman/DSS) key to using an RSA key when selecting a secret key to sign the encrypted file on the PGP Encrypt task. After selecting the new RSA key, the error will no longer be presented as there is a method built into the JVM to hash file using the MD5 algorithm with an RSA key.
Joshua Przybysz
Senior Support Analyst
e. [email protected]
p. 1.800.949.4696
1 post Page 1 of 1