<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ssl Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/ssl/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Sat, 06 Feb 2021 17:07:43 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.13</generator>
	<item>
		<title>Configure MariaDB with SSL to secure connections</title>
		<link>https://www.osradar.com/configure-mariadb-with-ssl-to-secure-connections/</link>
					<comments>https://www.osradar.com/configure-mariadb-with-ssl-to-secure-connections/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Wed, 10 Feb 2021 05:07:00 +0000</pubDate>
				<category><![CDATA[Databases]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[mariadb]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[ssl]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=28378</guid>

					<description><![CDATA[<p>Hello, friends. In this post, we will help you to configure MariaDB with SSL to secure connections. When we connect to a database, we have to do it in the most secure way there is. Everything helps but especially SSL certificates. These can be obtained from tools like Let’s Encrypt or created by the server [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/configure-mariadb-with-ssl-to-secure-connections/">Configure MariaDB with SSL to secure connections</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Hello, friends. In this post, we will help you to configure MariaDB with SSL to secure connections.</p>



<p>When we connect to a database, we have to do it in the most secure way there is. Everything helps but especially SSL certificates. These can be obtained from tools like Let’s Encrypt or created by the server itself. In any case, this guarantees that all the data that the applications obtain or send to the database are protected.</p>



<p>Let’s start</p>



<p><strong>Note for this post we will use the root account. In case it is not available you can use these commands with sudo. The result will be the same.</strong></p>



<h2 id="install-mariadb-on-linux"><a href="#install-mariadb-on-linux" name="install-mariadb-on-linux"></a>Install MariaDB on Linux</h2>



<p>Of course, the first step we have to do is to install <a href="https://mariadb.com/" target="_blank" rel="noreferrer noopener">MariaDB</a> on a server. To do this, check some of our posts</p>



<p><a href="https://www.osradar.com/install-mariadb-10-5-debian-10/" target="_blank" rel="noreferrer noopener">How to install MariaDB on Debian 10?</a></p>



<p><a href="https://www.osradar.com/install-mariadb-10-5-ubuntu-20-04-18-04/" target="_blank" rel="noreferrer noopener">How to install MariaDB on Ubuntu 20.04?</a></p>



<p>Or <a href="https://www.osradar.com/install-mariadb-10-5-centos-8/" target="_blank" rel="noreferrer noopener">How to install MariaDB on CentOS 8?</a></p>



<p>After that, you can continue.</p>



<h3 id="configure-mariadb-with-ssl"><a href="#configure-mariadb-with-ssl" name="configure-mariadb-with-ssl"></a>Configure MariaDB with SSL</h3>



<p>The first step is to create the directory where we will store the certificates that we will create later,</p>



<pre class="wp-block-preformatted">cd /etc/mysql
mkdir ssl
cd ssl</pre>



<p>Now create a new CA key:</p>



<pre class="wp-block-preformatted">openssl genrsa 4096 > ca-key.pem</pre>



<p>Now create the certificate</p>



<pre class="wp-block-preformatted">openssl req -new -x509 -nodes -days 365000 -key ca-key.pem -out ca-cert.pem
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter <span class="hljs-string">'.'</span>, the field will be left blank.
-----
Country Name (<span class="hljs-number">2</span> letter code) [AU]:FL
State or Province Name (full name) [Some-State]:
Locality Name (eg, city) []:City
Organization Name (eg, company) [Internet Widgits Pty Ltd]:
Organizational Unit Name (eg, section) []:IT
Common Name (e.g. server FQDN or YOUR name) []:osradar-common
Email Address []:</pre>



<p>On the output screen, you will have to answer some questions. Reply according to your case.</p>



<h3 id="creating-the-ssl-certificates"><a href="#creating-the-ssl-certificates" name="creating-the-ssl-certificates"></a>Creating the SSL Certificates</h3>



<p>Now we can create the certificate for the server, this can be done by running the following command:</p>



<pre class="wp-block-preformatted">openssl req -newkey rsa:2048 -days 365000 -nodes -keyout server-key.pem -out server-req.pem
Ignoring -days; not generating a certificate

Generating a RSA private key
...............................................................................+++++
.....+++++
writing new private key to <span class="hljs-string">'server-key.pem'</span>
-----
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter <span class="hljs-string">'.'</span>, the field will be left blank.
-----
Country Name (<span class="hljs-number">2</span> letter code) [AU]:
State or Province Name (full name) [Some-State]:
Locality Name (eg, city) []:city
Organization Name (eg, company) [Internet Widgits Pty Ltd]:
Organizational Unit Name (eg, section) []:IT
Common Name (e.g. server FQDN or YOUR name) []:osradar-server
Email Address []:

<code class="bash" data-origin="<pre&gt;<code class=&quot;bash&quot;&gt;Ignoring -days; not generating a certificate
Generating a RSA private key
...............................................................................+++++
.....+++++
writing new private key to 'server-key.pem'
-----
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [AU]:
State or Province Name (full name) [Some-State]:
Locality Name (eg, city) []:city
Organization Name (eg, company) [Internet Widgits Pty Ltd]:
Organizational Unit Name (eg, section) []:IT
Common Name (e.g. server FQDN or YOUR name) []:osradar-server
Email Address []:

Please enter the following 'extra' attributes
to be sent with your certificate request
A challenge password []:angelo
An optional company name []:osradar-server
</code&gt;</pre&gt;
<p&gt;">Please enter the following <span class="hljs-string">'extra'</span> attributes
to be sent with your certificate request
A challenge password []:angelo
An optional company name []:osradar-server</code></pre>



<p>There you will have to fill in the data again as in the previous step. <strong>The important thing here is that the <code>Common Name</code> cannot be the same</strong>.</p>



<p>Now process the new certificate:</p>



<pre class="wp-block-preformatted">openssl rsa -in server-key.pem -out server-key.pem
writing RSA key</pre>



<p>Then sign the certificate:</p>



<pre class="wp-block-preformatted">openssl x509 -req -in server-req.pem -days 365000 -CA ca-cert.pem -CAkey ca-key.pem -set_serial 01 -out server-cert.pem
Signature ok
subject=C = AU, ST = Some-State, L = city, O = Internet Widgits Pty Ltd, OU = IT, CN = osradar
Getting CA Private Key</pre>



<h3 id="create-the-client-certificate"><a href="#create-the-client-certificate" name="create-the-client-certificate"></a>Create the Client Certificate</h3>



<p>Now we have created the certificate for the server, but we have to do the same for the client.</p>



<p>To do this run:</p>



<pre class="wp-block-preformatted">openssl req -newkey rsa:2048 -days 365000 -nodes -keyout client-key.pem -out client-req.pem</pre>



<p>Again, you will have to fill in some data but <strong><code>Common Name</code> has to be different.</strong></p>



<p>Process the key:</p>



<pre class="wp-block-preformatted">openssl rsa -in client-key.pem -out client-key.pem</pre>



<p>And sign the certificate:</p>



<pre class="wp-block-preformatted">openssl x509 -req -in client-req.pem -days 365000 -CA ca-cert.pem -CAkey ca-key.pem -set_serial 01 -out client-cert.pem</pre>



<h3 id="adding-the-certificates-to-the-mariadb-server"><a href="#adding-the-certificates-to-the-mariadb-server" name="adding-the-certificates-to-the-mariadb-server"></a>Adding the certificates to the MariaDB server</h3>



<p>With the certificates already created, you need to configure MariaDB with them.</p>



<p>So, open the MariaDB configuration file</p>



<pre class="wp-block-preformatted">nano /etc/mysql/mariadb.conf.d/50-server.cnf</pre>



<p>And add the following lines:</p>



<pre class="wp-block-preformatted">ssl-ca=/etc/mysql/ssl/ca-cert.pem
ssl-cert=/etc/mysql/ssl/server-cert.pem
ssl-key=/etc/mysql/ssl/server-key.pem</pre>



<p>Save the changes and close the editor.</p>



<p>Then assign special permissions to the folder where the certificates are. This is so that no intruder can modify them or breach them.</p>



<pre class="wp-block-preformatted">chown -R mysql:root /etc/mysql/ssl/</pre>



<p>Apply all changes by restarting the service.</p>



<pre class="wp-block-preformatted">sudo systemctl restart mariadb</pre>



<h3 id="configuring-the-clients"><a href="#configuring-the-clients" name="configuring-the-clients"></a>Configuring the clients</h3>



<p>Before doing any configuration you have to copy <code>/etc/mysql/ssl/ca-cert.pem</code>, <code>/etc/mysql/ssl/client-cert.pem</code>, and <code>/etc/mysql/ssl/client-key.pem</code> to each of the clients that are going to connect to MariaDB.</p>



<p>Once everyone has the certificate added, configure MariaDB to use them:</p>



<pre class="wp-block-preformatted">nano /etc/mysql/mariadb.conf.d/50-mysql-clients.cnf</pre>



<p>And add the following lines:</p>



<pre class="wp-block-preformatted">ssl-ca=/etc/mysql/ssl/ca-cert.pem
ssl-cert=/etc/mysql/ssl/client-cert.pem
ssl-key=/etc/mysql/ssl/client-key.pem</pre>



<p>Save the changes and close the editor.</p>



<p>Now restart the service:</p>



<pre class="wp-block-preformatted">sudo systemctl restart mysql</pre>



<h2 id="creating-a-new-user-for-mariadb"><a href="#creating-a-new-user-for-mariadb" name="creating-a-new-user-for-mariadb"></a>Creating a new user for MariaDB</h2>



<p>The configuration is ready, but now you have to force the users to use SSL. To do this create a new user with the <code>REQUIRE SSL</code> clause.</p>



<pre class="wp-block-preformatted">GRANT ALL ON sampledatabase.* TO me@localhost IDENTIFIED BY 'password' REQUIRE SSL;</pre>



<p>This way this user will have to use SSL.</p>



<h2 id="conclusion"><a href="#conclusion" name="conclusion"></a>Conclusion</h2>



<p>The security in the transmission of data to MariaDB is something fundamental and that we should not neglect. That is why you have learned today how to do it and you have to implement it.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/configure-mariadb-with-ssl-to-secure-connections/">Configure MariaDB with SSL to secure connections</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/configure-mariadb-with-ssl-to-secure-connections/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to generate error-free SSL certificates.</title>
		<link>https://www.osradar.com/how-to-generate-error-free-ssl-certificates/</link>
					<comments>https://www.osradar.com/how-to-generate-error-free-ssl-certificates/#respond</comments>
		
		<dc:creator><![CDATA[Roger Polanco]]></dc:creator>
		<pubDate>Sun, 06 Oct 2019 07:11:31 +0000</pubDate>
				<category><![CDATA[Applications]]></category>
		<category><![CDATA[Desktop]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[certificates]]></category>
		<category><![CDATA[IIS]]></category>
		<category><![CDATA[localhost]]></category>
		<category><![CDATA[mkcert]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[ssl]]></category>
		<guid isPermaLink="false">https://www.googez.com/?p=1974</guid>

					<description><![CDATA[<p>Hello! I hope you&#8217;re all right. In the previous post, we learned how to generate self-signed SSL certificates on Windows Server 2019. Additionally, we saw that these certificates allow us to test the https protocol on our web pages. This is very useful for intranet use or web development. However, we saw that opening the [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-generate-error-free-ssl-certificates/">How to generate error-free SSL certificates.</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Hello! I hope you&#8217;re all right. In the previous post, we learned how to generate self-signed SSL certificates on <a rel="noreferrer noopener" aria-label="Windows Server 2019. (opens in a new tab)" href="https://www.googez.com/how-to-create-a-self-signed-ssl-certificate-with-windows-server-2019/" target="_blank">Windows Server 2019.</a> Additionally, we saw that these certificates allow us to test the https protocol on our web pages. This is very useful for intranet use or web development. However, we saw that opening the page generated a security error message. It is necessary to modify the security policies of the browser and add an exception to the website to continue browsing. Even so, the browser still appeared a warning. To me in particular, this warning is really uncomfortable. These errors are generated because the certificates are not really valid. They are not signed by a trusted certifier but are self-signed by the local machine itself. That&#8217;s why I&#8217;m going to show you how to generate error-free SSL certificates.</p>



<h2>Create a virtual certifier entity.</h2>



<p>In order to generate these certificates, it is necessary to use an opensource program called <a rel="noreferrer noopener" aria-label="mkcert (opens in a new tab)" href="https://github.com/FiloSottile/mkcert" target="_blank">mkcert</a>. Let me explain how this application works. Instead of generating self-signed certificates, it creates a local virtual certification authority that is added to the trusted root certificates authorities. Since the function of the program has been explained, please go to the <a href="https://github.com/FiloSottile/mkcert/releases" target="_blank" rel="noreferrer noopener" aria-label="download (opens in a new tab)">download</a> page to select the executable file.</p>



<figure class="wp-block-image"><img src="//1910974556.rsc.cdn77.org/wp-content/uploads/2019/10/cert-1024x787.jpg" alt="Downloading the executable file" class="wp-image-1976"/><figcaption>Downloading the executable file</figcaption></figure>



<p>This file is the program itself, no need to install or download other dependencies. We only have to run it using a Command Prompt. For ease of use, I recommend locating the downloaded file in a dedicated folder and renaming it to <strong>mkcert.exe.</strong> To do this, just click on the newly downloaded file, right-click and select properties. Furthermore, in the box corresponding to the file name, enter the new value. Then press OK to save the changes.</p>



<figure class="wp-block-image"><img src="//1910974556.rsc.cdn77.org/wp-content/uploads/2019/10/cert3-1024x578.jpg" alt="Renaming the file to mkcert.exe" class="wp-image-1979"/><figcaption>Renaming the file to mkcert.exe</figcaption></figure>



<p>Once downloaded the file you have to open a Command Prompt. With this in mind, press the Win+R combination, and in the box type <strong>CMD</strong>:</p>



<figure class="wp-block-image"><img src="//1910974556.rsc.cdn77.org/wp-content/uploads/2019/10/cert4.jpg" alt="Running a Command Prompt" class="wp-image-1980"/><figcaption>Running a Command Prompt</figcaption></figure>



<p>Then in Command Prompt, you have to use the<strong> cd </strong>command to navigate to the folder where you placed the file. Then execute the following command:</p>



<pre class="wp-block-preformatted"> <code>mkcert -install</code> </pre>



<p>the system will display a security warning indicating that a trusted root certificate will be installed for your certifier body. Just accept to install the certificate. </p>



<figure class="wp-block-image"><img src="//1910974556.rsc.cdn77.org/wp-content/uploads/2019/10/cert6-1024x532.jpg" alt="installing the virtual certifier body" class="wp-image-1982"/><figcaption>installing the virtual certifier</figcaption></figure>



<p>If everything is OK, you will see a confirmation message on the console with the warning that firefox support is not yet available.</p>



<figure class="wp-block-image"><img src="//1910974556.rsc.cdn77.org/wp-content/uploads/2019/10/cert5-1.jpg" alt="Successfully Mkcert  installed" class="wp-image-1984"/><figcaption> <span style="background-color: rgba(68, 68, 68, 0.2);">Success</span><em>fully</em> Mkcert  installed</figcaption></figure>



<h2> Generating certificates with mkcert </h2>



<p>To generate a certificate we just have to type the command mkcert followed by the domain name for which we want to generate the certificate. For example, if we want to generate it for localhost site, we will use the following syntax:</p>



<pre class="wp-block-preformatted"> <code>mkcert localhost</code> </pre>



<p>Executing this command will result in a digital certificate and a private key file in PEM format. This class of certificates is most commonly used on Mac, Linux, Apache or Nginx. But to generate a certificate suitable for our Windows platform, it is necessary to generate it in PKCS 12 format. With this intention, you have to add the parameter -pkcs12, so that the syntax will be this way:</p>



<pre class="wp-block-preformatted">mkcert -pkcs12 localhost</pre>



<p>When entering the command, we will see the following message in the cmd:</p>



<figure class="wp-block-image"><img src="//1910974556.rsc.cdn77.org/wp-content/uploads/2019/10/cert7.jpg" alt="Generating a certificate suitable for Windows" class="wp-image-1988"/><figcaption>Generating a certificate suitable for Windows</figcaption></figure>



<p>Please note that the encryption password is <em>changeit</em>, as seen in the Command Prompt. This password will be asked for later.</p>



<h2>Installing the certificate.</h2>



<p>In the first place, you have to locate the certificate you just generated. This is in the folder where you saved the program. Its name is <strong>localhost.p12</strong>. Once there, double click on it to start the installation. Select <strong>Local Machine</strong> and press Next to continue the installation.</p>



<figure class="wp-block-image"><img src="//1910974556.rsc.cdn77.org/wp-content/uploads/2019/10/cert8.jpg" alt="Select Local Machine" class="wp-image-1991"/><figcaption>Select Local Machine</figcaption></figure>



<p>The wizard will ask you to confirm the certificate you want to import. </p>



<figure class="wp-block-image"><img src="//1910974556.rsc.cdn77.org/wp-content/uploads/2019/10/cert9-1.jpg" alt="Specify the file to import" class="wp-image-1993"/><figcaption>Specify the file to import</figcaption></figure>



<p>Remember I asked you to remember the encryption password? Then it&#8217;s time to add it to install the certificate.</p>



<figure class="wp-block-image"><img src="//1910974556.rsc.cdn77.org/wp-content/uploads/2019/10/cert10.jpg" alt="Introducing the password" class="wp-image-1995"/><figcaption>Introducing the password</figcaption></figure>



<p>On the next screen choose the first option.</p>



<figure class="wp-block-image"><img src="//1910974556.rsc.cdn77.org/wp-content/uploads/2019/10/cert11.jpg" alt="Automatic selection of certificates" class="wp-image-1997"/><figcaption>Automatic selection of certificates</figcaption></figure>



<p>Then check the options and press finish to complete the import.</p>



<figure class="wp-block-image"><img src="//1910974556.rsc.cdn77.org/wp-content/uploads/2019/10/cert12.jpg" alt="Finishing the import" class="wp-image-1998"/><figcaption>Finishing the import</figcaption></figure>



<p>A message will confirm that the process has been successfully completed.</p>



<h2>Binding the SSL certificate</h2>



<p>Once we have created and installed the certificate, it is time to bind it to the website. To do this, we will use the Internet Information Service Manager. To know everything about this tool I invite you to see our tutorial about <a rel="noreferrer noopener" aria-label="IIS (opens in a new tab)" href="https://www.googez.com/how-to-enable-iis-in-windows-server-2019/" target="_blank">IIS</a>. First of all, we will check if the certificate is correctly installed. With this in mind, in the left column select the server, and in the central panel choose <strong>Server Certificates</strong>. Then, in the right column, place the action <strong>Open Feature</strong></p>



<figure class="wp-block-image"><img src="//1910974556.rsc.cdn77.org/wp-content/uploads/2019/10/cert13-1024x548.jpg" alt="IIS manager" class="wp-image-2001"/><figcaption>IIS manager</figcaption></figure>



<p>The list of available certificates will open. For now, we&#8217;ll only see the one we just added.</p>



<figure class="wp-block-image"><img src="//1910974556.rsc.cdn77.org/wp-content/uploads/2019/10/cert14-1024x548.jpg" alt="Server Certificates" class="wp-image-2003"/><figcaption>Server Certificates</figcaption></figure>



<p>Finally, we will bind the certificate to the website. To see how it&#8217;s done, check the link above. Here I only show you the correctly added certificate.</p>



<figure class="wp-block-image"><img src="//1910974556.rsc.cdn77.org/wp-content/uploads/2019/10/cert15-1.jpg" alt="Successfully added certificate" class="wp-image-2006"/><figcaption>Successfully added certificate</figcaption></figure>



<h2>Testing the certificate on the website</h2>



<p>In the same menu above, please select <strong>Browse *.443 (https)</strong>. This action will launch the web page, using the https protocol that allows the SSL certificate.</p>



<figure class="wp-block-image"><img src="//1910974556.rsc.cdn77.org/wp-content/uploads/2019/10/cert16-1024x548.jpg" alt="Launching https navigation on the  website" class="wp-image-2008"/><figcaption>Launching https navigation on the website</figcaption></figure>



<p>In the web browser, we will see the indicative padlock that we are using https.</p>



<figure class="wp-block-image"><img src="//1910974556.rsc.cdn77.org/wp-content/uploads/2019/10/cert17-1024x548.jpg" alt="Testing the SSL certificate on Opera" class="wp-image-2011"/><figcaption>Testing the SSL certificate on Opera</figcaption></figure>



<figure class="wp-block-image"><img src="//1910974556.rsc.cdn77.org/wp-content/uploads/2019/10/cert18-1024x548.jpg" alt="Testing the SSL certificate on Edge Beta" class="wp-image-2012"/><figcaption> <em>Testing the SSL certificate on </em>Edge Beta</figcaption></figure>



<figure class="wp-block-image"><img src="//1910974556.rsc.cdn77.org/wp-content/uploads/2019/10/cert19-1024x548.jpg" alt="Testing the SSL certificate on Chrome" class="wp-image-2013"/><figcaption> <em>Testing the SSL certificate on </em>Chrome</figcaption></figure>



<p>Well, finally we have learned how to generate SSL certificates that do not cause security errors. It is important to note that these certificates are only valid on our local machine. So if we use them on other computers will not work.  However, it is of tremendous help to develop locally. Personally, these articles that involve more research are my favorites. Before I say goodbye, I would like to invite you to our <a href="https://t.me/googez" target="_blank" rel="noreferrer noopener" aria-label="Telegram (opens in a new tab)">Telegram</a> channel. </p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-generate-error-free-ssl-certificates/">How to generate error-free SSL certificates.</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/how-to-generate-error-free-ssl-certificates/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to Create a Self Signed  Certificates with Windows Server 2019.</title>
		<link>https://www.osradar.com/how-to-create-a-self-signed-ssl-certificate-with-windows-server-2019/</link>
					<comments>https://www.osradar.com/how-to-create-a-self-signed-ssl-certificate-with-windows-server-2019/#respond</comments>
		
		<dc:creator><![CDATA[Roger Polanco]]></dc:creator>
		<pubDate>Wed, 02 Oct 2019 23:42:12 +0000</pubDate>
				<category><![CDATA[Desktop]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[certificates selfsigned]]></category>
		<category><![CDATA[IIS]]></category>
		<category><![CDATA[ssl]]></category>
		<category><![CDATA[Windows server 2019]]></category>
		<guid isPermaLink="false">https://www.googez.com/?p=1819</guid>

					<description><![CDATA[<p>Hi. How are you? Let&#8217;s continue exploring the features of Windows Server 2019. In this opportunity, we will talk about how to create self signed certificates on Windows Server 2019. In the first place let&#8217;s define what is an SSL (Secure Socket Layer) Certificate. It encrypts all data between the server and the client’s browser. [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-create-a-self-signed-ssl-certificate-with-windows-server-2019/">How to Create a Self Signed  Certificates with Windows Server 2019.</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Hi. How are you? Let&#8217;s continue exploring the features of Windows Server 2019. In this opportunity, we will talk about how to create self signed certificates on Windows Server 2019. In the first place let&#8217;s define what is an SSL (Secure Socket Layer) Certificate. It encrypts all data between the server and the client’s browser. Consequently, if an attacker wants to access the information exchanged between the two, he won&#8217;t be able to decipher it. As you can see, it is a fundamental aspect of the security of a website. In addition, it is indispensable to be able to activate HTTPS on the site. </p>



<h2>Generating SSLcertificates</h2>



<p>On the other hand, there are several sites online to acquire these certificates: <a rel="noreferrer noopener" aria-label="comodo (opens in a new tab)" href="https://www.comodo.com/" target="_blank">comodo</a>, <a rel="noreferrer noopener" aria-label="Symantec (opens in a new tab)" href="https://www.symantec.com/" target="_blank">Symantec</a> and <a rel="noreferrer noopener" aria-label="GlobalSign (opens in a new tab)" href="https://www.globalsign.com/en/" target="_blank">GlobalSign</a> for example. These sites offer SSL certificates at different prices, depending on the customer&#8217;s needs. However, we have the possibility to generate self-signed certificates using Windows Server 2019. For this, we will use Internet Information Services, if you don&#8217;t know how to activate it, go through our <a rel="noreferrer noopener" aria-label="tutorial (opens in a new tab)" href="https://www.googez.com/how-to-enable-iis-in-windows-server-2019/" target="_blank">tutorial</a>. Obviously, the effectiveness of a self-signed certificate is less than that of one signed by a company. However, we can use these certificates to work on our intranet or publish sites on the Internet as well. So let&#8217;s see how to create self signed certificates on Windows Server 2019.</p>



<h2>Create self signed certificates using IIS manager</h2>



<p>From the Server Manager, locate IIS in the left pane.</p>



<figure class="wp-block-image"><img src="//www.osradar.com/wp-content/uploads/2019/10/ssl-1024x728.jpg" alt="IIS" class="wp-image-1821"/><figcaption>IIS</figcaption></figure>



<p>Then right-click on the server and run the IIS manager</p>



<figure class="wp-block-image"><img src="//www.osradar.com/wp-content/uploads/2019/10/ssl2-1024x768.jpg" alt="Running Internet Information Services (IIS) Manager" class="wp-image-1822"/><figcaption>Running Internet Information Services (IIS) Manager</figcaption></figure>



<p>Click on the name of the server in the left column connections. Then double click on <strong>Server Certificates</strong></p>



<figure class="wp-block-image"><img src="//www.osradar.com/wp-content/uploads/2019/10/ssl3-1024x728.jpg" alt="Select Server Certificates" class="wp-image-1824"/><figcaption>Select Server Certificates</figcaption></figure>



<p>In the right column, select <strong>Create Self-Signed Certificate</strong>.</p>



<figure class="wp-block-image"><img src="//www.osradar.com/wp-content/uploads/2019/10/ssl4-1024x728.jpg" alt="Create Self-Signed Certificates" class="wp-image-1825"/><figcaption>Create Self-Signed Certificates</figcaption></figure>



<p>Choose the name of your preference to identify the certificate and press OK to continue.</p>



<figure class="wp-block-image"><img src="//www.osradar.com/wp-content/uploads/2019/10/ssl5.jpg" alt="Specify a friendly name to the new certificate" class="wp-image-1827"/><figcaption>Specify a friendly name to the new certificate</figcaption></figure>



<p>Finally, we have a certificate valid for one year. We can see it in the section Server Certificates</p>



<figure class="wp-block-image"><img src="//www.osradar.com/wp-content/uploads/2019/10/ssl6-1024x728.jpg" alt="Certificate finally generated" class="wp-image-1828"/><figcaption>Certificate finally generated</figcaption></figure>



<h2>Testing the certificate. </h2>



<p>To test the performance of the certificate we just created, we will open the IIS Manager. </p>



<figure class="wp-block-image"><img src="//www.osradar.com/wp-content/uploads/2019/10/cer-1024x728.jpg" alt="Binding the certificate" class="wp-image-1952"/><figcaption>Binding the certificate</figcaption></figure>



<p>Next, press the <em>Add</em> button.</p>



<figure class="wp-block-image"><img src="//www.osradar.com/wp-content/uploads/2019/10/cer2.jpg" alt="Adding the self signed certificate" class="wp-image-1954"/><figcaption>Adding the self signed certificate</figcaption></figure>



<p>In the next window, click on <strong>Type </strong>and select https, then on <strong>SSL Certificate</strong> choose the newly created certificate and press OK to continue.</p>



<figure class="wp-block-image"><img src="//www.osradar.com/wp-content/uploads/2019/10/cer3.jpg" alt="Select the new SSL certificate" class="wp-image-1955"/><figcaption>Select the new SSL certificate</figcaption></figure>



<p> We should now see the bindings for port 443. Next, press the Add button. Now close the window to finish. </p>



<figure class="wp-block-image"><img src="//www.osradar.com/wp-content/uploads/2019/10/cer4.jpg" alt="Site Bindings" class="wp-image-1959"/><figcaption>Site Bindings</figcaption></figure>



<p>All right, let&#8217;s try the new certificate. In the IIS Manager, go to the Action panel on the right and select <strong>Browse *.443 (https)</strong>.</p>



<figure class="wp-block-image"><img src="//www.osradar.com/wp-content/uploads/2019/10/cer5-1024x728.jpg" alt="Browse https site" class="wp-image-1960"/><figcaption>Browse https site</figcaption></figure>



<p>We&#8217;ll immediately see a security alert. This is because the browser cannot verify the authenticity of the certificate since the website is the one that provides the information.  We must establish an exception to this alert by clicking on <strong>advanced</strong>, and then on <strong>Accept the risk and continue</strong>.</p>



<figure class="wp-block-image"><img src="//www.osradar.com/wp-content/uploads/2019/10/cer6-1-1024x728.jpg" alt="Adding an exception to localhost" class="wp-image-1962"/><figcaption>Adding an exception to localhost</figcaption></figure>



<p>Once this is done, we&#8217;ll see the https navigation enabled on the website.</p>



<figure class="wp-block-image"><img src="//www.osradar.com/wp-content/uploads/2019/10/cer7-1024x728.jpg" alt="Localhost with https activated" class="wp-image-1963"/><figcaption>Localhost with https activated</figcaption></figure>



<h2>Conclusion</h2>



<p> We have seen how to generate a self-signed certificate in Windows Server 2019. As we already mentioned, this will be of great help to the security of our websites. I hope you enjoyed this tutorial, in next releases, we will continue studying on Windows Server 2019. In fact, let&#8217;s see how to generate error-free SSL certificates for local development.  In conclusion, has been a profitable way up to here, before saying goodbye I want to invite you to join our group on <a href="https://www.facebook.com/groups/2683310658354708/?ref=br_tf&amp;epa=SEARCH_BOX" target="_blank" rel="noreferrer noopener" aria-label="Facebook (opens in a new tab)">Facebook</a>. </p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-create-a-self-signed-ssl-certificate-with-windows-server-2019/">How to Create a Self Signed  Certificates with Windows Server 2019.</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/how-to-create-a-self-signed-ssl-certificate-with-windows-server-2019/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
