Initial commit
Change-Id: I6a4444e3c193dae437cd7929f4c39aba7b749efa
diff --git a/doc/single_host/01.pem b/doc/single_host/01.pem
new file mode 100644
index 0000000..7e351a8
--- /dev/null
+++ b/doc/single_host/01.pem
@@ -0,0 +1,60 @@
+Certificate:
+ Data:
+ Version: 3 (0x2)
+ Serial Number: 1 (0x1)
+ Signature Algorithm: sha1WithRSAEncryption
+ Issuer: CN=ca.localdomain, C=FR, ST=BdR, L=Aix, O=fD, OU=Tests
+ Validity
+ Not Before: Jun 1 19:37:14 2017 GMT
+ Not After : Jun 1 19:37:14 2018 GMT
+ Subject: C=FR, ST=BdR, O=fD, OU=Tests, CN=peer1.localdomain
+ Subject Public Key Info:
+ Public Key Algorithm: rsaEncryption
+ Public-Key: (1024 bit)
+ Modulus:
+ 00:c0:e4:f3:ac:bb:49:bf:43:d3:3e:b6:66:60:0a:
+ 94:ff:e3:a9:07:cf:59:28:8d:f2:9e:bd:96:a9:7d:
+ 10:e4:9f:f5:fb:17:ec:d9:16:d2:0f:8d:82:3e:18:
+ a9:38:97:f9:e4:ac:e3:72:f9:c3:df:8a:d2:e9:88:
+ 67:c1:70:14:94:02:3b:ba:8c:b8:3e:9d:d1:bf:f3:
+ e6:a1:91:c2:ee:87:80:3d:b8:99:33:82:2d:bd:1b:
+ 27:9c:f5:b6:64:b4:55:b7:96:31:c0:81:8b:46:c1:
+ c0:c7:7a:43:39:02:1a:8f:6a:e3:0a:d7:f7:79:07:
+ ab:35:c5:43:64:23:d0:62:05
+ Exponent: 65537 (0x10001)
+ X509v3 extensions:
+ X509v3 Basic Constraints:
+ CA:FALSE
+ Netscape Comment:
+ OpenSSL Generated Certificate
+ X509v3 Subject Key Identifier:
+ 35:F8:4A:C9:A9:56:EA:99:5D:58:41:E7:90:78:83:23:02:95:0A:3C
+ X509v3 Authority Key Identifier:
+ keyid:3A:B5:BD:DF:AB:8D:71:77:F7:1E:FF:2C:EB:B2:D3:2F:52:D6:20:CE
+
+ Signature Algorithm: sha1WithRSAEncryption
+ 2b:e2:c6:33:8a:fc:b3:d6:55:d6:16:d4:f7:2d:d8:49:78:6a:
+ f4:12:ec:26:82:2d:15:73:78:b7:4e:34:39:c7:0f:25:3c:73:
+ a3:13:b8:c1:5c:b6:a4:76:78:71:66:0f:6a:f4:53:b9:80:f7:
+ 41:dd:5f:0d:7d:7b:d3:b6:d6:8e:fb:81:6f:57:24:d7:ac:5a:
+ 52:66:ca:48:a9:37:db:7e:07:b2:ee:8c:81:a6:e6:9c:b3:40:
+ f2:f0:2d:57:d5:20:37:20:5c:23:9c:5e:58:c9:0c:c7:88:02:
+ e7:a1:15:9a:08:cf:fd:c0:7a:97:a2:3a:a1:82:19:41:86:4f:
+ af:3e
+-----BEGIN CERTIFICATE-----
+MIICpDCCAg2gAwIBAgIBATANBgkqhkiG9w0BAQUFADBfMRcwFQYDVQQDDA5jYS5s
+b2NhbGRvbWFpbjELMAkGA1UEBhMCRlIxDDAKBgNVBAgMA0JkUjEMMAoGA1UEBwwD
+QWl4MQswCQYDVQQKDAJmRDEOMAwGA1UECwwFVGVzdHMwHhcNMTcwNjAxMTkzNzE0
+WhcNMTgwNjAxMTkzNzE0WjBUMQswCQYDVQQGEwJGUjEMMAoGA1UECAwDQmRSMQsw
+CQYDVQQKDAJmRDEOMAwGA1UECwwFVGVzdHMxGjAYBgNVBAMMEXBlZXIxLmxvY2Fs
+ZG9tYWluMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDA5POsu0m/Q9M+tmZg
+CpT/46kHz1kojfKevZapfRDkn/X7F+zZFtIPjYI+GKk4l/nkrONy+cPfitLpiGfB
+cBSUAju6jLg+ndG/8+ahkcLuh4A9uJkzgi29Gyec9bZktFW3ljHAgYtGwcDHekM5
+AhqPauMK1/d5B6s1xUNkI9BiBQIDAQABo3sweTAJBgNVHRMEAjAAMCwGCWCGSAGG
++EIBDQQfFh1PcGVuU1NMIEdlbmVyYXRlZCBDZXJ0aWZpY2F0ZTAdBgNVHQ4EFgQU
+NfhKyalW6pldWEHnkHiDIwKVCjwwHwYDVR0jBBgwFoAUOrW936uNcXf3Hv8s67LT
+L1LWIM4wDQYJKoZIhvcNAQEFBQADgYEAK+LGM4r8s9ZV1hbU9y3YSXhq9BLsJoIt
+FXN4t040OccPJTxzoxO4wVy2pHZ4cWYPavRTuYD3Qd1fDX1707bWjvuBb1ck16xa
+UmbKSKk3234Hsu6MgabmnLNA8vAtV9UgNyBcI5xeWMkMx4gC56EVmgjP/cB6l6I6
+oYIZQYZPrz4=
+-----END CERTIFICATE-----
diff --git a/doc/single_host/02.pem b/doc/single_host/02.pem
new file mode 100644
index 0000000..6b5eecb
--- /dev/null
+++ b/doc/single_host/02.pem
@@ -0,0 +1,60 @@
+Certificate:
+ Data:
+ Version: 3 (0x2)
+ Serial Number: 2 (0x2)
+ Signature Algorithm: sha1WithRSAEncryption
+ Issuer: CN=ca.localdomain, C=FR, ST=BdR, L=Aix, O=fD, OU=Tests
+ Validity
+ Not Before: Jun 1 19:37:14 2017 GMT
+ Not After : Jun 1 19:37:14 2018 GMT
+ Subject: C=FR, ST=BdR, O=fD, OU=Tests, CN=peer2.localdomain
+ Subject Public Key Info:
+ Public Key Algorithm: rsaEncryption
+ Public-Key: (1024 bit)
+ Modulus:
+ 00:cf:fa:8a:d1:fc:ee:c2:1c:5d:54:dd:14:53:f1:
+ 7c:d2:a7:39:3f:e5:c1:37:c8:08:84:62:75:78:25:
+ 89:fb:88:20:5d:95:df:92:28:43:d0:3b:9b:6a:d0:
+ d5:5b:b9:bc:0d:38:4a:c8:dd:2e:82:40:80:d0:0c:
+ 25:e8:8c:52:03:8e:eb:6d:ed:79:3e:50:f9:4d:ae:
+ 2c:63:52:01:2c:1d:c0:89:90:69:cf:93:0a:0f:32:
+ a8:50:c0:2e:2e:fa:e4:cd:23:19:ab:58:19:1c:f2:
+ f2:49:c1:42:d6:1d:5a:19:92:18:fc:c9:c2:a9:3e:
+ 1d:7b:32:b0:76:e0:89:94:ef
+ Exponent: 65537 (0x10001)
+ X509v3 extensions:
+ X509v3 Basic Constraints:
+ CA:FALSE
+ Netscape Comment:
+ OpenSSL Generated Certificate
+ X509v3 Subject Key Identifier:
+ 8E:94:E0:CE:3E:8D:D6:FD:51:C7:92:CD:9C:2A:D6:5B:1E:67:9F:27
+ X509v3 Authority Key Identifier:
+ keyid:3A:B5:BD:DF:AB:8D:71:77:F7:1E:FF:2C:EB:B2:D3:2F:52:D6:20:CE
+
+ Signature Algorithm: sha1WithRSAEncryption
+ 30:6b:d4:ae:25:ee:8a:d8:0a:6a:4d:50:cb:bc:08:5d:1c:3d:
+ ba:5b:a9:97:63:9a:33:47:36:bc:88:71:b9:7e:3b:e4:3b:15:
+ 57:b5:53:5d:aa:e6:56:a9:cc:41:dd:bb:18:fe:21:04:b9:91:
+ 17:56:15:01:fc:a3:e0:72:b4:02:74:1e:89:6f:4c:13:3a:ad:
+ 12:8b:88:a7:09:38:3c:06:9f:22:62:b8:10:2c:fb:18:45:1c:
+ aa:61:b7:f6:93:86:9d:f4:51:92:b5:ee:c5:81:66:43:f2:ae:
+ ae:55:b9:5b:a2:68:fb:dd:78:2c:1b:12:d9:cf:fb:2d:dc:f7:
+ 0f:39
+-----BEGIN CERTIFICATE-----
+MIICpDCCAg2gAwIBAgIBAjANBgkqhkiG9w0BAQUFADBfMRcwFQYDVQQDDA5jYS5s
+b2NhbGRvbWFpbjELMAkGA1UEBhMCRlIxDDAKBgNVBAgMA0JkUjEMMAoGA1UEBwwD
+QWl4MQswCQYDVQQKDAJmRDEOMAwGA1UECwwFVGVzdHMwHhcNMTcwNjAxMTkzNzE0
+WhcNMTgwNjAxMTkzNzE0WjBUMQswCQYDVQQGEwJGUjEMMAoGA1UECAwDQmRSMQsw
+CQYDVQQKDAJmRDEOMAwGA1UECwwFVGVzdHMxGjAYBgNVBAMMEXBlZXIyLmxvY2Fs
+ZG9tYWluMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDP+orR/O7CHF1U3RRT
+8XzSpzk/5cE3yAiEYnV4JYn7iCBdld+SKEPQO5tq0NVbubwNOErI3S6CQIDQDCXo
+jFIDjutt7Xk+UPlNrixjUgEsHcCJkGnPkwoPMqhQwC4u+uTNIxmrWBkc8vJJwULW
+HVoZkhj8ycKpPh17MrB24ImU7wIDAQABo3sweTAJBgNVHRMEAjAAMCwGCWCGSAGG
++EIBDQQfFh1PcGVuU1NMIEdlbmVyYXRlZCBDZXJ0aWZpY2F0ZTAdBgNVHQ4EFgQU
+jpTgzj6N1v1Rx5LNnCrWWx5nnycwHwYDVR0jBBgwFoAUOrW936uNcXf3Hv8s67LT
+L1LWIM4wDQYJKoZIhvcNAQEFBQADgYEAMGvUriXuitgKak1Qy7wIXRw9ulupl2Oa
+M0c2vIhxuX475DsVV7VTXarmVqnMQd27GP4hBLmRF1YVAfyj4HK0AnQeiW9MEzqt
+EouIpwk4PAafImK4ECz7GEUcqmG39pOGnfRRkrXuxYFmQ/KurlW5W6Jo+914LBsS
+2c/7Ldz3Dzk=
+-----END CERTIFICATE-----
diff --git a/doc/single_host/cacert.pem b/doc/single_host/cacert.pem
new file mode 100644
index 0000000..6242099
--- /dev/null
+++ b/doc/single_host/cacert.pem
@@ -0,0 +1,16 @@
+-----BEGIN CERTIFICATE-----
+MIICjDCCAfWgAwIBAgIJAKv7x3ez2Qf9MA0GCSqGSIb3DQEBBQUAMF8xFzAVBgNV
+BAMMDmNhLmxvY2FsZG9tYWluMQswCQYDVQQGEwJGUjEMMAoGA1UECAwDQmRSMQww
+CgYDVQQHDANBaXgxCzAJBgNVBAoMAmZEMQ4wDAYDVQQLDAVUZXN0czAeFw0xNzA2
+MDExOTM3MTNaFw0yNzA1MzAxOTM3MTNaMF8xFzAVBgNVBAMMDmNhLmxvY2FsZG9t
+YWluMQswCQYDVQQGEwJGUjEMMAoGA1UECAwDQmRSMQwwCgYDVQQHDANBaXgxCzAJ
+BgNVBAoMAmZEMQ4wDAYDVQQLDAVUZXN0czCBnzANBgkqhkiG9w0BAQEFAAOBjQAw
+gYkCgYEAqLJpO76yXu8Ksi9y0k9UMQqOq+ZXt0kukQVEdD8oVWaMBjfjiAvMkESI
+DKt4IXvFnQeLJ5HzImH+6b20oXxEBIgYEvp86S8l2tUakhaJ52ONhNMVzDK0Ho0w
+ekC6NkRoZ2glSwR+1G//5UIPIXAbIWv+EFxcOm4sFtDuT55JAdcCAwEAAaNQME4w
+HQYDVR0OBBYEFDq1vd+rjXF39x7/LOuy0y9S1iDOMB8GA1UdIwQYMBaAFDq1vd+r
+jXF39x7/LOuy0y9S1iDOMAwGA1UdEwQFMAMBAf8wDQYJKoZIhvcNAQEFBQADgYEA
+Kykgpd3xB7koXaMRRSAcUq/ZnBVPEtktOxJ9VFv3eFlG+Trd5/VJqP+FOYOecA62
+au4PnZyCvy0Vx2Y0yWL8dxFw62NZc+zRfn2GJbD60a9fUufNNdWZ/NJveq9ZUcwe
+dltU57OFaxMGiVR1gnl0HqSezvwcQvSGfnbv1jLJHlQ=
+-----END CERTIFICATE-----
diff --git a/doc/single_host/cakey.pem b/doc/single_host/cakey.pem
new file mode 100644
index 0000000..910fcbd
--- /dev/null
+++ b/doc/single_host/cakey.pem
@@ -0,0 +1,16 @@
+-----BEGIN PRIVATE KEY-----
+MIICdwIBADANBgkqhkiG9w0BAQEFAASCAmEwggJdAgEAAoGBAKiyaTu+sl7vCrIv
+ctJPVDEKjqvmV7dJLpEFRHQ/KFVmjAY344gLzJBEiAyreCF7xZ0HiyeR8yJh/um9
+tKF8RASIGBL6fOkvJdrVGpIWiedjjYTTFcwytB6NMHpAujZEaGdoJUsEftRv/+VC
+DyFwGyFr/hBcXDpuLBbQ7k+eSQHXAgMBAAECgYEAgYb7ZfQ14M6J1+a2suRWMJF6
+mmJyVzjJmHAC737O6UOjn+KpwXvNxbfY/mFqC8uNH9T685cMqAm2QKJ4XsWbMuAJ
+HmPWwB4ZMxgkyFyPWl99IaCuYRjjdNVIajWJB6n/7kNzA/uSvEH387L1L8aWZfv6
+rIAhSuV+uNZR7YHbNwECQQDaQ3Kp+Ordq6fsTgo1v+e/TvY/HpZId10bzRqF5wYr
+oS22WOphKfZoYgI9wZwL/Ot0NPle0Z63vN4JUAFm0vWJAkEAxd0ZiH3zJFW53LY5
+kLwLSZvqfReuBePMTlG2gvf+lzvUAoopibzv1Qvo0nD/RFdJ+uAVJQf88zDMFh0b
+FCvEXwJBANhO+/aD4JArrNI+TVQTimNIqDbJ43qSAU6qKF0IJk9a/2i2GiKNaczt
+RPdbR4GB+P9D+NgFutyxawOjrJ/w9rECQG/UvGax0Se7MBZ4A+cy8SpEbm8PYDNC
+AipN8trpMcLmdLiOwFVyLRd76LZwWUaWE2ExH6JTdns5HFBvWOu4pP8CQHaFceh6
+5JAmWSsrqo39/2DFTOBGyLk+ZmH3xI9VOv7IU/ugWpr1l2KFHwQL7fBSD3+Qc6AL
+Zk97EPIbTdLU8r4=
+-----END PRIVATE KEY-----
diff --git a/doc/single_host/demoCA/index.txt b/doc/single_host/demoCA/index.txt
new file mode 100644
index 0000000..90b3918
--- /dev/null
+++ b/doc/single_host/demoCA/index.txt
@@ -0,0 +1,2 @@
+V 180601193714Z 01 unknown /C=FR/ST=BdR/O=fD/OU=Tests/CN=peer1.localdomain
+V 180601193714Z 02 unknown /C=FR/ST=BdR/O=fD/OU=Tests/CN=peer2.localdomain
diff --git a/doc/single_host/demoCA/index.txt.attr b/doc/single_host/demoCA/index.txt.attr
new file mode 100644
index 0000000..8f7e63a
--- /dev/null
+++ b/doc/single_host/demoCA/index.txt.attr
@@ -0,0 +1 @@
+unique_subject = yes
diff --git a/doc/single_host/demoCA/index.txt.attr.old b/doc/single_host/demoCA/index.txt.attr.old
new file mode 100644
index 0000000..8f7e63a
--- /dev/null
+++ b/doc/single_host/demoCA/index.txt.attr.old
@@ -0,0 +1 @@
+unique_subject = yes
diff --git a/doc/single_host/demoCA/index.txt.old b/doc/single_host/demoCA/index.txt.old
new file mode 100644
index 0000000..5219195
--- /dev/null
+++ b/doc/single_host/demoCA/index.txt.old
@@ -0,0 +1 @@
+V 180601193714Z 01 unknown /C=FR/ST=BdR/O=fD/OU=Tests/CN=peer1.localdomain
diff --git a/doc/single_host/demoCA/serial b/doc/single_host/demoCA/serial
new file mode 100644
index 0000000..75016ea
--- /dev/null
+++ b/doc/single_host/demoCA/serial
@@ -0,0 +1 @@
+03
diff --git a/doc/single_host/freeDiameter-1.conf b/doc/single_host/freeDiameter-1.conf
new file mode 100644
index 0000000..ed344f9
--- /dev/null
+++ b/doc/single_host/freeDiameter-1.conf
@@ -0,0 +1,16 @@
+
+# -------- Test configuration ---------
+
+Identity = "peer1.localdomain";
+Realm = "localdomain";
+# Port = 3868;
+# SecPort = 3869;
+
+TLS_Cred = "peer1.cert.pem",
+ "peer1.key.pem";
+TLS_CA = "cacert.pem";
+
+LoadExtension = "extensions/test_app.fdx" : "test_app1.conf";
+
+ConnectPeer = "peer2.localdomain" { ConnectTo = "127.0.0.1"; No_TLS; port = 30868; };
+
diff --git a/doc/single_host/freeDiameter-2.conf b/doc/single_host/freeDiameter-2.conf
new file mode 100644
index 0000000..f41e988
--- /dev/null
+++ b/doc/single_host/freeDiameter-2.conf
@@ -0,0 +1,15 @@
+# -------- Test configuration ---------
+
+Identity = "peer2.localdomain";
+Realm = "localdomain";
+Port = 30868;
+SecPort = 30869;
+
+TLS_Cred = "peer2.cert.pem",
+ "peer2.key.pem";
+TLS_CA = "cacert.pem";
+
+LoadExtension = "extensions/test_app.fdx" : "test_app2.conf";
+
+ConnectPeer = "peer1.localdomain" { ConnectTo = "127.0.0.1"; No_TLS; };
+
diff --git a/doc/single_host/make_certs.sh b/doc/single_host/make_certs.sh
new file mode 100644
index 0000000..cf4248b
--- /dev/null
+++ b/doc/single_host/make_certs.sh
@@ -0,0 +1,20 @@
+rm -rf demoCA
+mkdir demoCA
+echo 01 > demoCA/serial
+touch demoCA/index.txt
+
+
+
+# CA self certificate
+openssl req -new -batch -x509 -days 3650 -nodes -newkey rsa:1024 -out cacert.pem -keyout cakey.pem -subj /CN=ca.localdomain/C=FR/ST=BdR/L=Aix/O=fD/OU=Tests
+
+#peer1
+openssl genrsa -out peer1.key.pem 1024
+openssl req -new -batch -out peer1.csr.pem -key peer1.key.pem -subj /CN=peer1.localdomain/C=FR/ST=BdR/L=Aix/O=fD/OU=Tests
+openssl ca -cert cacert.pem -keyfile cakey.pem -in peer1.csr.pem -out peer1.cert.pem -outdir . -batch
+
+#peer2
+openssl genrsa -out peer2.key.pem 1024
+openssl req -new -batch -out peer2.csr.pem -key peer2.key.pem -subj /CN=peer2.localdomain/C=FR/ST=BdR/L=Aix/O=fD/OU=Tests
+openssl ca -cert cacert.pem -keyfile cakey.pem -in peer2.csr.pem -out peer2.cert.pem -outdir . -batch
+
diff --git a/doc/single_host/peer1.cert.pem b/doc/single_host/peer1.cert.pem
new file mode 100644
index 0000000..7e351a8
--- /dev/null
+++ b/doc/single_host/peer1.cert.pem
@@ -0,0 +1,60 @@
+Certificate:
+ Data:
+ Version: 3 (0x2)
+ Serial Number: 1 (0x1)
+ Signature Algorithm: sha1WithRSAEncryption
+ Issuer: CN=ca.localdomain, C=FR, ST=BdR, L=Aix, O=fD, OU=Tests
+ Validity
+ Not Before: Jun 1 19:37:14 2017 GMT
+ Not After : Jun 1 19:37:14 2018 GMT
+ Subject: C=FR, ST=BdR, O=fD, OU=Tests, CN=peer1.localdomain
+ Subject Public Key Info:
+ Public Key Algorithm: rsaEncryption
+ Public-Key: (1024 bit)
+ Modulus:
+ 00:c0:e4:f3:ac:bb:49:bf:43:d3:3e:b6:66:60:0a:
+ 94:ff:e3:a9:07:cf:59:28:8d:f2:9e:bd:96:a9:7d:
+ 10:e4:9f:f5:fb:17:ec:d9:16:d2:0f:8d:82:3e:18:
+ a9:38:97:f9:e4:ac:e3:72:f9:c3:df:8a:d2:e9:88:
+ 67:c1:70:14:94:02:3b:ba:8c:b8:3e:9d:d1:bf:f3:
+ e6:a1:91:c2:ee:87:80:3d:b8:99:33:82:2d:bd:1b:
+ 27:9c:f5:b6:64:b4:55:b7:96:31:c0:81:8b:46:c1:
+ c0:c7:7a:43:39:02:1a:8f:6a:e3:0a:d7:f7:79:07:
+ ab:35:c5:43:64:23:d0:62:05
+ Exponent: 65537 (0x10001)
+ X509v3 extensions:
+ X509v3 Basic Constraints:
+ CA:FALSE
+ Netscape Comment:
+ OpenSSL Generated Certificate
+ X509v3 Subject Key Identifier:
+ 35:F8:4A:C9:A9:56:EA:99:5D:58:41:E7:90:78:83:23:02:95:0A:3C
+ X509v3 Authority Key Identifier:
+ keyid:3A:B5:BD:DF:AB:8D:71:77:F7:1E:FF:2C:EB:B2:D3:2F:52:D6:20:CE
+
+ Signature Algorithm: sha1WithRSAEncryption
+ 2b:e2:c6:33:8a:fc:b3:d6:55:d6:16:d4:f7:2d:d8:49:78:6a:
+ f4:12:ec:26:82:2d:15:73:78:b7:4e:34:39:c7:0f:25:3c:73:
+ a3:13:b8:c1:5c:b6:a4:76:78:71:66:0f:6a:f4:53:b9:80:f7:
+ 41:dd:5f:0d:7d:7b:d3:b6:d6:8e:fb:81:6f:57:24:d7:ac:5a:
+ 52:66:ca:48:a9:37:db:7e:07:b2:ee:8c:81:a6:e6:9c:b3:40:
+ f2:f0:2d:57:d5:20:37:20:5c:23:9c:5e:58:c9:0c:c7:88:02:
+ e7:a1:15:9a:08:cf:fd:c0:7a:97:a2:3a:a1:82:19:41:86:4f:
+ af:3e
+-----BEGIN CERTIFICATE-----
+MIICpDCCAg2gAwIBAgIBATANBgkqhkiG9w0BAQUFADBfMRcwFQYDVQQDDA5jYS5s
+b2NhbGRvbWFpbjELMAkGA1UEBhMCRlIxDDAKBgNVBAgMA0JkUjEMMAoGA1UEBwwD
+QWl4MQswCQYDVQQKDAJmRDEOMAwGA1UECwwFVGVzdHMwHhcNMTcwNjAxMTkzNzE0
+WhcNMTgwNjAxMTkzNzE0WjBUMQswCQYDVQQGEwJGUjEMMAoGA1UECAwDQmRSMQsw
+CQYDVQQKDAJmRDEOMAwGA1UECwwFVGVzdHMxGjAYBgNVBAMMEXBlZXIxLmxvY2Fs
+ZG9tYWluMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDA5POsu0m/Q9M+tmZg
+CpT/46kHz1kojfKevZapfRDkn/X7F+zZFtIPjYI+GKk4l/nkrONy+cPfitLpiGfB
+cBSUAju6jLg+ndG/8+ahkcLuh4A9uJkzgi29Gyec9bZktFW3ljHAgYtGwcDHekM5
+AhqPauMK1/d5B6s1xUNkI9BiBQIDAQABo3sweTAJBgNVHRMEAjAAMCwGCWCGSAGG
++EIBDQQfFh1PcGVuU1NMIEdlbmVyYXRlZCBDZXJ0aWZpY2F0ZTAdBgNVHQ4EFgQU
+NfhKyalW6pldWEHnkHiDIwKVCjwwHwYDVR0jBBgwFoAUOrW936uNcXf3Hv8s67LT
+L1LWIM4wDQYJKoZIhvcNAQEFBQADgYEAK+LGM4r8s9ZV1hbU9y3YSXhq9BLsJoIt
+FXN4t040OccPJTxzoxO4wVy2pHZ4cWYPavRTuYD3Qd1fDX1707bWjvuBb1ck16xa
+UmbKSKk3234Hsu6MgabmnLNA8vAtV9UgNyBcI5xeWMkMx4gC56EVmgjP/cB6l6I6
+oYIZQYZPrz4=
+-----END CERTIFICATE-----
diff --git a/doc/single_host/peer1.csr.pem b/doc/single_host/peer1.csr.pem
new file mode 100644
index 0000000..fe7533a
--- /dev/null
+++ b/doc/single_host/peer1.csr.pem
@@ -0,0 +1,11 @@
+-----BEGIN CERTIFICATE REQUEST-----
+MIIBojCCAQsCAQAwYjEaMBgGA1UEAwwRcGVlcjEubG9jYWxkb21haW4xCzAJBgNV
+BAYTAkZSMQwwCgYDVQQIDANCZFIxDDAKBgNVBAcMA0FpeDELMAkGA1UECgwCZkQx
+DjAMBgNVBAsMBVRlc3RzMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDA5POs
+u0m/Q9M+tmZgCpT/46kHz1kojfKevZapfRDkn/X7F+zZFtIPjYI+GKk4l/nkrONy
++cPfitLpiGfBcBSUAju6jLg+ndG/8+ahkcLuh4A9uJkzgi29Gyec9bZktFW3ljHA
+gYtGwcDHekM5AhqPauMK1/d5B6s1xUNkI9BiBQIDAQABoAAwDQYJKoZIhvcNAQEF
+BQADgYEAYhJh9ah6HRLkr5ycEaLtGUOs9vD7GYiUSV9ilIic9/WCGh+KiL59Wq30
+E13ZrLHf6oqjJDOqHmSRDbG9ws5gilYdGdf+Au/mAutmvOwrTVnAOtYzAqJPKTin
+/JbbedfSOFUuc+Ii+qRCpvXdfriBZGRGfVBQYjwywrQz/IJQ+oE=
+-----END CERTIFICATE REQUEST-----
diff --git a/doc/single_host/peer1.key.pem b/doc/single_host/peer1.key.pem
new file mode 100644
index 0000000..fbca847
--- /dev/null
+++ b/doc/single_host/peer1.key.pem
@@ -0,0 +1,15 @@
+-----BEGIN RSA PRIVATE KEY-----
+MIICXAIBAAKBgQDA5POsu0m/Q9M+tmZgCpT/46kHz1kojfKevZapfRDkn/X7F+zZ
+FtIPjYI+GKk4l/nkrONy+cPfitLpiGfBcBSUAju6jLg+ndG/8+ahkcLuh4A9uJkz
+gi29Gyec9bZktFW3ljHAgYtGwcDHekM5AhqPauMK1/d5B6s1xUNkI9BiBQIDAQAB
+AoGBALL/w2A3LGhg+FbpzHazWzFagjDNKV+I2eyU4orFlDeUeR9ZRGDv3F6yYnpd
+SCtMXIjoJuk6/ZkjqjUsb5wB9hUGzOn8pZ6lcdYxYYQpxcJ7gFntDFQF6EnBXR/R
+WpbpXLHigJtqey1Ii6DBOAiyLtDojVV/s2yYeo2p0fHkmtoBAkEA3/H+/RrglCYy
+ce3RIPAODDzNK1esBI1CUiRZ49CIa438rbB+Q2VtYk1YpYBGT7qOaXiFXi1OrlVF
+3KBky4RaeQJBANyBKLI8EL1tVs4uMzJZDiPUjrxgCNysmqs2+3uG/vQJr7s8GS30
+t7/K0KM4xR/sSEyE/5hUUTpBxf+Jn9BloO0CQFyxF2+/zjDD1qFdY/AULFxYVjuY
+YDTKGydQsHwg9jY+YNWrdbeDpdDIXuaxv2iEuSlinyEp86Uo2m/FW7L5J1ECQA/Y
+A/mSkU1bHuKftTQH7Bks+7iTWe+pQ0/MGpPMpmMYkxTsA48mx1EznHwt5xQdITDG
+WaszW8bI1RZAaEhMFR0CQAtvf49GsqNZwvEZYNgUZDxx74a2jydE+tY7m66cxcZI
+bDabRPhSogrneElATPtOVRHs6e5ISFbY9h6L15sDQzU=
+-----END RSA PRIVATE KEY-----
diff --git a/doc/single_host/peer2.cert.pem b/doc/single_host/peer2.cert.pem
new file mode 100644
index 0000000..6b5eecb
--- /dev/null
+++ b/doc/single_host/peer2.cert.pem
@@ -0,0 +1,60 @@
+Certificate:
+ Data:
+ Version: 3 (0x2)
+ Serial Number: 2 (0x2)
+ Signature Algorithm: sha1WithRSAEncryption
+ Issuer: CN=ca.localdomain, C=FR, ST=BdR, L=Aix, O=fD, OU=Tests
+ Validity
+ Not Before: Jun 1 19:37:14 2017 GMT
+ Not After : Jun 1 19:37:14 2018 GMT
+ Subject: C=FR, ST=BdR, O=fD, OU=Tests, CN=peer2.localdomain
+ Subject Public Key Info:
+ Public Key Algorithm: rsaEncryption
+ Public-Key: (1024 bit)
+ Modulus:
+ 00:cf:fa:8a:d1:fc:ee:c2:1c:5d:54:dd:14:53:f1:
+ 7c:d2:a7:39:3f:e5:c1:37:c8:08:84:62:75:78:25:
+ 89:fb:88:20:5d:95:df:92:28:43:d0:3b:9b:6a:d0:
+ d5:5b:b9:bc:0d:38:4a:c8:dd:2e:82:40:80:d0:0c:
+ 25:e8:8c:52:03:8e:eb:6d:ed:79:3e:50:f9:4d:ae:
+ 2c:63:52:01:2c:1d:c0:89:90:69:cf:93:0a:0f:32:
+ a8:50:c0:2e:2e:fa:e4:cd:23:19:ab:58:19:1c:f2:
+ f2:49:c1:42:d6:1d:5a:19:92:18:fc:c9:c2:a9:3e:
+ 1d:7b:32:b0:76:e0:89:94:ef
+ Exponent: 65537 (0x10001)
+ X509v3 extensions:
+ X509v3 Basic Constraints:
+ CA:FALSE
+ Netscape Comment:
+ OpenSSL Generated Certificate
+ X509v3 Subject Key Identifier:
+ 8E:94:E0:CE:3E:8D:D6:FD:51:C7:92:CD:9C:2A:D6:5B:1E:67:9F:27
+ X509v3 Authority Key Identifier:
+ keyid:3A:B5:BD:DF:AB:8D:71:77:F7:1E:FF:2C:EB:B2:D3:2F:52:D6:20:CE
+
+ Signature Algorithm: sha1WithRSAEncryption
+ 30:6b:d4:ae:25:ee:8a:d8:0a:6a:4d:50:cb:bc:08:5d:1c:3d:
+ ba:5b:a9:97:63:9a:33:47:36:bc:88:71:b9:7e:3b:e4:3b:15:
+ 57:b5:53:5d:aa:e6:56:a9:cc:41:dd:bb:18:fe:21:04:b9:91:
+ 17:56:15:01:fc:a3:e0:72:b4:02:74:1e:89:6f:4c:13:3a:ad:
+ 12:8b:88:a7:09:38:3c:06:9f:22:62:b8:10:2c:fb:18:45:1c:
+ aa:61:b7:f6:93:86:9d:f4:51:92:b5:ee:c5:81:66:43:f2:ae:
+ ae:55:b9:5b:a2:68:fb:dd:78:2c:1b:12:d9:cf:fb:2d:dc:f7:
+ 0f:39
+-----BEGIN CERTIFICATE-----
+MIICpDCCAg2gAwIBAgIBAjANBgkqhkiG9w0BAQUFADBfMRcwFQYDVQQDDA5jYS5s
+b2NhbGRvbWFpbjELMAkGA1UEBhMCRlIxDDAKBgNVBAgMA0JkUjEMMAoGA1UEBwwD
+QWl4MQswCQYDVQQKDAJmRDEOMAwGA1UECwwFVGVzdHMwHhcNMTcwNjAxMTkzNzE0
+WhcNMTgwNjAxMTkzNzE0WjBUMQswCQYDVQQGEwJGUjEMMAoGA1UECAwDQmRSMQsw
+CQYDVQQKDAJmRDEOMAwGA1UECwwFVGVzdHMxGjAYBgNVBAMMEXBlZXIyLmxvY2Fs
+ZG9tYWluMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDP+orR/O7CHF1U3RRT
+8XzSpzk/5cE3yAiEYnV4JYn7iCBdld+SKEPQO5tq0NVbubwNOErI3S6CQIDQDCXo
+jFIDjutt7Xk+UPlNrixjUgEsHcCJkGnPkwoPMqhQwC4u+uTNIxmrWBkc8vJJwULW
+HVoZkhj8ycKpPh17MrB24ImU7wIDAQABo3sweTAJBgNVHRMEAjAAMCwGCWCGSAGG
++EIBDQQfFh1PcGVuU1NMIEdlbmVyYXRlZCBDZXJ0aWZpY2F0ZTAdBgNVHQ4EFgQU
+jpTgzj6N1v1Rx5LNnCrWWx5nnycwHwYDVR0jBBgwFoAUOrW936uNcXf3Hv8s67LT
+L1LWIM4wDQYJKoZIhvcNAQEFBQADgYEAMGvUriXuitgKak1Qy7wIXRw9ulupl2Oa
+M0c2vIhxuX475DsVV7VTXarmVqnMQd27GP4hBLmRF1YVAfyj4HK0AnQeiW9MEzqt
+EouIpwk4PAafImK4ECz7GEUcqmG39pOGnfRRkrXuxYFmQ/KurlW5W6Jo+914LBsS
+2c/7Ldz3Dzk=
+-----END CERTIFICATE-----
diff --git a/doc/single_host/peer2.csr.pem b/doc/single_host/peer2.csr.pem
new file mode 100644
index 0000000..2c5174b
--- /dev/null
+++ b/doc/single_host/peer2.csr.pem
@@ -0,0 +1,11 @@
+-----BEGIN CERTIFICATE REQUEST-----
+MIIBojCCAQsCAQAwYjEaMBgGA1UEAwwRcGVlcjIubG9jYWxkb21haW4xCzAJBgNV
+BAYTAkZSMQwwCgYDVQQIDANCZFIxDDAKBgNVBAcMA0FpeDELMAkGA1UECgwCZkQx
+DjAMBgNVBAsMBVRlc3RzMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDP+orR
+/O7CHF1U3RRT8XzSpzk/5cE3yAiEYnV4JYn7iCBdld+SKEPQO5tq0NVbubwNOErI
+3S6CQIDQDCXojFIDjutt7Xk+UPlNrixjUgEsHcCJkGnPkwoPMqhQwC4u+uTNIxmr
+WBkc8vJJwULWHVoZkhj8ycKpPh17MrB24ImU7wIDAQABoAAwDQYJKoZIhvcNAQEF
+BQADgYEAQz+5ALMObFPv9PAVnjbh2MQ2PqtJeaFxi0rFKCkA4sfWfYvB5zK5Px9i
+J94Z7rRrRocNaTz+ok6JsUn7N1aEjaU3yJq1cRI7G2pqro7z1CMFvMKQlBNVquh4
+sxrM1mHUnKQv5Bx8xpqup2oALk0UovcPGrs6uS9FG9cJHaIRYWQ=
+-----END CERTIFICATE REQUEST-----
diff --git a/doc/single_host/peer2.key.pem b/doc/single_host/peer2.key.pem
new file mode 100644
index 0000000..ae617a8
--- /dev/null
+++ b/doc/single_host/peer2.key.pem
@@ -0,0 +1,15 @@
+-----BEGIN RSA PRIVATE KEY-----
+MIICXAIBAAKBgQDP+orR/O7CHF1U3RRT8XzSpzk/5cE3yAiEYnV4JYn7iCBdld+S
+KEPQO5tq0NVbubwNOErI3S6CQIDQDCXojFIDjutt7Xk+UPlNrixjUgEsHcCJkGnP
+kwoPMqhQwC4u+uTNIxmrWBkc8vJJwULWHVoZkhj8ycKpPh17MrB24ImU7wIDAQAB
+AoGATYipl/8jQ1ovsSN6IJE2Z5HP1fJhRdpc0n2iLVhRSGRHLJxi7Kn2HfsaxYd1
+Au0LHiKOPrO2UviZDPZ6a2dkayMhWZRNeVdOMUFqDGG/b2YfxuVna3JKz2bjxqUb
+i25FW+iBO18c/5FBf1uYkh4zwpYGGbznwXPlxHBBHjTaKoECQQDnhX3E0bVnp2Kq
+dmJTEDstfcWchPutxwmUkKSG4mE3+OglyE/UyGmT0ifasZT5UlVIsRvRx84ftuyP
+GrUAiHFbAkEA5ffTxFORPmggKdEEumqkbq1A9u3fMaTpRF3xiZO4MxIDBWUZdKRf
+D/vp77R8FQxI9lQZRGmFfuQJ9y8BLwwK/QJAV+r6ap5UK+uFbUQNbIuSXWEQhLJ/
+PGuD+NXAlLQsxOuRhJ9/qUb9yLOajNK4xsD8P+F5tf0RCjwVsvYqW+x0VwJBAJHB
+jCVJWiuVz5zxb++/m8zSXvSjO+25OmgsquSqDfvAlM2ckI/PhrkYz+MwH90vVida
+klE8GHKeknpq/nMVTPkCQE+YmXVufxyW+5F8p04LdOGUjrXT6uQv3h24QKSVYtov
+pFJ9vUVppJsITHRC9V3XnFN6S1tei8zh8u04yZhRqYw=
+-----END RSA PRIVATE KEY-----
diff --git a/doc/single_host/test_app1.conf b/doc/single_host/test_app1.conf
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/doc/single_host/test_app1.conf
diff --git a/doc/single_host/test_app2.conf b/doc/single_host/test_app2.conf
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/doc/single_host/test_app2.conf