<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>You need to set your certificate details as well:</p>
<p> fServer.UseSSL := fUseSSL;<br>
if fUseSSL then<br>
begin<br>
fServer.CertificateData.KeyPassword := fCertificatePassword;<br>
fServer.CertificateData.HostName := fCertificateHostName;<br>
fServer.CertificateData.Certificate.FileName :=
fCertificateFileName;<br>
fServer.CertificateData.PrivateKey.FileName :=
fCertificatePrivateKey;<br>
end;</p>
<p>That should be sufficient. FPC 3.2.2 should do it.<br>
</p>
<p>Ondrej</p>
<p><br>
</p>
<div class="moz-cite-prefix">Am 23.08.2022 um 22:26 schrieb Fabio
Luis Girardi via fpc-pascal:<br>
</div>
<blockquote type="cite"
cite="mid:CAMeLTwf01ecUgkcn9-HqyAEdn=k4oka-9qxaRyDNcZyNFmFe5A@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">Hi Michael! <br>
<br>
Thanks for replying so fast.<br>
<br>
You're telling me that is possible, so the remaining possibility
is that I have a problem in my environment. Last question: FPC
3.2.2 can do that or I have to use trunk version? <br>
<br>
Sorry for taking your time.</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">Em ter., 23 de ago. de 2022 às
17:05, Michael Van Canneyt via fpc-pascal <<a
href="mailto:fpc-pascal@lists.freepascal.org"
moz-do-not-send="true" class="moz-txt-link-freetext">fpc-pascal@lists.freepascal.org</a>>
escreveu:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
<br>
On Tue, 23 Aug 2022, Fabio Luis Girardi via fpc-pascal wrote:<br>
<br>
> Exists in FPC some example that demonstrates the use of
TFPHTTPServer<br>
> with HTTPS? The unique example that I have found is<br>
> about TCustomHTTPApplication.<br>
<br>
There is no separate example.<br>
<br>
Using https is just setting a property UseSSL := True, and
include one of the<br>
units that registers an SSL handler (opensslsockets or
gnutlssockets)<br>
<br>
What more do you need ?<br>
<br>
Michael.<br>
<br>
_______________________________________________<br>
fpc-pascal maillist - <a
href="mailto:fpc-pascal@lists.freepascal.org"
target="_blank" moz-do-not-send="true"
class="moz-txt-link-freetext">fpc-pascal@lists.freepascal.org</a><br>
<a
href="https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal"
rel="noreferrer" target="_blank" moz-do-not-send="true"
class="moz-txt-link-freetext">https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal</a><br>
</blockquote>
</div>
<br clear="all">
<div><br>
</div>
-- <br>
<div dir="ltr" class="gmail_signature">The best regards,<br>
<br>
Fabio Luis Girardi<br>
PascalSCADA Project<br>
<a href="http://sourceforge.net/projects/pascalscada"
target="_blank" moz-do-not-send="true"
class="moz-txt-link-freetext">http://sourceforge.net/projects/pascalscada</a><br>
<a href="http://www.pascalscada.com" target="_blank"
moz-do-not-send="true" class="moz-txt-link-freetext">http://www.pascalscada.com</a></div>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
fpc-pascal maillist - <a class="moz-txt-link-abbreviated" href="mailto:fpc-pascal@lists.freepascal.org">fpc-pascal@lists.freepascal.org</a>
<a class="moz-txt-link-freetext" href="https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal">https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal</a>
</pre>
</blockquote>
</body>
</html>