Skip to content

Commit

Permalink
Merge pull request #91 from wellitonSouza/certificate
Browse files Browse the repository at this point in the history
certificate and history
  • Loading branch information
wellitonSouza committed Sep 21, 2020
2 parents 583c785 + b8e06da commit d9d534a
Show file tree
Hide file tree
Showing 2 changed files with 90 additions and 3 deletions.
58 changes: 55 additions & 3 deletions source/locale/pt_BR/LC_MESSAGES/using-web-interface.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: dojot 0.2.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-09-11 14:21-0300\n"
"POT-Creation-Date: 2020-09-21 09:45-0300\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
Expand Down Expand Up @@ -460,8 +460,60 @@ msgid ""
"Note that in each step, the status and result of image processing are "
"shown."
msgstr ""
"Note que, em cada etapa, são exibidos o status e o resultado da aplicação"
" da imagem. "

#: ../../source/using-web-interface.rst:248
msgid "Generating certificates for devices"
msgstr "Gerando certificados para dispositivos"

#: ../../source/using-web-interface.rst:250
msgid ""
"This section will show how to generate x509 certificates for a device, so"
" that dojot can communicate with devices securely via TLS. To be able to "
"send a publication, it is necessary to download the three files, the "
"private key \"admin 4302d4.key\", the device certificate \"admin "
"4302d4.crt\" and the CA certificate \"ca.crt\"."
msgstr ""
"Nesta seção será demonstrado como gerar certificados x509 para um "
"dispositivo, para que a dojot consiga se comunicar com os dispositivos de"
" forma segura via TLS. Para conseguir realizar o envio de uma publicação "
"é necessário o download dos três arquivos, sendo eles a chave privada "
"\"admin 4302d4.key\", o certificado do dispositivo \"admin 4302d4.crt\" "
"e o certificado da CA “ca.crt”. "

#: ../../source/using-web-interface.rst:252
msgid ""
"To be able to execute the command of the example video it is necessary to"
" be in the same directory as the 3 files attached. Command used in the "
"example:"
msgstr ""
"Para conseguir executar o comando do vídeo de exemplo é necessário estar"
" no mesmo diretório que os 3 arquivos estão. Comando utilizado no "
"exemplo:"

#: ../../source/using-web-interface.rst:269
msgid "Generating device history report"
msgstr "Gerando relatório de histórico de dispositivos"

#: ../../source/using-web-interface.rst:271
msgid ""
"This section will demonstrate how to generate a device history report. "
"The report is able to show data for one or more attributes of the "
"respective device. For this, it is necessary to select the desired "
"attributes, define the period and click on “generate”."
msgstr ""
"Nesta seção será demonstrado como gerar um relatório de histórico de um "
"dispositivo. O relatório consegue mostrar os dados de um ou mais "
"atributos do respectivo dispositivo. Para isso, é necessário selecionar "
"os atributos desejados, definir o período e clicar em “gerar”."

#~ msgid ""
#~ "Note that in each step, the status"
#~ " and result of image processing are"
#~ " shown."
#~ msgstr ""
#~ "Note que, em cada etapa, são "
#~ "exibidos o status e o resultado da"
#~ " aplicação da imagem. "

#~ msgid ""
#~ "This section shows how to use the"
Expand Down
35 changes: 35 additions & 0 deletions source/using-web-interface.rst
Original file line number Diff line number Diff line change
Expand Up @@ -244,4 +244,39 @@ After you create the template with the Firmware management option enabled, you c
Note that in each step, the status and result of image processing are shown.


Generating certificates for devices
------------------

This section will show how to generate x509 certificates for a device, so that dojot can communicate with devices securely via TLS. To be able to send a publication, it is necessary to download the three files, the private key "admin 4302d4.key", the device certificate "admin 4302d4.crt" and the CA certificate "ca.crt".

To be able to execute the command of the example video it is necessary to be in the same directory as the 3 files attached. Command used in the example:

.. code:: bash
mosquitto_pub -h localhost -p 8883 -t admin: 4302d4/attrs -m '{"humidity": 7}' --cert "admin 4302d4.crt" --key "admin 4302d4.key" --cafile ca.crt
.. raw:: html

<iframe id="ytplayer" type="text/html" width="720" height="405"
src="https://www.youtube.com/embed/G1ZFfCLUT6A?rel=0" frameborder="0"
allowfullscreen></iframe>





Generating device history report
------------------

This section will demonstrate how to generate a device history report. The report is able to show data for one or more attributes of the respective device. For this, it is necessary to select the desired attributes, define the period and click on “generate”.


.. raw:: html

<iframe id="ytplayer" type="text/html" width="720" height="405"
src="https://www.youtube.com/embed/G1ZFfCLUT6A?rel=0" frameborder="0"
allowfullscreen></iframe>



.. _LwM2M: https://openmobilealliance.org/release/LightweightM2M/V1_1-20180710-A/OMA-TS-LightweightM2M_Core-V1_1-20180710-A.pdf

0 comments on commit d9d534a

Please sign in to comment.