Wiki source code of How to enable encryption

Last modified by Gideon Lombard on 2021/08/12 10:55

Hide last authors
Gideon Lombard 14.1 1 {{box cssClass="floatinginfobox"}}
Gideon Lombard 17.1 2 = Table of Contents =
Gideon Lombard 18.1 3
Gideon Lombard 17.1 4 {{toc start="2"/}}
Gideon Lombard 14.1 5 {{/box}}
Gideon Lombard 13.1 6
Gideon Lombard 1.1 7 == Website ==
8
Gideon Lombard 21.1 9
Gideon Lombard 27.1 10 1. Open the **web.config** on the web server with **Notepad**
Gideon Lombard 1.1 11 1. Look for the section with the connection strings
Gideon Lombard 27.1 12 {{code language="xml"}}<add name="Everest" connectionString="Data Source=127.0.0.1;Initial Catalog=[database name];Persist Security Info=True;User ID=[username];Password=[password]" ></add>
13 <add name="Icarus" connectionString="Data Source=127.0.0.1;Initial Catalog=[database name];Persist Security Info=True;User ID=[username];Password=[password]" ></add>
14 <add name="EverestWriteDB" connectionString="Data Source=127.0.0.1;Initial Catalog=[database name];Persist Security Info=True;User ID=[username];Password=[password]" ></add>
15 <add name="EverestDocuments" connectionString="Data Source=127.0.0.1;Initial Catalog=[database name];Persist Security Info=True;User ID=[username];Password=[password]" ></add>{{/code}}
Gideon Lombard 29.1 16 1. If there is not an **Encrypt=true and TrustServerCertificate=true** as part of the connection string you will need to add it separated with a **;**
17 {{code language="xml"}}<add name="Everest" connectionString="Data Source=127.0.0.1;Initial Catalog=Everest_Risk_Demo;Persist Security Info=True;User ID=[username];Password=[password];Encrypt=true;TrustServerCertificate=true" ></add>
18 <add name="Icarus" connectionString="Data Source=127.0.0.1;Initial Catalog=Everest_Risk_Demo;Persist Security Info=True;User ID=[username];Password=[password];Encrypt=true;TrustServerCertificate=true" ></add>
19 <add name="EverestWriteDB" connectionString="Data Source=127.0.0.1;Initial Catalog=Everest_Risk_Demo;Persist Security Info=True;User ID=[username];Password=[password];Encrypt=true;TrustServerCertificate=true" ></add>
20 <add name="EverestDocuments" connectionString="Data Source=127.0.0.1;Initial Catalog=Everest_Risk_Demo_Documents;Persist Security Info=True;User ID=[username];Password=[password];Encrypt=true;TrustServerCertificate=true" ></add>{{/code}}
Gideon Lombard 2.1 21
22 == Everest.NET ==
23
24
25 1. Get the clients current STP file that is provided to the users
Gideon Lombard 12.1 26 1. Run the Everest Administrator application and click the **STP Connection Files **menu item
27 [[image:1623327833111-701.png]]
28 1. On the next screen you click the **Load STP File** and load the STP file of your client
29 [[image:1623328089168-341.png]]
30 1. Ensure that the **Encrypt** is checked on the connection settings
31 [[image:1623328456852-301.png]]
32 1. Click the **Generate STP File**  and save the STP file again
33 [[image:1623328525432-818.png]]
Gideon Lombard 24.1 34
Gideon Lombard 27.1 35 == SMS Service Settings ==
36
37 1. (% id="cke_bm_1117S" style="display:none" %) (%%)Open the **Everest_SMSService.exe.config** on the web server with **Notepad**
38 1. Look for the section with the connection strings
Gideon Lombard 31.1 39 {{code language="xml"}}<connectionStrings>
Gideon Lombard 32.1 40 <add name="dbConn" providerName="System.Data.SqlClient" connectionString="Data Source=127.0.0.1;Initial Catalog=[database name];Persist Security Info=True;User ID=[username];Password=[password]"></add>
Gideon Lombard 31.1 41 </connectionStrings>{{/code}}
42 1. (% id="cke_bm_1488S" style="display:none" %) (%%) If there is not an **Encrypt=true** **and TrustServerCertificate=true **as part of the connection string you will need to add it separated with a **;**
43 {{code language="xml"}}<connectionStrings>
Gideon Lombard 32.1 44 <add name="dbConn" providerName="System.Data.SqlClient" connectionString="Data Source=127.0.0.1;Initial Catalog=[database name];Persist Security Info=True;User ID=[username];Password=[password];Encrypt=true;TrustServerCertificate=true"></add>
Gideon Lombard 31.1 45 </connectionStrings>{{/code}}
46
47 == Parent Service - Client ==
48
49 1. (% id="cke_bm_849S" style="display:none" %) (%%)Open the **EBSParentService.exe.config** on the web server with **Notepad**
50 1. Look for the section with the connection strings
Gideon Lombard 27.1 51 {{code language="xml"}}<databaseConnections>
Gideon Lombard 28.1 52 <add key="Everest" value="Data Source=127.0.0.1;Initial Catalog=[database name];User ID=[username];Password=[password]" ></add>
Gideon Lombard 27.1 53 </databaseConnections>{{/code}}
Gideon Lombard 32.1 54 1. (% id="cke_bm_1488S" style="display:none" %) (%%) If there is not an **Encrypt=true** **and TrustServerCertificate=true **as part of the connection string you will need to add it separated with a **;**{{code language="xml"}}<databaseConnections>
55 <add key="Everest" value="Data Source=127.0.0.1;Initial Catalog=[database name];User ID=[username];Password=[password];Encrypt=true;TrustServerCertificate=true" ></add>
56 </databaseConnections>{{/code}}
Gideon Lombard 27.1 57
Gideon Lombard 24.1 58 == Database Settings ==
59
60
61 === Parent Service ===
62
63 {{code language="SQL"}}
Gideon Lombard 29.1 64 UPDATE tblBatchParent SET txtConnStr = REPLACE(txtConnStr, ';Password=', ';Encrypt=true;TrustServerCertificate=true;Password=')
Gideon Lombard 25.1 65 WHERE txtConnStr NOT LIKE '%Encrypt%'
Gideon Lombard 24.1 66
Gideon Lombard 29.1 67 UPDATE tblBatchParent SET txtDocConnStr = REPLACE(txtDocConnStr, ';Password=', ';Encrypt=true;TrustServerCertificate=true;Password=')
Gideon Lombard 24.1 68 WHERE txtDocConnStr NOT LIKE '%Encrypt%'
69
Gideon Lombard 29.1 70 UPDATE tblBatchParent SET txtConnStrSchedule = REPLACE(txtConnStrSchedule, ';Password=', ';Encrypt=true;TrustServerCertificate=true;Password=')
Gideon Lombard 24.1 71 WHERE txtConnStrSchedule NOT LIKE '%Encrypt%'
72
Gideon Lombard 29.1 73 UPDATE tblBatchParent_Schedule SET txtConnStrProcess = REPLACE(txtConnStrProcess, ';Password=', ';Encrypt=true;TrustServerCertificate=true;Password=')
Gideon Lombard 24.1 74 WHERE txtConnStrProcess NOT LIKE '%Encrypt%'
75
Gideon Lombard 29.1 76 UPDATE tblBatchParent_Schedule SET txtDocConnStrProcess = REPLACE(txtDocConnStrProcess, ';Password=', ';Encrypt=true;TrustServerCertificate=true;Password=')
Gideon Lombard 24.1 77 WHERE txtDocConnStrProcess NOT LIKE '%Encrypt%'
78 {{/code}}
Gideon Lombard 26.1 79
Gideon Lombard 27.1 80 === System Settings ===
Gideon Lombard 26.1 81
82 {{code language="SQL"}}
83
Gideon Lombard 30.1 84 UPDATE prgSystemSettings SET txtDocumentDatabaseConnection = REPLACE(REPLACE(txtDocumentDatabaseConnection, ';pwd=', ';Encrypt=true;TrustServerCertificate=true;pwd='), ';Password=', ';Encrypt=true;TrustServerCertificate=true;Password=')
Gideon Lombard 26.1 85 WHERE txtDocumentDatabaseConnection NOT LIKE '%Encrypt%'
86
Gideon Lombard 30.1 87 UPDATE prgSystemSettings SET txtDocumentDatabaseConnection = REPLACE(REPLACE(txtAdditionalDocumentDatabaseConnection, ';pwd=', ';Encrypt=true;TrustServerCertificate=true;pwd='), ';Password=', ';Encrypt=true;TrustServerCertificate=true;Password=')
Gideon Lombard 26.1 88 WHERE txtAdditionalDocumentDatabaseConnection NOT LIKE '%Encrypt%'
89 {{/code}}
90
Gideon Lombard 27.1 91 === SSIS Service Steps ===
Gideon Lombard 26.1 92
93 {{code language="SQL"}}
Gideon Lombard 29.1 94 UPDATE tblSSISServiceSteps SET txtFromConnectionString = REPLACE(txtFromConnectionString, ';Password=', ';Encrypt=true;TrustServerCertificate=true;Password=')
Gideon Lombard 26.1 95 WHERE txtFromConnectionString NOT LIKE '%Encrypt%'
96
Gideon Lombard 29.1 97 UPDATE tblSSISServiceSteps SET txtFromConnectionString = REPLACE(txtToConnectionString, ';Password=', ';Encrypt=true;TrustServerCertificate=true;Password=')
Gideon Lombard 26.1 98 WHERE txtToConnectionString NOT LIKE '%Encrypt%'
99 {{/code}}

Need help?

If you need help with XWiki you can contact: