Ana içeriğe atla

Kayıtlar

Temmuz, 2019 tarihine ait yayınlar gösteriliyor

selinux aksaklık nedeninin incelenmesi

selinux kullanmaya başladığımızda, audit ile ilgili sorun yaşamaya başladıysak ilk yapmamız gereken nedeni sorunun nedenini sisteme sormak olur. Öncelikle için policy paketleri ile ilgili policycoreutils-python-2.5-29.el7_6.1.x86_64 paket yüklenmiş olmalı. [root@rhel7lab01 ~]# [root@rhel7lab01 ~]# yum info policycoreutils-python-2.5-29.el7_6.1.x86_64 Loaded plugins: langpacks, priorities, product-id, ps, remove-with-leaves, search-disabled-repos, show-leaves, subscription-manager, upgrade-helper Installed Packages Name        : policycoreutils-python Arch        : x86_64 Version     : 2.5 Release     : 29.el7_6.1 Size        : 1.2 M Repo        : installed From repo   : rhel-7-server-rpms Summary     : SELinux policy core python utilities URL         : http://www.selinuxproject.org License     : GPLv2 Description : The policycoreutils-python package contains the management tools use to manage             : an SELinux environment. [root@rhel7lab01 ~]# Paket yüklüyse, öncelikle izin veri

kendi ssl sertifikamızı oluşturmak

Aşağıdaki script ile kolay bir şekilde oluşturabiliriz. remzi@han:/tmp/sslcert$ cat ~/bin/create-self-cert.sh #!/bin/bash set +x if [ $# -eq  "1" ] then certname=$1 else certname=`hostname -f` fi # openssl genrsa -des3 -out $certname.key  2048 openssl genrsa -out $certname.key  2048 openssl req    -new  -key $certname.key -out $certname.csr openssl x509   -req  -days 3650 -in $certname.csr -signkey $certname.key -out $certname.cert Kullanımı: remzi@han:/tmp/sslcert$ ./create-self-cert.sh localhost