{"id":6694,"date":"2023-02-23T04:26:54","date_gmt":"2023-02-23T04:26:54","guid":{"rendered":"https:\/\/pariswells.com\/blog\/?p=6694"},"modified":"2023-02-23T04:32:28","modified_gmt":"2023-02-23T04:32:28","slug":"passwordstate-enable-tls1-2","status":"publish","type":"post","link":"https:\/\/pariswells.com\/blog\/research\/passwordstate-enable-tls1-2","title":{"rendered":"PasswordState Enable TLS1.2"},"content":{"rendered":"\n<p><strong>Test via Powershell<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"powershell\" class=\"language-powershell\">$connectionString = 'Data Source=%servername%\\PROD;Initial Catalog=%dbame%;User ID=passwordstate_user;Password=%password%'<br>$sqlConnection = New-Object System.Data.SqlClient.SqlConnection $connectionString<br>$sqlConnection.Open()<\/code><\/pre>\n\n\n\n<p><strong>Check web.config of Passwordstate<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">&lt;system.web>\n    &lt;compilation targetFramework=\"4.7.2\"\/> \n    &lt;httpRuntime targetFramework=\"4.7.2\" \/>\n&lt;\/system.web><\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"configure-for-strong-cryptography\">Configure for strong cryptography<\/h3>\n\n\n\n<p>And Reboot<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\.NETFramework\\v2.0.50727]\n      \"SystemDefaultTlsVersions\" = dword:00000001\n      \"SchUseStrongCrypto\" = dword:00000001\n[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\.NETFramework\\v4.0.30319]\n      \"SystemDefaultTlsVersions\" = dword:00000001\n      \"SchUseStrongCrypto\" = dword:00000001\n<\/code><\/pre>\n\n\n\n<p>For 32-bit applications that are running on 64-bit OSs, update the following subkey values:<\/p>\n\n\n\n<p>RegistryCopy<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">[HKEY_LOCAL_MACHINE\\SOFTWARE\\Wow6432Node\\Microsoft\\.NETFramework\\v2.0.50727]\n      \"SystemDefaultTlsVersions\" = dword:00000001\n      \"SchUseStrongCrypto\" = dword:00000001\n[HKEY_LOCAL_MACHINE\\SOFTWARE\\WOW6432Node\\Microsoft\\.NETFramework\\v4.0.30319]\n      \"SystemDefaultTlsVersions\" = dword:00000001\n      \"SchUseStrongCrypto\" = dword:00000001<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>Confirm SQL Trace<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"sql\" class=\"language-sql\">CREATE EVENT SESSION [tls] ON SERVER<br>ADD EVENT sqlsni.trace(<br>WHERE (([sqlserver].[like_i_sql_unicode_string]([text],N'%Handshake%TLS1.0%'))<br>OR ([sqlserver].[like_i_sql_unicode_string]([text],N'%Handshake%TLS1.1%'))<br>OR ([sqlserver].[like_i_sql_unicode_string]([text],N'%Handshake%TLS1.2%'))<br>))<br>ALTER EVENT SESSION [tls] ON SERVER<br>ADD TARGET package0.ring_buffer(SET max_events_limit=(100000),max_memory=(10240))<br>WITH (MAX_MEMORY=10240 KB,STARTUP_STATE=ON)<br>GO<br>ALTER EVENT SESSION tls ON SERVER STATE = START;<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Test via Powershell Check web.config of Passwordstate Configure for strong cryptography And Reboot For 32-bit applications that are running on 64-bit OSs, update the following subkey values: [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[3496],"class_list":["post-6694","post","type-post","status-publish","format-standard","hentry","category-research","tag-passwordstate"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/6694","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/comments?post=6694"}],"version-history":[{"count":4,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/6694\/revisions"}],"predecessor-version":[{"id":6700,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/6694\/revisions\/6700"}],"wp:attachment":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/media?parent=6694"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/categories?post=6694"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/tags?post=6694"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}