DB2 >=v9r7 links to ssl docu
[ach-master.git] / src / practical_settings / DBs.tex
1 %%\subsection{Database Systems}
2 % This list is based on : http://en.wikipedia.org/wiki/Relational_database_management_system#Market_share
3
4 \subsubsection{Oracle}
5 \todo{write this}
6
7 \subsubsection{SQL Server}
8 \todo{write this}
9
10
11
12
13 \subsubsection{MySQL}
14
15 \begin{description}
16 \item[Tested with Version:] Debian 7.0 and MySQL 5.5
17
18 \item[Settings:] \mbox{}
19
20 \paragraph*{my.cnf}\mbox{}\\
21
22 \begin{lstlisting}[breaklines]
23 [mysqld]
24 ssl
25 ssl-ca=/etc/mysql/ssl/ca-cert.pem
26 ssl-cert=/etc/mysql/ssl/server-cert.pem
27 ssl-key=/etc/mysql/ssl/server-key.pem
28 ssl-cipher=EECDH+aRSA+AESGCM:EECDH+aRSA+SHA384:EECDH+aRSA+SHA256:EDH+CAMELLIA256:EECDH:EDH+aRSA:+SSLv3:!aNULL:!eNULL:!LOW:!3DES:!MD5:!EXP:!PSK:!SRP:!DSS:!RC4:!SEED:!AES128:!CAMELLIA128:!ECDSA:AES256-SHA
29 \end{lstlisting}
30
31 \item[Additional settings:]
32
33
34 \item[Justification for special settings (if needed):]
35
36 % in case you have the need for further justifications why you chose this and that setting or if the settings do not fit into the standard Variant A or Variant B schema, please document this here
37
38 \item[References:]
39 +{\small \url{https://dev.mysql.com/doc/refman/5.5/en/ssl-connections.html}}
40
41
42 % add any further references or best practice documents here
43
44 \item[How to test:]
45
46 After restarting the server run the following query to see if the ssl settings are correct:
47 \begin{lstlisting}[breaklines]
48 show variables like '%ssl%';
49 \end{lstlisting}
50
51
52 \end{description}
53
54
55
56
57
58
59 \subsubsection{DB2}
60 \todo{write this}
61
62
63
64 % ssl_ciphersepcs v9r7:
65 % http://pic.dhe.ibm.com/infocenter/db2luw/v9r7/index.jsp?topic=%2Fcom.ibm.db2.luw.admin.config.doc%2Fdoc%2Fr0053617.html
66
67 % Configuring Secure Sockets Layer (SSL) support in a DB2 instance v9r7
68 % http://pic.dhe.ibm.com/infocenter/db2luw/v10r5/index.jsp?topic=%2Fcom.ibm.db2.luw.admin.sec.doc%2Fdoc%2Fc0053544.html
69
70
71
72
73
74 \subsubsection{Postgresql}
75
76 \begin{description}
77 \item[Tested with Version:] Debian 7.0 and PostgreSQL 9.1
78
79 \item[References:]
80
81 It's recommended to read 
82
83 {\small \url{http://www.postgresql.org/docs/current/static/runtime-config-connection.html#RUNTIME-CONFIG-CONNECTION-SECURITY}}
84 {\small \url{http://www.postgresql.org/docs/current/static/ssl-tcp.html}}
85 {\small \url{http://www.postgresql.org/docs/current/static/auth-pg-hba-conf.html}}
86
87 \item[Settings:] \mbox{}
88
89
90 To start in SSL mode the server.crt and server.key must exist in the server's data directory \$PGDATA. 
91
92 Starting with version 9.2, you have the possibility to set the path.
93
94 \begin{lstlisting}[breaklines]
95 ssl_key_file = '/your/path/server.key'
96 ssl_cert_file = '/your/path/server.crt'
97 ssl_ca_file = '/your/path/root.crt'
98 \end{lstlisting}
99
100 \paragraph*{postgresql.conf}\mbox{}\\
101
102 \begin{lstlisting}[breaklines]
103 #>=8.3
104 ssl = on 
105 ssl_ciphers = 'EECDH+aRSA+AESGCM:EECDH+aRSA+SHA384:EECDH+aRSA+SHA256:EDH+CAMELLIA256:EECDH:EDH+aRSA:+SSLv3:!aNULL:!eNULL:!LOW:!3DES:!MD5:!EXP:!PSK:!SRP:!DSS:!RC4:!SEED:!AES128:!CAMELLIA128:!ECDSA:AES256-SHA'
106 \end{lstlisting}
107
108
109
110 \item[How to test:]
111 To test your ssl settings, run psql with the sslmode parameter:
112 \begin{lstlisting}[breaklines]
113 psql "sslmode=require host=postgres-server dbname=database" your-username
114 \end{lstlisting}
115
116 \end{description}
117
118
119
120
121 \subsubsection{Informix}
122 \todo{write this}