Wednesday 20 July 2016

Trusted SSL_Certificate Authentication in Gitlab

HI I have face some issues in gitlab ssl authentication. I have tried so may way to solved but i unable to configure trusted ssl. so finally i got easy way to solve this. Below I have mentioned the steps. 

1. Configure the ssl cert and key path in gitlab.rb

Place the original certifiacation and key to /etc/gitlab/ssl/

and edit the gitlab config file with following command

vim /etc/gitlab/gitlab.rb

in that  we need to assign the location of ssl cert and key path for nginx. After that you need to change some changes in nginx config file.

 nginx['ssl_certificate'] = "/etc/gitlab/ssl/ssl_certificate.crt"

 nginx['ssl_certificate_key'] = "/etc/gitlab/ssl/ssl_certification.key"


vim /opt/gitlab/embedded/conf/nginx.conf

in that you have to uncommand and modified like below.

 HTTPS server

    server {
       listen       443 ssl;
        server_name  gitlab.domain.com;

        #ssl_certificate      cert.pem;
        ssl_certificate      /etc/gitlab/ssl/ssl_certificate.crt;
        ssl_certificate_key  /etc/gitlab/ssl/ss_certification.key;

        ssl_session_cache    shared:SSL:1m;
        ssl_session_timeout  5m;

        ssl_ciphers  HIGH:!aNULL:!MD5;
        ssl_prefer_server_ciphers  on;

        location / {
           root   html;
           index  index.html index.htm;
        }
    }

}

copy the original certificate file to /etc/pki/ca-trust/source/anchors/

then only it will authenticate with gitlab nginx.

2. Passphrase authentication

If we give the gitlab-ctl reconfigure it will shows the bad password read error in that time if your certification have the key. If your certification doesn't have the key then no problem. If you have then. provide the following command and give the location to the config it will authenticate successfully.

openssl rsa -in original.key -out unencripted.key

then

gitlab-ctl reconfigure

gitlab-ctl restart


Enjoy............

Thursday 14 July 2016

Mounting NTFS file system in RHEL

Hi All so many people doesn't know that Linux do not support windows partitions. So Today I'm going to explain how to use NTFS file format in RHEL.

All you need is just install one package that support that NTFS partition . We can use it as temporary and permanent mount on linux. So here goes.

1. Install & Configure

  Use the following command to install fuse-ntfs-3g. It will make mountable NTFS file system in linux. You can download the RPM package in online

yum install ntfs-3g -y

after that just check the partition list with following command

fdisk -l

this command will show you the NTFS partitions and take a note that partition name and path.


after that you have to load the fuse driver.

modprobe fuse

Next

create a directory in /mnt so you can mount the partition there.

mkdir /mnt/NTFS

now mount the partition with following command

mount -t ntfs-3g /dev/sdb1 /mnt/NTFS

Finished now you can check the mounted partition with following command.

df -h

you can now use the files.

If you want to unmount the partition then it's easy to unmount use the following command.

umount /mnt/NTFS

Enjoy.......:-)


Permanent hostname setup for RHEL7

Step 1 Set the host name on NMTUI tool like following nmtui set host name   then save and exit Step 2 add the following l...