startssl免费ssl证书续期方法

startssl的免费ssl证书有一年的有效期(包括登录startssl的用户登录证书和域名ssl证书)。
续期步骤为:
1)更新用户登录证书
2)更新域名ssl证书

在用户证书过期前两星期注册邮箱会收到类似提示邮件:

This mail is intended for the person who owns a digital certificate issued by the StartSSL Certification Authority (http://www.startssl.com/).
The Class 1, client certificate for xxx@xxx.com and serial number xxxxxx (xxxxx) is about to expire in about two weeks. Please log into the StartSSL Control Panel at https://www.startssl.com/?app=12 and get a new certificate for this purpose. Failing to update your client certificate might result in the loss of your account.
Should you have lost the client certificate which was previously issued to you, please register once again – login without the client certificate installed into your browser will not work in that case.

1、浏览器访问https://www.startssl.com/?app=12,如果用户证书已过期只能重新注册一个帐号了。

2、点击Validations Wizard
选择Enter Email Address。

3、输入email地址,点击Continue。
继续阅读startssl免费ssl证书续期方法

C语言库函数学习(2)

1、strncpy
原型:extern char *strncpy(char *dest, char *src, int n);
功能:把src所指由NULL结束的字符串的前n个字节复制到dest所指的数组中。
说明:如果src的前n个字节不含NULL字符,则结果不会以NULL字符结束。
如果src的长度小于n个字节,则以NULL填充dest直到复制完n个字节。
src和dest所指内存区域不可以重叠且dest必须有足够的空间来容纳src的字符串。
返回指向dest的指针。

2、strncat
原型:extern char *strncat(char *dest, char *src, int n);
功能:把src所指字符串的前n个字符添加到dest结尾处(覆盖dest结尾处的’\0′)并添加’\0’。
说明:src和dest所指内存区域不可以重叠且dest必须有足够的空间来容纳src的字符串。
返回指向dest的指针。

3、strncmp
原型:extern int strcmp(char *s1, char *s2, int n);
功能:比较字符串s1和s2的前n个字符。
比较结果:
当s1<s2时,返回值<0
当s1=s2时,返回值=0
当s1>s2时,返回值>0
继续阅读C语言库函数学习(2)