<?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>how to Install SSL on GitLab Server Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/how-to-install-ssl-on-gitlab-server/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Mon, 20 Jan 2020 08:27:11 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.12</generator>
	<item>
		<title>How To Secure GitLab server with SSL certificate</title>
		<link>https://www.osradar.com/how-to-secure-gitlab-server-with-ssl-certificate/</link>
					<comments>https://www.osradar.com/how-to-secure-gitlab-server-with-ssl-certificate/#respond</comments>
		
		<dc:creator><![CDATA[sabi]]></dc:creator>
		<pubDate>Mon, 20 Jan 2020 08:27:09 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[how to Install SSL on GitLab Server]]></category>
		<category><![CDATA[Secure Gitlab with SSL certificate]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=17160</guid>

					<description><![CDATA[<p>Recently we have cover the Installation of GitLab CE on CentOS 8. Today we will cover the steps that can be taken to secure your GitLab Server with SSL Certificates. Because SSL certificates provides enhanced security to you and protect from spams. Here we will discuss two ways to configure GitLab with HTTPS access. Commercial [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-secure-gitlab-server-with-ssl-certificate/">How To Secure GitLab server with SSL certificate</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Recently we have cover the <a href="https://www.osradar.com/wp-admin/post.php?post=17064">Installation of GitLab CE on CentOS 8</a>. Today we will cover the steps that can be taken to secure your GitLab Server with SSL Certificates. Because  SSL certificates provides enhanced security to you and protect from spams.</p>



<p>Here we will discuss two ways to configure GitLab with HTTPS access.</p>



<ul><li>Commercial SSL Certificate like DigiCert,Comodo etc</li><li> Let&#8217;s Encrypt SSL</li></ul>



<h3><strong>Secure GitLab Server with a Commercial SSL </strong></h3>



<p>First of all purchase the SSL from trusted providers like Comodo, DigiCert etc. Then download the Certificate file and put it with the private key to the<strong> /etc/gitlab/ssl/</strong> directory.</p>



<pre class="wp-block-verse"> /etc/gitlab/ssl/git.example.com.key<br>/etc/gitlab/ssl/git.example.com.crt</pre>



<p>Then configure your SSL settings using <strong>/etc/gitlab/gitlab.rb</strong> file. </p>



<p>As to use secure connection change External URL from <strong>http</strong> to <strong>https</strong></p>



<pre class="wp-block-verse">external_url 'https://git.example.com'</pre>



<p>Now, enable Nginx under<strong> ##Gitlab NGINX</strong> section then provide SSL key &amp; certificate paths.</p>



<pre class="wp-block-verse">nginx['enable'] = true<br> nginx['client_max_body_size'] = '250m'<br> nginx['redirect_http_to_https'] = true<br> nginx['ssl_certificate'] = "/etc/gitlab/ssl/git.example.com.key"<br> nginx['ssl_certificate_key'] = "/etc/gitlab/ssl/git.example.com.crt"<br> nginx['ssl_protocols'] = "TLSv1.1 TLSv1.2"</pre>



<p>Then do other SSL settings by reading &amp; make the changes that fit for your deployment. When you have finished, run the below command.</p>



<pre class="wp-block-verse">sudo gitlab-ctl reconfigure</pre>



<p>When the command finishes , visit the URL <strong>https://git.example.com</strong> to Login to your GitLab dashboard.</p>



<h3><strong>Secure GitLab Server with Let&#8217;s Encrypt SSL Certificate</strong></h3>



<p>Firstly Open the file <strong>/etc/gitlab/gitlab.rb</strong> &amp; then look for Let&#8217;s Encrypt integration section.</p>



<p>To install Let&#8217;s Encrypt you must have a Domain name with Valid A record pointing to your GitLab Server. Set your server hostname to DNS name with a valid A record.</p>



<pre class="wp-block-verse">sudo hostnamectl set-hostname git.example.com --static</pre>



<p>Do the similar configurations</p>



<pre class="wp-block-verse">etsencrypt['enable'] = true<br> letsencrypt['contact_emails'] = ['admin@example.com'] # This should be an array of email addresses to add as contacts<br> letsencrypt['auto_renew'] = true</pre>



<p>Specify the autorenew hour and day of the month for your certificate.</p>



<pre class="wp-block-verse">letsencrypt['auto_renew_hour'] = 3<br>letsencrypt['auto_renew_day_of_month'] = "*/7"</pre>



<p>Then run the following command to take the effect of changes.</p>



<pre class="wp-block-verse">sudo gitlab-ctl reconfigure</pre>



<p>Now, run the below command to Validate GitLab settings </p>



<pre class="wp-block-verse">l<br> $ sudo gitlab-rake gitlab:check  <br> Checking GitLab Shell …<br> GitLab Shell version &gt;= 8.4.1 ? … OK (8.4.1)<br> hooks directories in repos are links: … can't check, you have no projects<br> Running /opt/gitlab/embedded/service/gitlab-shell/bin/check<br> Check GitLab API access: OK<br> Redis available via internal API: OK<br> Access to /var/opt/gitlab/.ssh/authorized_keys: OK<br> gitlab-shell self-check successful<br> Checking GitLab Shell … Finished<br> Checking Gitaly …<br> default … OK<br> Checking Gitaly … Finished<br> Checking Sidekiq …<br> Running? … yes<br> Number of Sidekiq processes … 1<br> Checking Sidekiq … Finished<br> Reply by email is disabled in config/gitlab.yml<br> Checking LDAP …<br> Server: ldapmain<br> LDAP authentication… Success<br> LDAP users with access to your GitLab server (only showing the first 100 results)<br> Checking LDAP … Finished<br> Checking GitLab …<br> Git configured correctly? … yes<br> Database config exists? … yes<br> All migrations up? … yes<br> Database contains orphaned GroupMembers? … no<br> GitLab config exists? … yes<br> GitLab config up to date? … yes<br> Log directory writable? … yes<br> Tmp directory writable? … yes<br> Uploads directory exists? … yes<br> Uploads directory has correct permissions? … yes<br> Uploads directory tmp has correct permissions? … skipped (no tmp uploads folder yet)<br> Init script exists? … skipped (omnibus-gitlab has no init script)<br> Init script up-to-date? … skipped (omnibus-gitlab has no init script)<br> Projects have namespace: … can't check, you have no projects<br> Redis version &gt;= 2.8.0? … yes<br> Ruby version &gt;= 2.3.5 ? … yes (2.4.5)<br> Git version &gt;= 2.9.5 ? … yes (2.18.1)<br> Git user has default SSH configuration? … yes<br> Active users: … 2<br> Checking GitLab … Finished</pre>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-secure-gitlab-server-with-ssl-certificate/">How To Secure GitLab server with SSL certificate</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-secure-gitlab-server-with-ssl-certificate/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
