Skip to content

Commit 29dc3da

Browse files
committed
lab8 suite
1 parent f10042a commit 29dc3da

3 files changed

Lines changed: 30 additions & 18 deletions

File tree

docs/class4/module2/lab8/lab8.rst

Lines changed: 30 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -114,29 +114,18 @@ Download the certificates
114114
.. image:: ../pictures/3rd-gen-cert.png
115115
:align: left
116116

117-
* Now, you must upload the zip file into the Nginx instance. Unfortunately, with UDF, this will require some preaparation. Please follow each step carefully
117+
* Now, you must upload the zip file into the Nginx instance.
118118

119-
* You need a terminal and scp tool on your laptop
120-
* Copy the FQDN of the Nginx instance
119+
* In UDF portal, on the Nginx instance, there is a Access Method called ``UPLOAD CERTS``. Click on it, it will open a new browser page to an Upload file website.
121120

122-
* In UDF, click on ``Deployment`` tab, then find the ``Nginx`` instance, and click on ``Details``
121+
.. image:: ../pictures/3rd-udf-upload.png
122+
:align: left
123123

124-
.. image:: ../pictures/3rd-access-button.png
125-
:align: left
124+
* Upload your zip file from this website. It will be uploaded into the Nginx instance.
126125

127-
* Click on the ``Access Methods`` tab, and find the SSH (not the Web Shell)
128-
* Copy the FQDN from the SSH command line (if you can't only select the FQDN, copy the full command and extract it from your Notepad for example)
126+
.. image:: ../pictures/3rd-upload-site.png
127+
:align: left
129128

130-
.. image:: ../pictures/3rd-access-fqdn.png
131-
:align: left
132-
133-
* Now from your terminal, use the scp command to copy the zip file to the Nginx instance
134-
135-
.. code-block:: bash
136-
137-
scp -O -P 47005 <certificate-zip-file> ubuntu@<FQDN-of-nginx-instance>:/home/ubuntu/
138-
139-
.. note:: example -> scp -O -P 47005 pumped-eel.nginx-sd.certificates.zip ubuntu@04398a92-397f-4b70-acf8-54d6129bc80b.access.udf.f5.com:/home/ubuntu
140129

141130
Enable API Disovery and Download the token
142131
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -157,4 +146,27 @@ Enable API Disovery and Download the token
157146
Configure the Nginx instance
158147
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
159148

149+
.. note:: The Nginx instance is already pre-configured to avoid to many copy-paste between this lab guide and the SSH session. You will just adapt the configuration to collect the logs from Nginx application and forward the logs to the CE.
150+
160151
* SSH or WEBSSH to the Nginx instance
152+
153+
* Copy the certificates zip file into /home/ubuntu directory and unzup it
154+
155+
.. code-block:: bash
156+
157+
sudo cp /var/www/nginx-upload-file/uploads/<your-file-name>.zip /home/ubuntu/certs.zip
158+
unzip certs.zip
159+
160+
* Copy the certs and key files into the right directories, and modify the permissions. Those certs+key are use to initiate the MTLS between the Nginx and the CE.
161+
162+
.. code-block:: bash
163+
164+
sudo cp client.crt /etc/nginx/certs/client.crt
165+
sudo cp client.key /etc/nginx/certs/client.key
166+
sudo cp server_ca.crt /etc/nginx/certs/server_ca.crt
167+
168+
sudo chmod 600 /etc/nginx/certs/client.key
169+
sudo chmod 644 /etc/nginx/certs/client.crt
170+
sudo chmod 644 /etc/nginx/certs/server_ca.crt
171+
172+
45.8 KB
Loading
223 KB
Loading

0 commit comments

Comments
 (0)