Heartbleed kontrol scripti.

Heartbleed açığını kontrol etmek için bir script.

Python ile yazılmış.

Kullanımı :

[root@management scripts]# python hb-test.py 
Usage: hb-test.py server [options]

Test for SSL heartbeat vulnerability (CVE-2014-0160)

Options:
  -h, --help            show this help message and exit
  -p PORT, --port=PORT  TCP port to test (default: 443)
  -s, --starttls        Check STARTTLS
  -d, --debug           Enable debug output

Script için : Heart Bleed kontrol scripti

Orjinal Link : https://gist.githubusercontent.com/takeshixx/10107280/raw/8052d8479ad0c6150464748d639b0f5e877e8c37/hb-test.py

Not : Sadece HTTPS değil aynı zamanda IMAPS, POP3S, SMTPS protokollerini de kullanıyorsanız muhakkak test edin.

Diğer kontrol adresleri :

https://filippo.io/Heartbleed/
https://lastpass.com/heartbleed/
http://tif.mcafee.com/heartbleedtest

Posted in Genel, Linux on April 14th, 2014 by Kürşad DARA | | 0 Comments

OpenSSL ile 2048 bit CSR oluşturma

Önce key dosyasını oluşturuyoruz.

[root@localhost ~]# openssl genrsa -out keydosyası.key 2048
Generating RSA private key, 2048 bit long modulus
..............................................................+++
...............................................+++
e is 65537 (0x10001)

Eğer yukardaki komuta -des3 gibi bir parametre eklerseniz key dosyanız şifre korumalı olacaktır. Web sunucunuzu yeniden başlattığınızda size bu şifreyi soracaktır. O yüzden çok gerekli olmadığı durumlarda kullanmamak lazım.

[root@localhost ~]# openssl req -nodes -newkey rsa:2048 -keyout keydosyasi.key -out csrdosyasi.csr
Generating a 2048 bit RSA private key
............................................................................+++
..........................................+++
writing new private key to 'keydosyasi.key'
-----
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) [GB]:TR
State or Province Name (full name) [Berkshire]:NA
Locality Name (eg, city) [Newbury]:Istanbul
Organization Name (eg, company) [My Company Ltd]:test
Organizational Unit Name (eg, section) []:IT           
Common Name (eg, your name or your server's hostname) []:www.test.com
Email Address []:info@test.com

Please enter the following 'extra' attributes
to be sent with your certificate request
A challenge password []:
An optional company name []:

Bundan sonrasında apache’ye gerekli konfigürasyonu girmek kalıyor.

Posted in Apache, Linux on August 9th, 2010 by Kürşad DARA | | 0 Comments