<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://vistapedia.com/index.php?action=history&amp;feed=atom&amp;title=TLS_Enable_VISTA_Service</id>
	<title>TLS Enable VISTA Service - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://vistapedia.com/index.php?action=history&amp;feed=atom&amp;title=TLS_Enable_VISTA_Service"/>
	<link rel="alternate" type="text/html" href="https://vistapedia.com/index.php?title=TLS_Enable_VISTA_Service&amp;action=history"/>
	<updated>2026-05-09T08:58:36Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://vistapedia.com/index.php?title=TLS_Enable_VISTA_Service&amp;diff=15738&amp;oldid=prev</id>
		<title>Shabiel: Created page with &quot;= TLS Enable a VISTA Service = If you want to know why, look elsewhere.  == Create a inetd style program that works == Not covering that here. Here&#039;s my example:  &lt;pre&gt; # cat ...&quot;</title>
		<link rel="alternate" type="text/html" href="https://vistapedia.com/index.php?title=TLS_Enable_VISTA_Service&amp;diff=15738&amp;oldid=prev"/>
		<updated>2013-04-02T16:52:35Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;= TLS Enable a VISTA Service = If you want to know why, look elsewhere.  == Create a inetd style program that works == Not covering that here. Here&amp;#039;s my example:  &amp;lt;pre&amp;gt; # cat ...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= TLS Enable a VISTA Service =&lt;br /&gt;
If you want to know why, look elsewhere.&lt;br /&gt;
&lt;br /&gt;
== Create a inetd style program that works ==&lt;br /&gt;
Not covering that here. Here&amp;#039;s my example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# cat ~vista/bin/VPRJ.sh &lt;br /&gt;
#!/bin/bash&lt;br /&gt;
cd &amp;quot;$(dirname &amp;quot;$0&amp;quot;)&amp;quot;&lt;br /&gt;
source ./set_env&lt;br /&gt;
$gtm_dist/mumps -r GTMLNX^VPRJREQ&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Install stunnel ==&lt;br /&gt;
For Ubuntu, that was &amp;lt;code&amp;gt;apt-get install stunnel4&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Create a self-signed certificate ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /etc/stunnel&lt;br /&gt;
openssl req -new -x509 -days 11365 -nodes -out stunnel.pem -keyout stunnel.pem&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Create xinetd service ==&lt;br /&gt;
On your favorite port. If it&amp;#039;s a web server, you should use 443.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# cat /etc/xinetd.d/VPRJ-9281-TLS &lt;br /&gt;
service VPRJ-9281-TLS&lt;br /&gt;
{&lt;br /&gt;
        port        = 9281&lt;br /&gt;
        socket_type = stream&lt;br /&gt;
        protocol    = tcp&lt;br /&gt;
        type        = UNLISTED&lt;br /&gt;
        user        = vista&lt;br /&gt;
        groups      = yes&lt;br /&gt;
        server      = /usr/bin/stunnel&lt;br /&gt;
        server_args = -p /etc/stunnel/stunnel.pem -l /home/vista/bin/VPRJ.sh&lt;br /&gt;
        env         = USER=vista&lt;br /&gt;
        env        += HOME=/home/vista&lt;br /&gt;
        wait        = no&lt;br /&gt;
        disable     = no&lt;br /&gt;
        per_source  = UNLIMITED&lt;br /&gt;
        instances   = UNLIMITED&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Testing ==&lt;br /&gt;
I mostly use curl for testing HTTP services. Tell curl to ignore certificate validation by the &amp;lt;code&amp;gt;-k&amp;lt;/code&amp;gt; flag.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# curl -ki https://localhost:9281/ping&lt;br /&gt;
HTTP/1.1 200 OK&lt;br /&gt;
Date: Tue, 02 Apr 2013 16:52:29 GMT&lt;br /&gt;
Content-Type: application/json; charset=utf-8&lt;br /&gt;
Content-Length: 20&lt;br /&gt;
&lt;br /&gt;
{&amp;quot;status&amp;quot;:&amp;quot;running&amp;quot;}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Shabiel</name></author>
	</entry>
</feed>