ค้นหา


Knowledge

Servers: we use only branded servers เราใช้แต่ เครื่อง brand name เท่านั้น
------------

------------
Software: we use Linux server เราใช้ลินุกซ์
------------
Directadmin: we use directadmin CP
บริการพิเศษ
home  ::>>> Forums
Dochost support forums :: ดูกระทู้ - Openssl tutorial
 คำถามถามบ่อยของกระดานข่าวคำถามถามบ่อยของกระดานข่าว   ค้นหาค้นหา   กลุ่มผู้ใช้งานกลุ่มผู้ใช้งาน   ข้อมูลส่วนตัวข้อมูลส่วนตัว   เข้าระบบเข้าระบบ 

Openssl tutorial

 
ตั้งกระทู้ใหม่   ตอบกระทู้    Dochost support forums หน้ากระดานข่าวหลัก -> how to forge
ดูกระทู้ก่อนนี้ :: ดูกระทู้ถัดไป  
ผู้ส่ง ข้อความ
dochost
ADMIN
ADMIN


เข้าร่วมเมื่อ: 22/10/2009
ตอบ: 23

ตอบตอบ: 22/10/2009 11:59 am    ชื่อกระทู้: Openssl tutorial ตอบกระทู้ด้วยเครื่องหมายคำพูด(quote)

If you want to sign certificate , eg: secure apache ,ssl ,secure ftp , mail etc. you need this tool.

see also http://www.openssl.org
Go to their website and download the latest source to /usr/local/src. eg:
โค้ด:

cd /usr/local/src
tar xzf openssl-0.9.7b.tar.gz
chown -R root.root openssl-0.9.7b.tar.gz
cd openssl-0.9.7b
./config no-threads -fPIC
make
make install

We can generate the key file
โค้ด:

cd /usr/local/ssl
# generate an 1024-bit RSA private key
bin/openssl genrsa -out private/private.key 1024
# make sure the permissions on the private dir are tight
chown -R root.root private
chmod -R 600 private
chmod u+X private

Generate a certificate signing request (make a CSR file)
โค้ด:

bin/openssl req -new -key private/webmail.yourdomain.com.key -out certs/webmail.yourdomain.com.csr
Country Name (2 letter code) [AU]:AU
State or Province Name (full name) [Some-State]:Your State
Locality Name (eg, city) []:Your City
Organization Name (eg, company) [Internet Widgits Pty Ltd]:Your Company Pty Ltd
Organizational Unit Name (eg, section) []:Internet Services
Common Name (eg, your name or your server's hostname) []:webmail.yourdomain.com
Email Address []:postmaster@yourdomain.com

Please enter the following 'extra' attributes
to be sent with your certificate request
A challenge password []:yoursecretpasswd
An optional company name []:
กลับไปข้างบน
แสดงข้อมูลส่วนตัวของสมาชิก ส่งข่าวสารส่วนตัว
dochost
ADMIN
ADMIN


เข้าร่วมเมื่อ: 22/10/2009
ตอบ: 23

ตอบตอบ: 22/10/2009 12:04 pm    ชื่อกระทู้: ตอบกระทู้ด้วยเครื่องหมายคำพูด(quote)

You can sign self sign certificate to get CRT , just for testing purpose ( FF will not allow you automatically get to site that have self signed CRT)
โค้ด:

openssl x509 -req -days 30 -in certs/private.csr -out certs/private.crt -signkey private/private.key


Or better if you can buy and get the certificate signed by one of the official signing authorities (eg Thawte) :
Send the private.csr file to a signing authority for processing...
When they have signed it, copy the signed certificate to /usr/local/ssl/certs/private.crt
กลับไปข้างบน
แสดงข้อมูลส่วนตัวของสมาชิก ส่งข่าวสารส่วนตัว
แสดงการตอบก่อนนี้:   
ตั้งกระทู้ใหม่   ตอบกระทู้    Dochost support forums หน้ากระดานข่าวหลัก -> how to forge ปรับเวลา GMT + 7 ชั่วโมง
หน้า 1 จากทั้งหมด 1

 
ไปยัง:  
คุณ ไม่สามารถ ตั้งกระทู้ใหม่ในกระดานนี้
คุณ สามารถ ตอบกระทู้ในกระดานนี้
คุณ ไม่สามารถ แก้ไขการตอบกระทู้ของคุณในกระดานนี้
คุณ ไม่สามารถ ลบการตอบกระทู้ของคุณในกระดานนี้
คุณ ไม่สามารถ ลงคะแนนในแบบสำรวจในกระดานนี้


Powered by phpBB © 2001-2003 phpBB Group