{"id":860,"date":"2023-09-14T15:10:34","date_gmt":"2023-09-14T13:10:34","guid":{"rendered":"https:\/\/anjo.pt\/keyword-oracle\/?p=860"},"modified":"2023-09-14T15:10:36","modified_gmt":"2023-09-14T13:10:36","slug":"we-did-changed-nothing-how-to-set-up-aes-encrypted-username-password-in-db2-client","status":"publish","type":"post","link":"https:\/\/anjo.pt\/keyword-oracle\/2023\/09\/14\/we-did-changed-nothing-how-to-set-up-aes-encrypted-username-password-in-db2-client\/","title":{"rendered":"We did changed nothing. How to set up AES encrypted username password in DB2 client?"},"content":{"rendered":"\n<p>It all started with the connections from Goldengate to DB2 not working anymore:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n2023-09-11 15:31:27  WARNING OGG-00552  Database operation failed: Couldn&#039;t connect to DB2_DB1. ODBC error: SQLSTATE 08001 native database error -30073. &#x5B;IBM]&#x5B;CLI Driver] SQL30073N  &quot;0x0000&quot; Parameter value &quot;0x0000&quot; is not supported.  SQLSTATE=58017.\nFailed to open data source DB2_DB1for user GG01.\n<\/pre><\/div>\n\n\n<p>The DB2 administrators say &#8220;We changed nothing. Maybe you changed something? And the DB2 documentation says nothing for this error.<\/p>\n\n\n\n<p>Next email from DB2 admins &#8220;well, we did activated the option TCPALVER=SERVER_ENCRYPT and maybe that is the problem&#8221;<\/p>\n\n\n\n<p>Indeed, that was the problem. With that option on the server side, then:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><strong>SERVER_ENCRYPT (recommended)<\/strong><\/p>\n\n\n\n<p><br>A user ID and password are required for connection requests. Kerberos tickets are also accepted. Also, one of the following conditions must be true:<\/p>\n\n\n\n<p>The user ID and password is AES (Advanced Encryption Standard)-encrypted.<\/p>\n\n\n\n<p>&#8230;<\/p>\n\n\n\n<p>Non-encrypted security credentials are not accepted unless the connection is secured by the TCP\/IP network. DES-based (Data Encryption Standard) encryption is also considered insecure.<\/p>\n<\/blockquote>\n\n\n\n<p>Ok, I needed to activate on my client side the AES encrytion for username and password. Not so difficult:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\ndb2cli writecfg add -dsn DB2_DB1  -parameter &quot;Authentication=SERVER_ENCRYPT_AES&quot;\n<\/pre><\/div>\n\n\n<p>And voil\u00e0, the connection to DB2 works again, and it is secured.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>It all started with the connections from Goldengate to DB2 not working anymore: The DB2 administrators say &#8220;We changed nothing. Maybe you changed something? And the DB2 documentation says nothing for this error. Next email from DB2 admins &#8220;well, we did activated the option TCPALVER=SERVER_ENCRYPT and maybe that is the problem&#8221; Indeed, that was the [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[75,5],"tags":[],"class_list":{"0":"post-860","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-db2-zos","7":"category-goldengate","8":"czr-hentry"},"_links":{"self":[{"href":"https:\/\/anjo.pt\/keyword-oracle\/wp-json\/wp\/v2\/posts\/860","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/anjo.pt\/keyword-oracle\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/anjo.pt\/keyword-oracle\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/anjo.pt\/keyword-oracle\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/anjo.pt\/keyword-oracle\/wp-json\/wp\/v2\/comments?post=860"}],"version-history":[{"count":1,"href":"https:\/\/anjo.pt\/keyword-oracle\/wp-json\/wp\/v2\/posts\/860\/revisions"}],"predecessor-version":[{"id":861,"href":"https:\/\/anjo.pt\/keyword-oracle\/wp-json\/wp\/v2\/posts\/860\/revisions\/861"}],"wp:attachment":[{"href":"https:\/\/anjo.pt\/keyword-oracle\/wp-json\/wp\/v2\/media?parent=860"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/anjo.pt\/keyword-oracle\/wp-json\/wp\/v2\/categories?post=860"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/anjo.pt\/keyword-oracle\/wp-json\/wp\/v2\/tags?post=860"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}