Chinaunix首页 | 论坛 | 博客
  • 博客访问: 567069
  • 博文数量: 89
  • 博客积分: 2383
  • 博客等级: 大尉
  • 技术积分: 970
  • 用 户 组: 普通用户
  • 注册时间: 2008-09-09 23:02
个人简介

Scientific Linux是重新编译的Red Hat Enterprise Linux,由费米国家加速器实验室、欧洲核研究组织以及世界各地的大学和实验室共同开发。它旨在与Red Hat Enterprise Linux完全兼容,也强调自主方便的定制,用户可以根据自己的需求做相应修改,可以使用脚本或者Anaconda给自己定制最小化的安装模式。

文章分类

全部博文(89)

文章存档

2017年(1)

2016年(2)

2013年(2)

2012年(2)

2011年(16)

2010年(13)

2009年(46)

2008年(7)

我的朋友

分类: BSD

2010-05-17 23:48:23

通过freebsd ports安装postfix的时候,在完成openssl ports安装后,进行证书的生成,

执行到openssl ca -config openssl.cnf -policy policy_anything -out mycert.pem -infiles tmp.pem”,出现如下错误:

root@stumail888/usr/local/etc/postfix/certs/CA # openssl ca -config openssl.cnf -policy policy_anything -out mycert.pem -infiles tmp.pem

Using configuration from openssl.cnf

Enter pass phrase for /usr/local/etc/postfix/certs/CA/private/cakey.pem:

default is an unsupported message digest type

24808:error:02001002:system library:fopen:No such file or directory:/usr/src/secure/lib/libcrypto/../../../crypto/openssl/crypto/bio/bss_file.c:126:fopen('/usr/local/etc/postfix/certs/CA/index.txt.attr','rb')

24808:error:2006D080:BIO routines:BIO_new_file:no such file:/usr/src/secure/lib/libcrypto/../../../crypto/openssl/crypto/bio/bss_file.c:129:

24808:error:0E078072:configuration file routines:DEF_LOAD:no such file:/usr/src/secure/lib/libcrypto/../../../crypto/openssl/crypto/conf/conf_def.c:197:

一直没有很好的办法解决,后来使用pkg_delete openssl将已经安装的openssl卸载,然后使用pkg_add –r openssl来安装,由于-r参数,pkg自动从freebsd网站下载安装包,安装完毕后重新做以上配置,没有再出错,但是这种方法无法完成postconf的下一步操作,事实上没有真正解决问题,后经研究,发现真正的问题是没有在CA(生成证书的工作目录下)下生成index.txt.attr文件,真正解决问题的办法是在CA目录下执行“echo "unique_subject = no" > index.txt.attr  ”,生成index.txt.attr就好了。
阅读(8419) | 评论(7) | 转发(0) |
给主人留下些什么吧!~~

zeuls2010-07-04 13:29:28

就是遇到这个后,百思不得其解,后来看别人的编译情况,结果,发现有这个文件,于是。。。

intranet2010-06-23 09:31:21

我也碰到过这种问题,。,用这个方法解决了。,。 请问。。是怎么研究出来的?index.txt.attr 呵。。。