<div id="main-content" class="wiki-content group">
<h1 id="HTTPS-ÁreadeTransferência-Índice">Contents</h1>
<p>
<style type='text/css'>/*<![CDATA[*/
div.rbtoc1412695400621 {
padding: 0px;
}
div.rbtoc1412695400621 ul {
list-style: none;
margin-left: 0px;
}
div.rbtoc1412695400621 li {
margin-left: 0px;
padding-left: 0px;
}
/*]]>*/
</style>
<div class='toc-macro rbtoc1412695400621'>
<ul class='toc-indentation'>
<li><span class='TOCOutline'>1</span> <a
href='#HTTPS-ÁreadeTransferência-Objetivo'>Objective</a></li>
<li><span class='TOCOutline'>2</span> <a
href='#HTTPS-ÁreadeTransferência-Introdução'>Introduction</a></li>
<li><span class='TOCOutline'>3</span> <a
href='#HTTPS-ÁreadeTransferência-DownloaddoCertificado'>Certificate
Download</a></li>
<li><span class='TOCOutline'>4</span> <a
href='#HTTPS-ÁreadeTransferência-Instalaçãodocertificado'>Certificate
Installation</a></li>
</ul>
</div>
</p>
<h1 id="HTTPS-ÁreadeTransferência-Objetivo">Objective</h1>
<p>The objective of this guide is to instruct the user who uses the
"Transfer Area" feature to post documents in HTTPS environment.</p>
<p> </p>
<h1 id="HTTPS-ÁreadeTransferência-Introdução">Introduction</h1>
<p>
<span style="color: rgb(85, 85, 85);">In communications with
any <span style="color: rgb(85, 85, 85);">web application
(</span><em>HTTPS</em><span style="color: rgb(85, 85, 85);">)
through a </span><em>Java</em><span style="color: rgb(85, 85, 85);"> application
(Web or Desktop), an inconsistency may occur in which the Java
application attempts to communicate with the site through HTTPS, as
it does not have an SSL certificate associated with it. To
troubleshoot, follow the steps below. the procedure must be
performed on each of the client’s station.</span>
</span>
</p>
<p>
<img
class="confluence-embedded-image confluence-content-image-border image-center"
width="500" src="http://tdn.totvs.com/download/attachments/146178992/146113150.pngCapturar.PNG?version=1&modificationDate=1402500117000&api=v2"
data-image-src="http://tdn.totvs.com/download/attachments/146178992/146113150.pngCapturar.PNG?version=1&modificationDate=1402500117000&api=v2">
</p>
<p style="text-align: center;">
<strong>Figure 1 - Error message when there is no valid
certificate.</strong>
</p>
<p style="text-align: center;">
<strong><br /></strong>
</p>
<p>
<em><br /></em>
</p>
<div class="aui-message warning shadowed information-macro">
<span class="aui-icon icon-warning">Icon</span>
<div class="message-content">
<p>
<span style="color: rgb(56, 56, 56);">This guide has been
specially written for Java 7.</span>
</p>
</div>
</div>
<p> </p>
<h1 id="HTTPS-ÁreadeTransferência-DownloaddoCertificado">Certificate
Download</h1>
<p>
The first step is to <em>download</em> the <em>SSL</em> certificate
for the desired website, that is, the website to which you want to
connect through java, by using <em>HTTPS</em>. The certificate
can be easily downloaded through a <em>browser</em>. In the case
of Chrome<em>, </em>after opening the Fluig address, follow the
instructions below:
</p>
<p> </p>
<ul>
<li style="text-align: left;">Click the Padlock Icon located in
the address bar.</li>
<li style="text-align: left;">In the </strong>Connection<strong>
tab click on <strong>Certificate information</strong>, as shown in
the following image:</li>
</ul>
<p>
<img class="confluence-embedded-image image-center" width="500"
src="attachmentshttp:/146178992/146117772.pngtdn.totvs.com/download/attachments/146178992/Passo1.png?version=3&modificationDate=1403448430000&api=v2"
data-image-src="http://tdn.totvs.com/download/attachments/146178992/146117772Passo1.png?version=3&modificationDate=1403448430000&api=v2">
</p>
<p style="text-align: center;">
<strong>Figure 2</strong> <strong>- Screen with the
information of URL accessed</strong>
</p>
<p style="text-align: left;"> </p>
<p style="text-align: left;"> </p>
<ul>
<li style="text-align: left;">On the certificate screen, access
the </strong>Details<strong> tab and click on <strong>Copy
to File</strong><strong>...</strong>, as shown in the following image<strong> </strong>:
</li>
</ul>
<p>
<img class="confluence-embedded-image image-center"
src="http://tdn.totvs.com/download/attachments/146178992/146117773Passo2.png"?version=3&modificationDate=1403448430000&api=v2"
data-image-src="http://tdn.totvs.com/download/attachments/146178992/146117773Passo2.png?version=3&modificationDate=1403448430000&api=v2">
</p>
<p style="text-align: center;">
<strong>Figure 3 - Screen with the details of the certificate</strong>
</p>
<p> </p>
<p> </p>
<ul>
<li>On the <strong>Certificate Export Wizard</strong> screen,
click <strong>Next</strong> until you reach the <strong>Image
5</strong> screen, referring to the <strong>Export File Format:</strong></li>
</ul>
<p>
<img class="confluence-embedded-image image-center"
src="http://tdn.totvs.com/download/attachments/146178992/146117774Passo3.png?version=3&modificationDate=1403448431000&api=v2"
data-image-src="attachments/http://tdn.totvs.com/download/attachments/146178992/146117774Passo3.png?version=3&modificationDate=1403448431000&api=v2">
</p>
<p style="text-align: center;">
<strong>Figure 4 - Certificate Export Wizard screen</strong>
</p>
<p style="text-align: center;">
<strong><br /></strong>
</p>
<p>
<img class="confluence-embedded-image image-center"
src="http://tdn.totvs.com/download/attachments/146178992/146117776Passo4.png?version=3&modificationDate=1403448431000&api=v2"
data-image-src="http://tdn.totvs.com/download/attachments/146178992/146117776Passo4.png?version=3&modificationDate=1403448431000&api=v2">
</p>
<p style="text-align: center;">
<strong>Figure 5</strong><strong> -Certificate export wizard
screen</strong>
</p>
<p style="text-align: center;">
<strong><br /></strong>
</p>
<p>
<img class="confluence-embedded-image image-center"
src="http://tdn.totvs.com/download/attachments/146178992/146117778.pngPasso5.png?version=2&modificationDate=1403448431000&api=v2"
data-image-src="http://tdn.totvs.com/download/attachments/146178992/146117778Passo5.png?version=2&modificationDate=1403448431000&api=v2">
</p>
<p style="text-align: center;">
<strong>Figure 6</strong> - <strong>Certificate Export Wizard
screen</strong>
</p>
<p style="text-align: left;"> </p>
<p style="text-align: left;"> </p>
<ul>
<li style="text-align: left;">After defining the name and
location to export the <em>.CER</em> file, proceed and click <strong>Finish</strong>,
as shown in the following image:
</li>
</ul>
<p>
<em><img class="confluence-embedded-image image-center"
src="http://tdn.totvs.com/download/attachments/146178992/146117779Passo6.png?version=2&modificationDate=1403448432000&api=v2"
data-image-src="http://tdn.totvs.com/download/attachments/146178992/146117779Passo6.png?version=2&modificationDate=1403448432000&api=v2"></em>
</p>
<p style="text-align: center;">
<strong>Figure 7</strong> - <strong>Certificate Export Wizard
screen</strong>
</p>
<p style="text-align: left;">
<em><br /></em>
</p>
<p style="text-align: left;">
<em><br /></em>
</p>
<h1 id="HTTPS-ÁreadeTransferência-Instalaçãodocertificado">Certificate
Installation</h1>
<p>
<span style="color: rgb(85, 85, 85);">The next step is to
install the certificate in the local certificate base of java.
Usually located at: </span><em><JAVAHOME>/jre7/lib/security/cacerts</em>
</p>
<div class="aui-message warning shadowed information-macro">
<p class="title">Note</p>
<span class="aui-icon icon-warning">Icon</span>
<div class="message-content">
<p>
<span style="color: rgb(56, 56, 56);">If you are working in
Windows, you have to execute cmd.exe in administrator mode, so that
the process may continue.</span>
</p>
</div>
</div>
<p>
<span style="color: rgb(85, 85, 85);"><br /></span>
</p>
<ul>
<li><span style="color: rgb(85, 85, 85);">Open the command
line terminal and execute:</span></li>
</ul>
<div class="code panel pdl" style="border-width: 1px;">
<div class="codeContent panelContent pdl">
<pre class="theme: Confluence; brush: bash; gutter: false"
style="font-size: 12px;">keytool -importcert -trustcacerts -alias <apelido> -file <caminho para o certificado .crt> -keystore <caminho para o cacerts> -storepass changeit</pre>
</div>
</div>
<p> </p>
<p>The parameters of the command above should be amended as
follows:</p>
<div class="table-wrap">
<table class="confluenceTable">
<tbody>
<tr>
<td class="highlight confluenceTd"><p align="center">
<span style="color: rgb(0, 51, 102);">Parameter</span>
</p></td>
<td class="highlight confluenceTd"><p align="center">
<span style="color: rgb(0, 51, 102);">Description</span>
</p></td>
</tr>
<tr>
<td class="confluenceTd"><p>
<strong style="margin-left: 0.0px;"><apelido></strong>
</p></td>
<td class="confluenceTd"><p>
<span>Enter the name to identify the certificate to be
installed on the base</span>
</p></td>
</tr>
<tr>
<td class="confluenceTd"><p>
<strong style="margin-left: 0.0px;"><caminho para o
certificado .crt></strong>
</p></td>
<td class="confluenceTd"><p>
<span>Enter the path in which the certificate was saved</span>
</p></td>
</tr>
<tr>
<td class="confluenceTd"><p>
<strong style="margin-left: 0.0px;"><caminho para o
cacerts></strong>
</p></td>
<td class="confluenceTd"><p>
Enter the l<span>ocation in </span><em
style="margin-left: 0.0px;"><JAVAHOME>/jre7/lib/security/cacerts</em>
</p></td>
</tr>
<tr>
<td colspan="1" class="confluenceTd"><em><strong
style="margin-left: 0.0px;">-storepass changeit</strong></em></td>
<td colspan="1" class="confluenceTd"><span>“changeit”
is the default password for manipulating the <em>Java</em>
certificates base. It should not be changed.
</span></td>
</tr>
</tbody>
</table>
</div>
<p> </p>
<ul>
<li
style="color: rgb(85, 85, 85); font-size: 10.0pt; line-height: 13.0pt;"><span
style="color: rgb(85, 85, 85); font-size: 10.0pt; line-height: 13.0pt;">After
executing and confirming the previous command, the certificate will
be installed in the local certificate base of Java. </span>Details of the
imported certificate will be displayed, a shown in <strong>Figure
8</strong>:</li>
</ul>
<p>
<img class="confluence-embedded-image image-center"
src="http://tdn.totvs.com/download/attachments/146178992/146117804Passo7.png?version=1&modificationDate=1403462084000&api=v2"
data-image-src="http://tdn.totvs.com/download/attachments/146178992/146117804Passo7.png?version=1&modificationDate=1403462084000&api=v2">
</p>
<p style="text-align: center;">
<strong>Figure 8 - Certificate details screen</strong>
</p>
<p style="text-align: center;">
<strong><br /></strong>
</p>
<p style="text-align: left;">It is not necessary to reboot the
machine after executing the above procedures, although we recommend
restarting the browser.</p>
<p style="text-align: left;"> </p>
</div>
|