Chinaunix首页 | 论坛 | 博客
  • 博客访问: 6923295
  • 博文数量: 637
  • 博客积分: 10265
  • 博客等级: 上将
  • 技术积分: 6165
  • 用 户 组: 普通用户
  • 注册时间: 2004-12-12 22:00
文章分类

全部博文(637)

文章存档

2011年(1)

2010年(1)

2009年(3)

2008年(12)

2007年(44)

2006年(156)

2005年(419)

2004年(1)

分类: 系统运维

2005-05-24 20:11:35

Apache证书目录下的文件

##
##  Makefile to keep the hash symlinks in SSLCACertificatePath up to date
##  Copyright (c) 1998-2001 Ralf S. Engelschall, All Rights Reserved.
##

SSL_PROGRAM=

update: clean
        )";
        if [ ".$$ssl_program" = . ]; then
            for dir in . `echo $$PATH | sed -e 's/:/ /g'`; do
                for program in openssl ssleay; do
                    if [ -f "$$dir/$$program" ]; then
                        if [ -x "$$dir/$$program" ]; then
                            ssl_program="$$dir/$$program";
                                                break;
                        fi;
                    fi;
                done;
                if [ ".$$ssl_program" != . ]; then
                                break;
                fi;
            done;
        fi;
        if [ ".$$ssl_program" = . ]; then
            echo "Error: neither 'openssl' nor 'ssleay' program found" 1>&2;
            exit 1;
        fi;
        for file in *.crt; do
            if [ ".`grep SKIPME $$file`" != . ]; then
                echo dummy |
                awk '{ printf("%-15s ... Skipped ", file); }'
                "file=$$file";
            else
                n=0;
                while [ 1 ]; do
                    hash="`$$ssl_program x509 -noout -hash <$$file`";
                    if [ -r "$$hash.$$n" ]; then
                        n=`expr $$n + 1`;
                    else
                        echo dummy |
                        awk '{ printf("%-15s ... %s ", file, hash); }'
                        "file=$$file" "hash=$$hash.$$n";
                        ln -s $$file $$hash.$$n;
                        break;
                    fi;
                done;
            fi;
        done

clean:
        -f [0-9a-fA-F]*.[0-9]*
阅读(1746) | 评论(0) | 转发(0) |
0

上一篇:CA authentication

下一篇:ssl.crl/Makefile

给主人留下些什么吧!~~