随笔 - 17, 文章 - 0, 评论 - 1, 阅读 - 7036
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2017年11月29日

安装过两次SSL证书,现在来总结一下,以后可能会用到。

有很多提供SSL证书的公司,我们这里就用https://www.sslforfree.com/ 提供的证书进行说明。安装SSL证书的步骤如下:

1. 验证域名,获取证书。

2. 对获取的证书进行加工,生成pfx格式的证书(这里我的web服务器是IIS6.0)

3. 在web服务器上保存生成的pfx证书。

4.在IIS6.0中加载pfx证书。到此一切工作结束,就可以用https访问web页面了。

下面开始进行操作细节描述:(因为网站是英文的,所以接下来我就用英文描述了)

1. 验证域名,获取证书。

step1: visit the web site of sslforfree and enter yourdomain.com and click the button of which name is "create free ssl certificate"

step2: verify the domain. we choose the manual verification. Click the manually verify domain button, then download the two files 

to your local cmputer. 

step3: like bellow

  1. Create a virtual folder in your domain named ".well-known" if it does not already exist. If you use Windows you may have to add a dot at the end of the folder name in order to create a folder with a dot at the beginning.

  2. Create another folder in your domain under ".well-known" named "acme-challenge" if it does not already exist

  3. Upload the downloaded two files to the "acme-challenge" folder

step4: add a mime type to your IIS6.0 web server, That mime is (.=>text/plain).

step5: Verify successful upload by visiting The-Links in your browser.  The-Links is in step2's web page. If you can see a string of random alphanumeric characters. It shows you have successed.

step6: click the button of download ssl certificate to download the files.

2. 加工证书,生成pfx格式的证书

step1: install openssl on your local computer(notice: it is on local computer, not web server's computer).

step2: run cmd and navigate to the folder of which has the downloaded certificate files in above's step6. then running bellow's cmd:

openssl pkcs12 –export xxx.pfx –inkey private.key –in certificate.crt  ca_bundle.crt

it will tip you input a password, remember it. The password will be used in later steps. It will generate a pfx file. It is the target file you want.

3. 在服务器上保存、配置证书。

step1: run cmd and input "mmc" to open mmc program. then do the following's operration:

click file menu and choose "add/remove snap in" item, then it will open a dialogue, click the add button and choose certificates,then click ok button.

step2: in mmc UI, you will see a node named "certificate" in left panel, click the node, then right click personal sub-node and choose tasks->import, ti import your pfx file.(notice: choose computer configuration during the steps.)

If you not clear how to do this steps, you can search "如何在mmc中导入证书", there are many pages about this.

4.在IIS6.0中加载pfx证书

step1: right click on local web site and choose "directory security" tab, then click "server certificate" button, choose your pfx file and input password which generated in above.

You can search  "how to load certifiate to IIS6.0"  to get many pages about it. 

 Here, you have successfully complete the task of installing SSL to your web server. 

posted @ 2017-11-29 13:24 shallwe99 阅读(945) 评论(0) 推荐(0) 编辑

2016年5月24日

摘要: /** * 加载类文件函数 * @param string $classname 类名 * @param string $path 扩展地址 * @param intger $initialize 是否初始化 */ private static function _load_class($classname, $path = ''... 阅读全文

posted @ 2016-05-24 16:18 shallwe99 阅读(234) 评论(0) 推荐(0) 编辑

2016年5月18日

摘要: get_magic_quotes_gpc() application类的loadcontroller()中加载controller,该controller中pc_base::load_app_class('admin','admin',0);在admin.class.php中 $session_st 阅读全文

posted @ 2016-05-18 16:18 shallwe99 阅读(94) 评论(0) 推荐(0) 编辑

2016年5月14日

摘要: 每次安装php开发环境的时候总是得或多或少困惑一阵,今天来梳理一下apache,php之间的关系(根据http://www.ituring.com.cn/article/128439整理,添加。) 1.apache和php都是由visual studio编译。 因此我们经常会遇到选择VC6/VC9/ 阅读全文

posted @ 2016-05-14 11:16 shallwe99 阅读(562) 评论(0) 推荐(0) 编辑

2015年3月10日

摘要: 由于当前jQuery如此的如雷贯耳,相信不用介绍什么是jQuery了,公司代码中广泛应用了jQuery,但我在看一些小朋友的代码时发现一个问题,小朋友们使用的仅仅是jQuery的皮毛,只是使用id选择器与attr方法,还有几个动画,如果只是如此,相比于其带来的开销,其实还不如不使用,下面介绍几个jQ... 阅读全文

posted @ 2015-03-10 15:42 shallwe99 阅读(182) 评论(0) 推荐(0) 编辑

2013年2月27日

摘要: usingNewtonsoft.Json;usingNewtonsoft.Json.Converters;//把Json字符串反序列化为对象目标对象= JavaScriptConvert.DeserializeObject(JSON字符串,typeof(目标对象));//把目标对象序列化为Json字符串string Json字符串 = JavaScriptConvert.SerializeObject(目标对象);1.引用Newtonsoft.Json.dll2.在项目中添加引用..序列化和反序列在.net项目中:Product product = new Product(); product 阅读全文

posted @ 2013-02-27 13:24 shallwe99 阅读(163) 评论(0) 推荐(0) 编辑

2013年1月11日

摘要: 原文发表在: http://mobile.51cto.com/aengine-358926.htm,乃本人翻译作品,禁止转载 目前,在移Web开发领域中,除了使用如Android,iOS系统原生提供的API进行开发外,对于Web开发人员来说,最方便快捷的方法莫过于使用比如jQuery Mobile,Sencha Touch这样基于HTML 5的Web框架进行开发了,因为只要熟悉CSS,JavaScript则可以很轻松地运用这些移动Web开发框架进行开发。 在本文中,将介绍使用jQuery Mobile开发的一些常用的技巧,阅读对象为已经使用过jQuery Mobile进行开发的移动Web开发. 阅读全文

posted @ 2013-01-11 13:53 shallwe99 阅读(225) 评论(0) 推荐(0) 编辑

2012年9月12日

摘要: 目录Google Map API1基础知识1.1 Google 地图 API 概念1.2 Google 地图的“Hello, World”1.2.1 加载 Google 地图 API1.2.2 地图 DOM 元素1.2.3 GMap2 - 基本对象1.2.4 初始化地图1.2.5 加载地图2正向标注2.1 Map2类2.2谷歌可视化API2.3 GClientGeocoder 类构造函数方法2.4 GMarker 类构造函数方法事件2.5 GLatLng 类构造函数2.6函数 GDownloadUrl2.7可拖动的标记2.8手动标注2.9自动标注2.9.1随机生成2.9.2读XML文件3反向标 阅读全文

posted @ 2012-09-12 10:25 shallwe99 阅读(1284) 评论(0) 推荐(0) 编辑

2012年9月10日

摘要: 把下边这块脚本直接粘到asp文件里,红色部分是调用过程演示。<script language="javascript" runat="Server">if(!Array.prototype.get){Array.prototype.get=function(prop){return this[prop];}}"use strict";if(!this.JSON){JSON={};}(function(){function f(n){return n<10?'0'+n:n;}if(typeof Date 阅读全文

posted @ 2012-09-10 14:19 shallwe99 阅读(584) 评论(0) 推荐(0) 编辑

2012年8月16日

摘要: asp函数速查表Ucase(string)将字符串转换为大写。Val(string)将代表数字的字符串转换为数值型态,若字符串中含有非数字的内容则会将其去除后,合并为一数字。Weekday(date)取的参数中的日期是一个星期的第几天,星期天为1、星期一为2、星期二为3依此类推。WeekDayName(number)依接收的参数取得星期的名称,可接收的参数为1到7,星期天为1、星期一为2、星期二为3依此类推。Split(expression[,delimiter])以delimiter参数设定的条件字符串来将字符串分割为字符串数组。Sqrt(number)取得一数值得平方根。Str(numbe 阅读全文

posted @ 2012-08-16 14:10 shallwe99 阅读(142) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示