aboutsummaryrefslogtreecommitdiffstats
path: root/test/mocks/pnfsimulator
diff options
context:
space:
mode:
authormicdzied <michal.1.dziedzic@nokia.com>2018-10-22 15:08:50 +0200
committermicdzied <michal.1.dziedzic@nokia.com>2018-10-22 15:08:50 +0200
commitd96bb413ca0238172797b43cb0991394dbd85d35 (patch)
treef315a6faafba55c4ea71252455ce5be3d2ed0d1c /test/mocks/pnfsimulator
parent23bdc91789ead7c92052b5d68280f896f8b3a975 (diff)
add vsftpd with ca and keys
Change-Id: I29f1d5e67f01d21eed88d20ae447de9bc59e0bdb Issue-ID: INT-695 Signed-off-by: micdzied <michal.1.dziedzic@nokia.com>
Diffstat (limited to 'test/mocks/pnfsimulator')
-rw-r--r--test/mocks/pnfsimulator/README.md2
-rw-r--r--test/mocks/pnfsimulator/docker-compose.yml26
-rwxr-xr-xtest/mocks/pnfsimulator/ftpes/pure-ftpd/tls/pure-ftpd.pem (renamed from test/mocks/pnfsimulator/ftpes/tls/pure-ftpd.pem)0
-rwxr-xr-xtest/mocks/pnfsimulator/ftpes/pure-ftpd/userpass/pureftpd.passwd (renamed from test/mocks/pnfsimulator/ftpes/userpass/pureftpd.passwd)0
-rw-r--r--test/mocks/pnfsimulator/ftpes/vsftpd/configuration/vsftpd_ssl.conf55
-rw-r--r--test/mocks/pnfsimulator/ftpes/vsftpd/tls/dfc.crt20
-rw-r--r--test/mocks/pnfsimulator/ftpes/vsftpd/tls/dfc.csr18
-rw-r--r--test/mocks/pnfsimulator/ftpes/vsftpd/tls/dfc.jksbin0 -> 2529 bytes
-rw-r--r--test/mocks/pnfsimulator/ftpes/vsftpd/tls/dfc.key27
-rw-r--r--test/mocks/pnfsimulator/ftpes/vsftpd/tls/dfc.p12bin0 -> 2492 bytes
-rw-r--r--test/mocks/pnfsimulator/ftpes/vsftpd/tls/ftp.crt20
-rw-r--r--test/mocks/pnfsimulator/ftpes/vsftpd/tls/ftp.csr18
-rw-r--r--test/mocks/pnfsimulator/ftpes/vsftpd/tls/ftp.derbin0 -> 848 bytes
-rw-r--r--test/mocks/pnfsimulator/ftpes/vsftpd/tls/ftp.jksbin0 -> 3209 bytes
-rw-r--r--test/mocks/pnfsimulator/ftpes/vsftpd/tls/ftp.key27
-rwxr-xr-xtest/mocks/pnfsimulator/ftpes/vsftpd/tls/vsftpd_keys_generator.sh27
16 files changed, 237 insertions, 3 deletions
diff --git a/test/mocks/pnfsimulator/README.md b/test/mocks/pnfsimulator/README.md
index 567c5d06b..d1f2a0c11 100644
--- a/test/mocks/pnfsimulator/README.md
+++ b/test/mocks/pnfsimulator/README.md
@@ -52,6 +52,8 @@ After that execute *./simulator.sh stop* and when it's finished *./simulator.sh
In order to connect execute command *ftp -p localhost 2221* and, when requested, provide user and password.
In order to download a file execute, while still being logged in, *get file-name-to-be-downloaded*.
+###FTPES support for vsftpd server
+TBD
###Developer mode
For development of PNF Simulator, run *simulator.sh* start-dev in order to run minimal necessary set of supporting services such as Netopeer of FTP servers.
diff --git a/test/mocks/pnfsimulator/docker-compose.yml b/test/mocks/pnfsimulator/docker-compose.yml
index 214a7733a..53d6aa122 100644
--- a/test/mocks/pnfsimulator/docker-compose.yml
+++ b/test/mocks/pnfsimulator/docker-compose.yml
@@ -48,11 +48,31 @@ services:
- "30000-30009:30000-30009"
volumes:
- ./ftpes/files:/home/ftpusers/onap
- - ./ftpes/userpass/:/etc/pure-ftpd/passwd/
- - ./ftpes/tls/:/etc/ssl/private/
+ - ./ftpes/pure-ftpd/userpass/:/etc/pure-ftpd/passwd/
+ - ./ftpes/pure-ftpd/tls/:/etc/ssl/private/
environment:
PUBLICHOST: localhost
ADDED_FLAGS: --tls=2
FTP_USER_HOME: onap
- restart: on-failure \ No newline at end of file
+ restart: on-failure
+
+ vsftpd_ftpes_server:
+ container_name: vsftpd_ftpes_server
+ image: docker.io/panubo/vsftpd
+ ports:
+ - "8221:21"
+ - "8001-8010:8001-8010"
+ environment:
+ FTP_USER: onap
+ FTP_PASSWORD: pano
+ PASV_ADDRESS: 127.0.0.1
+ PASV_MIN_PORT: 8001
+ PASV_MAX_PORT: 8010
+ volumes:
+ - ./ftpes/vsftpd/tls/ftp.crt:/etc/ssl/private/vsftpd.crt:ro
+ - ./ftpes/vsftpd/tls/ftp.key:/etc/ssl/private/vsftpd.key:ro
+ - ./ftpes/vsftpd/tls/dfc.crt:/home/vsftpd/onap/client.crt:ro
+ - ./ftpes/vsftpd/configuration/vsftpd_ssl.conf:/etc/vsftpd_ssl.conf:ro
+ restart: on-failure
+ command: vsftpd /etc/vsftpd_ssl.conf
diff --git a/test/mocks/pnfsimulator/ftpes/tls/pure-ftpd.pem b/test/mocks/pnfsimulator/ftpes/pure-ftpd/tls/pure-ftpd.pem
index 0ce676efa..0ce676efa 100755
--- a/test/mocks/pnfsimulator/ftpes/tls/pure-ftpd.pem
+++ b/test/mocks/pnfsimulator/ftpes/pure-ftpd/tls/pure-ftpd.pem
diff --git a/test/mocks/pnfsimulator/ftpes/userpass/pureftpd.passwd b/test/mocks/pnfsimulator/ftpes/pure-ftpd/userpass/pureftpd.passwd
index 7961e710d..7961e710d 100755
--- a/test/mocks/pnfsimulator/ftpes/userpass/pureftpd.passwd
+++ b/test/mocks/pnfsimulator/ftpes/pure-ftpd/userpass/pureftpd.passwd
diff --git a/test/mocks/pnfsimulator/ftpes/vsftpd/configuration/vsftpd_ssl.conf b/test/mocks/pnfsimulator/ftpes/vsftpd/configuration/vsftpd_ssl.conf
new file mode 100644
index 000000000..6d94ad827
--- /dev/null
+++ b/test/mocks/pnfsimulator/ftpes/vsftpd/configuration/vsftpd_ssl.conf
@@ -0,0 +1,55 @@
+# Server Config
+anonymous_enable=NO
+local_enable=YES
+write_enable=YES
+local_umask=022
+dirmessage_enable=YES
+
+# Security and User auth
+chroot_local_user=YES
+pam_service_name=vsftpd_virtual
+virtual_use_local_privs=YES
+chmod_enable=NO
+user_config_dir=/etc/vsftpd/user_conf
+user_sub_token=$USER
+#local_root=/srv/$USER
+local_root=/srv/
+userlist_enable=NO
+allow_writeable_chroot=YES
+
+# Logging
+log_ftp_protocol=YES
+xferlog_enable=YES
+xferlog_std_format=YES
+#xferlog_file=/dev/stdout
+syslog_enable=NO
+dual_log_enable=YES
+
+# Remap all login users to this username
+guest_enable=YES
+guest_username=ftp
+hide_ids=YES
+
+# Networking
+connect_from_port_20=NO
+listen=YES
+tcp_wrappers=YES
+pasv_min_port=8001
+pasv_max_port=8010
+
+# SSL
+ssl_enable=Yes
+rsa_cert_file=/etc/ssl/private/vsftpd.crt
+rsa_private_key_file=/etc/ssl/private/vsftpd.key
+require_ssl_reuse=NO
+force_local_data_ssl=YES
+force_local_logins_ssl=YES
+ssl_ciphers=HIGH
+allow_anon_ssl=NO
+
+ssl_tlsv1=YES
+ssl_sslv2=YES
+
+require_cert=YES
+ssl_request_cert=YES
+ca_certs_file=/home/vsftpd/onap/client.crt
diff --git a/test/mocks/pnfsimulator/ftpes/vsftpd/tls/dfc.crt b/test/mocks/pnfsimulator/ftpes/vsftpd/tls/dfc.crt
new file mode 100644
index 000000000..9053acf6b
--- /dev/null
+++ b/test/mocks/pnfsimulator/ftpes/vsftpd/tls/dfc.crt
@@ -0,0 +1,20 @@
+-----BEGIN CERTIFICATE-----
+MIIDTDCCAjQCCQC35XXwaJRpezANBgkqhkiG9w0BAQsFADBoMQswCQYDVQQGEwJQ
+TDENMAsGA1UECAwEYWRhczEMMAoGA1UEBwwDYXNkMQwwCgYDVQQKDANhc2QxDDAK
+BgNVBAsMA2FzZDEMMAoGA1UEAwwDYXNkMRIwEAYJKoZIhvcNAQkBFgNhc2QwHhcN
+MTgxMDE5MTE1ODI3WhcNMTkxMDE5MTE1ODI3WjBoMQswCQYDVQQGEwJQTDENMAsG
+A1UECAwEYWRhczEMMAoGA1UEBwwDYXNkMQwwCgYDVQQKDANhc2QxDDAKBgNVBAsM
+A2FzZDEMMAoGA1UEAwwDYXNkMRIwEAYJKoZIhvcNAQkBFgNhc2QwggEiMA0GCSqG
+SIb3DQEBAQUAA4IBDwAwggEKAoIBAQC81m2sWiO2tcv8huzFJWMovh6fsk2TZzli
+w0598BXUIaSmKeFe/i51FvON8QjYoTckjeuARxiQPHvD4cB68SXTQv0AqxId1DsA
+GZy8JE0FO29Cux7a0SEMdJUjkRxAcGrz2NOtbFxmaZDvtQVRoNbaaKIe9VKYbvfF
+jdIx/8qQiSHUahm9fdrJqH+HQaTIQPGBMWTF8WC3ptRxtyQ49nFjnhL19glviT1S
+0NpHTuX4h46dZX/X9bHdoPZF84Nl2yyFS+PK2lEzmQQE/uBXFxmKanEbxcF2ORo7
+LmebHfXL3Rc2jE7akhod5Vvg+nrSUc+JTcWeRxsA29C/OQoLh/l9AgMBAAEwDQYJ
+KoZIhvcNAQELBQADggEBADZw1bosIxPAjTPWPKO3h2BynrZqYQFbq3QttdCLoUIj
+YxUM/sR6fXju0WSSJrdvdN6nPzQ1dl+6mtppCVhavy6vZGzBN1IO1hWM2Z9yO2sa
+r4e2cw2S0rjm/+WXKOn2v8wIUmhFGCBpsXWGmVx+WjaE4BmPkb+qfN5G72H8eaap
+qD9RAMHoxM4+sXCSz2CDdiyUa7U0Oy85L/dMzua3VZjtQDwC7D9RpS5+qKhaTTUs
+wG9DbruD95tkjlXt1lvpxoFlCTvdXOGkviwG27K6XAfnoHRt1CU5Z0U+IGNTt9fj
+fKnQTEfeK4uYtOaeNNs84KNl9J6fcUNIOwHxwb3RLmw=
+-----END CERTIFICATE-----
diff --git a/test/mocks/pnfsimulator/ftpes/vsftpd/tls/dfc.csr b/test/mocks/pnfsimulator/ftpes/vsftpd/tls/dfc.csr
new file mode 100644
index 000000000..c4c098b28
--- /dev/null
+++ b/test/mocks/pnfsimulator/ftpes/vsftpd/tls/dfc.csr
@@ -0,0 +1,18 @@
+-----BEGIN CERTIFICATE REQUEST-----
+MIIC2DCCAcACAQAwaDELMAkGA1UEBhMCUEwxDTALBgNVBAgMBGFkYXMxDDAKBgNV
+BAcMA2FzZDEMMAoGA1UECgwDYXNkMQwwCgYDVQQLDANhc2QxDDAKBgNVBAMMA2Fz
+ZDESMBAGCSqGSIb3DQEJARYDYXNkMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIB
+CgKCAQEAvNZtrFojtrXL/IbsxSVjKL4en7JNk2c5YsNOffAV1CGkpinhXv4udRbz
+jfEI2KE3JI3rgEcYkDx7w+HAevEl00L9AKsSHdQ7ABmcvCRNBTtvQrse2tEhDHSV
+I5EcQHBq89jTrWxcZmmQ77UFUaDW2miiHvVSmG73xY3SMf/KkIkh1GoZvX3ayah/
+h0GkyEDxgTFkxfFgt6bUcbckOPZxY54S9fYJb4k9UtDaR07l+IeOnWV/1/Wx3aD2
+RfODZdsshUvjytpRM5kEBP7gVxcZimpxG8XBdjkaOy5nmx31y90XNoxO2pIaHeVb
+4Pp60lHPiU3FnkcbANvQvzkKC4f5fQIDAQABoCswEgYJKoZIhvcNAQkCMQUMA2Fz
+ZDAVBgkqhkiG9w0BCQcxCAwGc2VjcmV0MA0GCSqGSIb3DQEBCwUAA4IBAQBAXSh3
+2aQ4Ypci4TGAsexRh/Jej5g5gUsHl8m8qLFA4gazcZqqK0x3nmgk6qI1UXdIitNc
+40bGtHDqTCg5IrEwnZ8s/82eT8juTkunuUYGsTfJpYn6wyP7iPnIOHOd7lA6N75y
+y8DLdiJIN3K9TF459wL0wviEsi6F5kDPrT9L9znkGOxXAUDUlvmYGAxET6y6IFTE
+bSx+DHWoXEbwoFfbx8e+QgSkw+ud2q5Yj2mrBqBpEgvXbSn3GAfR05oOcLIHqaq9
+Wh1qRdw25wrHM6iFPCcXZYPK4V7T6ZVrRIOsmiMImW9tID7WPLEgqfWpnhccF4gh
+rJRkQ3RSAYIg6bsM
+-----END CERTIFICATE REQUEST-----
diff --git a/test/mocks/pnfsimulator/ftpes/vsftpd/tls/dfc.jks b/test/mocks/pnfsimulator/ftpes/vsftpd/tls/dfc.jks
new file mode 100644
index 000000000..717874690
--- /dev/null
+++ b/test/mocks/pnfsimulator/ftpes/vsftpd/tls/dfc.jks
Binary files differ
diff --git a/test/mocks/pnfsimulator/ftpes/vsftpd/tls/dfc.key b/test/mocks/pnfsimulator/ftpes/vsftpd/tls/dfc.key
new file mode 100644
index 000000000..cca071a53
--- /dev/null
+++ b/test/mocks/pnfsimulator/ftpes/vsftpd/tls/dfc.key
@@ -0,0 +1,27 @@
+-----BEGIN RSA PRIVATE KEY-----
+MIIEowIBAAKCAQEAvNZtrFojtrXL/IbsxSVjKL4en7JNk2c5YsNOffAV1CGkpinh
+Xv4udRbzjfEI2KE3JI3rgEcYkDx7w+HAevEl00L9AKsSHdQ7ABmcvCRNBTtvQrse
+2tEhDHSVI5EcQHBq89jTrWxcZmmQ77UFUaDW2miiHvVSmG73xY3SMf/KkIkh1GoZ
+vX3ayah/h0GkyEDxgTFkxfFgt6bUcbckOPZxY54S9fYJb4k9UtDaR07l+IeOnWV/
+1/Wx3aD2RfODZdsshUvjytpRM5kEBP7gVxcZimpxG8XBdjkaOy5nmx31y90XNoxO
+2pIaHeVb4Pp60lHPiU3FnkcbANvQvzkKC4f5fQIDAQABAoIBAC0/1JfwIY6ukWq5
+ihLTmqcwp3Xs69neaknYMv7KgPCL/0Ax2OdCUS+NiF8C2vPN7cC8oSnj32bwl1eg
+yNas4jt1WdrHI1gyetDTUlNi/3G5hDehTwtwAVNSvEoBg5uNVJOJ6W8tABcqRKir
+39JnkBRV7kMs1dXhAU49ZZjFimyHhbdWeme8zcqC4lqk5ZYcXgCiOSYUNjeV39XC
+aE/NlXS1d8dqnL/nXV3otvFMe7Ax/J+frlpALJGRCNlMNVT67c3pv+1FkXGPW/8q
+WvrTPsWPL5lqykD+isgiLMW5GXQzyw07Ohf+7BBZmn0bKWEkEVC590IZ2KQgN19Q
+jU80QaECgYEA9D3Kp3axg9IgvswpUOFjeCt0eviSRGlKNG0FEFT/mC00m88YUDw+
+iMi5nAPfnEiYi6Ql6ncvaohhMiHwlQQk51AKgsotSCJCwewO4UiAibqu47RoBXtR
+R/3cPOqnE0YziTeIgbRxEoKU1iycXkdugxX8yToYc/vFSIeKEr/nD2cCgYEAxe3M
+7pbBCLsCACbT/N4Ye9yUt5akKMOJPFLoGZe1COf8f2sp0QZc4IhtPIkE65VeC2yX
+5+XRxjI1CHBZzu7QcBmdfEZbawWWM0Ehpgf3TUmzpLzgvTj4D697TBOc2S0oMo9o
+4dT+7QOuw6vt2dTfm2cBCw/JibXIfQJ58W5K9XsCgYBCKkMuHq90QIZyaah/qq9h
+rJP/hDtLoSJjFW2bwQsE1Ko901qI0ek28PmnVD1NfzUkDzHeVK9Zstxx0lP0aoz8
+xOg0CkU+F1nyYtqdGSEJLrOWKBdN9NxOHm19aywbwpbPg2XNjW5cT1e2tZsex0ce
+5+P1N3HMadZGEcHL1oTn3QKBgBnLdQK/GOcnYApfBQ+WbkBuLd+DPV+mpBL9hwwW
+zlwbx7dfYvK/zojgnsPd44tESx5YB7AMLnuS/YBdDAdA7l89p12T2cQn1TxWx6jY
+ru0eps/YYb2nWATLTNlMUQuoq+1y7StJU/PVoAgWNwhFiuK42NT1OMG+tCM+mF/T
+jOdTAoGBAOkVlTCF3OKHhNWrzX5dQGHicCczaciaAJtXbYg10HDSzzIMf4ypzzv7
+QfbTB9rF5mZBjtr2s2/DZw9PQGd434ZFJ3z8wD2HvtH26HhxVmqJKo1mqsR6FArW
+GBPVq0LeUzfgQQahaeTkDC+nFvlq63AhUx+cAdNbb8VLEfih7Sns
+-----END RSA PRIVATE KEY-----
diff --git a/test/mocks/pnfsimulator/ftpes/vsftpd/tls/dfc.p12 b/test/mocks/pnfsimulator/ftpes/vsftpd/tls/dfc.p12
new file mode 100644
index 000000000..2e9357ea3
--- /dev/null
+++ b/test/mocks/pnfsimulator/ftpes/vsftpd/tls/dfc.p12
Binary files differ
diff --git a/test/mocks/pnfsimulator/ftpes/vsftpd/tls/ftp.crt b/test/mocks/pnfsimulator/ftpes/vsftpd/tls/ftp.crt
new file mode 100644
index 000000000..497ad8703
--- /dev/null
+++ b/test/mocks/pnfsimulator/ftpes/vsft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Y3IUjKwjcmspD3ewVnRJKLj0zeN/y13obr/Mu6NCdUo2qCsTTQS
+Ws2135DuPWDRMqJy8JuxTXmq6vdfhqQwE1jyxa3ovG+dn57jDpLTe5jOobKavB12
+IEOh2ea+LrVVBGs5XiCO7ZzZjJyn+R2AFw1ay3nM8RI=
+-----END CERTIFICATE-----
diff --git a/test/mocks/pnfsimulator/ftpes/vsftpd/tls/ftp.csr b/test/mocks/pnfsimulator/ftpes/vsftpd/tls/ftp.csr
new file mode 100644
index 000000000..b67e60b4a
--- /dev/null
+++ b/test/mocks/pnfsimulator/ftpes/vsftpd/tls/ftp.csr
@@ -0,0 +1,18 @@
+-----BEGIN CERTIFICATE REQUEST-----
+MIIC2DCCAcACAQAwaDELMAkGA1UEBhMCUEwxDDAKBgNVBAgMA2FzZDENMAsGA1UE
+BwwEYXNkYTEMMAoGA1UECgwDYXNkMQwwCgYDVQQLDANhc2QxDDAKBgNVBAMMA2Fz
+ZDESMBAGCSqGSIb3DQEJARYDYXNkMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIB
+CgKCAQEA7qWey4GAP6r8HdEqYIXZs+aCz6WZCHNJyCkavNAEDrcR+m00RUcVPMT7
+zeSYNhDs43py8OqoYNcmxmeRu20llvFnhMrhfkZTNcQR4jrFkQ88tr73IZxu0/pX
+Cv4+yrariXXdKpImmTnxlvfmIov0MARjfyJII4LFen0yLJpWWFsVrUoxGI56xemB
+ZmOtxrmZKScHGJK5RGxrLmTukOvBHsOQP3vSWO7HSqrPMVP8qDRGkQJqrH3x5g25
+Cz7VW3Y07Qfd3k9Y9c6tchGzECkMWVq9olGy0xcl6xQJcT4fAQ9TgbmSLNLfdr59
+WoHHTD4somrPn/B9sAY4GHjs9w0IIwIDAQABoCswEgYJKoZIhvcNAQkCMQUMA2Fz
+ZDAVBgkqhkiG9w0BCQcxCAwGc2VjcmV0MA0GCSqGSIb3DQEBCwUAA4IBAQCKf1xL
+6lY7NdrzfkQGg9fwX2bCMU6d83WR3fCdHOu/ez8owdmVI6zC3F78UIjvSHnO2W/L
+vBYwcybSjoLlRTxrU9Dv/WqFfHdGvxON8pCpL243IKWsWpTgMJBPF3D45dOgnDP5
+xKl6g1UelyNqXPLEiwp01B0nrJSvV6LGBNmI8nAL6Uxs+RZL2qq/d3yfGouD4xDX
+a8ZXJe8zIrqB7CJnK7dzRWqWTpLyHNkOQm/Ru9YIQc62JRjKct9lxpcfRzJwyzDm
+x620sT6Y+Yqdthkhj5sF9hImIhhPWNN7OiFQ2Zu7NmcYHakuXYr3FovObMkMl1eQ
+OJUhqylUF2MHGnrK
+-----END CERTIFICATE REQUEST-----
diff --git a/test/mocks/pnfsimulator/ftpes/vsftpd/tls/ftp.der b/test/mocks/pnfsimulator/ftpes/vsftpd/tls/ftp.der
new file mode 100644
index 000000000..4cc628ccb
--- /dev/null
+++ b/test/mocks/pnfsimulator/ftpes/vsftpd/tls/ftp.der
Binary files differ
diff --git a/test/mocks/pnfsimulator/ftpes/vsftpd/tls/ftp.jks b/test/mocks/pnfsimulator/ftpes/vsftpd/tls/ftp.jks
new file mode 100644
index 000000000..e0e49057f
--- /dev/null
+++ b/test/mocks/pnfsimulator/ftpes/vsftpd/tls/ftp.jks
Binary files differ
diff --git a/test/mocks/pnfsimulator/ftpes/vsftpd/tls/ftp.key b/test/mocks/pnfsimulator/ftpes/vsftpd/tls/ftp.key
new file mode 100644
index 000000000..575d98087
--- /dev/null
+++ b/test/mocks/pnfsimulator/ftpes/vsftpd/tls/ftp.key
@@ -0,0 +1,27 @@
+-----BEGIN RSA PRIVATE KEY-----
+MIIEowIBAAKCAQEA7qWey4GAP6r8HdEqYIXZs+aCz6WZCHNJyCkavNAEDrcR+m00
+RUcVPMT7zeSYNhDs43py8OqoYNcmxmeRu20llvFnhMrhfkZTNcQR4jrFkQ88tr73
+IZxu0/pXCv4+yrariXXdKpImmTnxlvfmIov0MARjfyJII4LFen0yLJpWWFsVrUox
+GI56xemBZmOtxrmZKScHGJK5RGxrLmTukOv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FdEzQl2GNRa9
+iKQTFdugJw9OR+Gutr3GO/c43Ezcpkudi3JaWoePfCZyqz8ErKY8NCQcN6TwfHFo
+jLWXsKhtRqfiHITZK7B66Kb4yfOnGbuPhtzo14V8VWzkQdYyHVPCLiMtqbI0dlt6
+bfTlAoGBAIfJ87AXnXMWlT9GgPUe6R2Mjln5VgW2X+VAW6P1ALBjpVoyfJg6/xn3
+7SHweBnQ1PopSHGGBIjWvw9KuScaaGg0+1vgcmtJiiZukNJ+YlHYOg1oWcb+EacT
+wAGeLZzRf+wKzpMT4cfCKVVxr5pTDXUmieI1VjxIVaZjxX+5RUE2
+-----END RSA PRIVATE KEY-----
diff --git a/test/mocks/pnfsimulator/ftpes/vsftpd/tls/vsftpd_keys_generator.sh b/test/mocks/pnfsimulator/ftpes/vsftpd/tls/vsftpd_keys_generator.sh
new file mode 100755
index 000000000..e88ff8965
--- /dev/null
+++ b/test/mocks/pnfsimulator/ftpes/vsftpd/tls/vsftpd_keys_generator.sh
@@ -0,0 +1,27 @@
+!/bin/bash
+echo 'Generating credetials for FTPES server and DFC client...'
+
+echo 'FTPES'
+#ganerate certificate&privatekey
+openssl req -x509 -days 365 -newkey rsa:2048 -keyout ftp.key -out ftp.crt -subj "/C=PL/ST=Dolny Slask/L=Wroclaw/O=Root Company/OU=IT Department/CN=Nokia" --passout pass:secret
+#create a jks keystore for TrustManager
+keytool -keystore ftp.jks -genkey -alias ftp -storepass secret -keypass secret -dname "CN=Nokia, OU=IT Department, O=Root Company, L=Wroclaw, ST=Dolny Slask, C=PL"
+#convert your certificate in a DER format :
+openssl x509 -outform der -in ftp.crt -out ftp.der
+#and after, import it in the keystore :
+keytool -import -alias ftep -keystore ftp.jks -file ftp.der -storepass secret -keypass secret -dname "CN=Nokia, OU=IT Department, O=Root Company, L=Wroclaw, ST=Dolny Slask, C=PL"
+
+echo 'DFC client'
+#ganerate certificate&privatekey
+openssl req -x509 -days 365 -newkey rsa:2048 -keyout dfc.key -out dfc.crt -subj "/C=PL/ST=Dolny Slask/L=Wroclaw/O=Root Company/OU=IT Department/CN=Nokia"
+#create a jks keystore for TrustManager
+keytool -keystore dfc.jks -genkey -alias dfc -storepass secret -keypass secret -dname "CN=root.com, OU=Root Org, O=Root Company, L=Wroclaw, ST=Dolny Slask, C=PL"
+#import client.crt and client.key to p12
+openssl pkcs12 -export -in dfc.crt -inkey dfc.key \
+ -out dfc.p12 -name dfc
+#keystore
+keytool -importkeystore \
+ -deststorepass secret -destkeypass secret -destkeystore dfc.jks \
+ -srckeystore dfc.p12 -srcstoretype PKCS12 -srcstorepass secret \
+ -alias dfc
+echo 'Finished' \ No newline at end of file