Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Db2 JDBC Driver EncyptionMethod or AuthenticationMethod

I am trying to connect Db2 database with ColdFusion. I am using IBM Db2 on Cloud and am getting the below error:

Connection verification failed for data source: "DatabaseName" java.sql.SQLNonTransientConnectionException: [Macromedia][DB2 JDBC Driver]The encryptionMethod or authenticationMethod specified is not supported by the DB2 server you are connecting to. The root cause was that: java.sql.SQLNonTransientConnectionException: [Macromedia][DB2 JDBC Driver]The encryptionMethod or authenticationMethod specified is not supported by the DB2 server you are connecting to

like image 952
Muhammad Omer Khan Avatar asked Mar 13 '26 18:03

Muhammad Omer Khan


1 Answers

Generally speaking, it may be caused when not adding AuthenticationMethod property. Here are some related information about it.

Connecting to Db2 Warehouse using DataDirect driver
https://www.ibm.com/support/knowledgecenter/en/SSULQD_1.7.2/com.ibm.nz.hdp.doc/t_hdp_datadirect.html

<connectionURL>jdbc:ibm:db2://<your_hostname>:<port>;databaseName=bludb;AuthenticationMethod=encryptedPassword</connectionURL>

C&DS encryptionMethod or authentication specified not supported
https://www.ibm.com/support/pages/cds-encryptionmethod-or-authentication-specified-not-supported

Other AuthenticationMethods are:
AuthenticationMethod=clearText (the default),
AuthenticationMethod= encryptedPassword,
AuthenticationMethod=encryptedPasswordAES,
AuthenticationMethod=encryptedUIDPassword,
AuthenticationMethod= encrytpedUIDPasswordAES,

Hope this helps.

like image 181
hidehy Avatar answered Mar 16 '26 10:03

hidehy



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!