<?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=M_Web_Server%2FEnabling_TLS</id>
	<title>M Web Server/Enabling TLS - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://vistapedia.com/index.php?action=history&amp;feed=atom&amp;title=M_Web_Server%2FEnabling_TLS"/>
	<link rel="alternate" type="text/html" href="https://vistapedia.com/index.php?title=M_Web_Server/Enabling_TLS&amp;action=history"/>
	<updated>2026-05-05T16:09:33Z</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=M_Web_Server/Enabling_TLS&amp;diff=17458&amp;oldid=prev</id>
		<title>DavidWhitten: Created page with &quot;&lt;pre&gt; Here&#039;s how to turn on TLS on GT.M/YDB: There is precious little documentation on doing it:   1. As root, go to the install dir of GTM/YDB, then plugin, then gtmcrypt:  c...&quot;</title>
		<link rel="alternate" type="text/html" href="https://vistapedia.com/index.php?title=M_Web_Server/Enabling_TLS&amp;diff=17458&amp;oldid=prev"/>
		<updated>2018-05-07T12:24:56Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;pre&amp;gt; Here&amp;#039;s how to turn on TLS on GT.M/YDB: There is precious little documentation on doing it:   1. As root, go to the install dir of GTM/YDB, then plugin, then gtmcrypt:  c...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
Here&amp;#039;s how to turn on TLS on GT.M/YDB: There is precious little documentation on doing it:&lt;br /&gt;
&lt;br /&gt;
 1. As root, go to the install dir of GTM/YDB, then plugin, then gtmcrypt:&lt;br /&gt;
 cd $gtm_dist/plugin/gtmcrypt.&lt;br /&gt;
&lt;br /&gt;
 2. Extract source.tar:&lt;br /&gt;
 tar x &amp;lt; source.tar&lt;br /&gt;
&lt;br /&gt;
 3. You will need to compile some files. Before doing that, make sure&lt;br /&gt;
 you openssl-dev, libconfig-dev, and gpgme-dev libraries are installed.&lt;br /&gt;
&lt;br /&gt;
 You may need more, but that&amp;#039;s what I figured out right now.&lt;br /&gt;
&lt;br /&gt;
 4. login to root account, (to allow installing of libraries)&lt;br /&gt;
&lt;br /&gt;
 5.  define the gtm_dist environment variable then call simple make&lt;br /&gt;
   gtm_dist=../.. make&lt;br /&gt;
 6.  define the gtm_dist environment variable then call make install to enable installation of libraries&lt;br /&gt;
&lt;br /&gt;
   gtm_dist=../.. make install&lt;br /&gt;
&lt;br /&gt;
  Log out of root; and go back to your application directory.&lt;br /&gt;
    &lt;br /&gt;
  mkdir certs&lt;br /&gt;
&lt;br /&gt;
 7. Create your certificate with a key that has a password. I know from&lt;br /&gt;
 previous interaction with the GT.M developers is that they don&amp;#039;t allow&lt;br /&gt;
 passwordless keys for business reasons. Here&amp;#039;s is how I did it; but&lt;br /&gt;
 you may already have a certificate. I moved all the files into a cert&lt;br /&gt;
 directory after this.&lt;br /&gt;
&lt;br /&gt;
 # openssl genrsa -aes128 -passout pass:monkey1234 -out ./mycert.key 2048&lt;br /&gt;
 # openssl req -new -key ./mycert.key -passin pass:monkey1234 -subj  &amp;#039;/C=US/ST=Washington/L=Seattle/CN=www.smh101.com&amp;#039; -out ./mycert.csr&lt;br /&gt;
 # openssl req -x509 -days 365 -sha256 -in ./mycert.csr -key&lt;br /&gt;
 .//mycert.key -passin pass:monkey1234 -out ./mycert.pem&lt;br /&gt;
 # mv cert* certs/&lt;br /&gt;
&lt;br /&gt;
 8. Create a file (name doesn&amp;#039;t matter) called&lt;br /&gt;
 gtmcrypt_config.libconfig with the following contents. Note the&lt;br /&gt;
 section called dev. This can be called anything. It lets you put a&lt;br /&gt;
 pair of cert/key for each environment you need to configure.&lt;br /&gt;
&lt;br /&gt;
  tls: {&lt;br /&gt;
   dev: {&lt;br /&gt;
     format: &amp;quot;PEM&amp;quot;;&lt;br /&gt;
     cert: &amp;quot;/home/sam/workspace/db/foia201712/certs/mycert.pem&amp;quot;;&lt;br /&gt;
     key:  &amp;quot;/home/sam/workspace/db/foia201712/certs/mycert.key&amp;quot;;&lt;br /&gt;
   }&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
 9. In your file that sets up the GT.M environment, add set the env&lt;br /&gt;
 variable gtmcrypt_config to be the path to your config file:&lt;br /&gt;
 export gtmcrypt_config=&amp;quot;$vista_home/gtmcrypt_config.libconfig&amp;quot;&lt;br /&gt;
&lt;br /&gt;
 10. Find out the hash of your key password using the maskpass utility.&lt;br /&gt;
 For example, for me it&amp;#039;s:&lt;br /&gt;
  gtm_dist/plugin/gtmcrypt/maskpass &amp;lt;&amp;lt;&amp;lt; &amp;#039;monkey1234&amp;#039; | cut -d &amp;quot;:&amp;quot; -f2 | tr -d &amp;#039; 7064420FDCAEE313B222&lt;br /&gt;
&lt;br /&gt;
 11. In your environment file, gtmtls_passwd_{section name} to be that hash.&lt;br /&gt;
  For me (Sam Habiel), it&amp;#039;s:&lt;br /&gt;
  export gtmtls_passwd_dev=&amp;quot;7064420FDCAEE313B222&amp;quot;&lt;br /&gt;
&lt;br /&gt;
 12. Start the M Web server with the config name (&amp;quot;dev&amp;quot;) like this:&lt;br /&gt;
  D JOB^VPRJREQ(9081,&amp;quot;dev&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
 At this point, if you go to your browser and type the address:&lt;br /&gt;
  https://localhost:9081&lt;br /&gt;
  you should be able  to see the web pages via TLS&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>DavidWhitten</name></author>
	</entry>
</feed>