Chinaunix首页 | 论坛 | 博客
  • 博客访问: 926559
  • 博文数量: 358
  • 博客积分: 8185
  • 博客等级: 中将
  • 技术积分: 3751
  • 用 户 组: 普通用户
  • 注册时间: 2008-10-15 16:27
个人简介

The views and opinions expressed all for my own,only for study and test, not reflect the views of Any Company and its affiliates.

文章分类

全部博文(358)

文章存档

2012年(8)

2011年(18)

2010年(50)

2009年(218)

2008年(64)

我的朋友

分类:

2009-05-11 21:31:18

In order for the web browser to successfully autheticate the web server,we need to create a valid web server certificate,which should contain:
・*the public key of the web server
・validity dates(Start Expiration)
・supported cipher algorithms
・*the distinguish name (DN),which must contain fully qualified domain name of the web server known as the Common name (CN)...
・the serial number of the certificate
・name and signature of trusted Certified Authority (CA)
・X.509 extension attributes and more.
 
■kCreating the Web Server Certificate
in general,there are three types of certificates that we can use:
・A self-signed certificate
・*A certificate signed by a local CA(in intranet environment)
・A certificate signed by trust CA(in internet environment)
 
server.key~the private key of server
server.crt~include web server's public key
・Self-signed certificate(for test purpose only)
$openssl req -new -x509 -days 365 -sha1 -nodes -newkey rsa:1024 -keyout server.key -out server.crt -sbuj'XXXXX'
・certificate signed by a local CA
#mkdir ca
#mkdir certs
#mkdir certs
 
阅读(720) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~