Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
dac40f87
T
Third Party Openssl
项目概览
OpenHarmony
/
Third Party Openssl
1 年多 前同步成功
通知
10
Star
18
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
Third Party Openssl
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
dac40f87
编写于
1月 15, 2010
作者:
D
Dr. Stephen Henson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
convert to Unix EOL form
上级
031c7890
变更
17
隐藏空白更改
内联
并排
Showing
17 changed file
with
728 addition
and
728 deletion
+728
-728
ms/bcb4.bat
ms/bcb4.bat
+6
-6
ms/do_nt.bat
ms/do_nt.bat
+7
-7
ms/do_win64a.bat
ms/do_win64a.bat
+19
-19
ms/do_win64i.bat
ms/do_win64i.bat
+9
-9
ms/mingw32.bat
ms/mingw32.bat
+90
-90
ms/mw.bat
ms/mw.bat
+26
-26
ms/tenc.bat
ms/tenc.bat
+14
-14
ms/tencce.bat
ms/tencce.bat
+19
-19
ms/testenc.bat
ms/testenc.bat
+94
-94
ms/testencce.bat
ms/testencce.bat
+97
-97
ms/testpem.bat
ms/testpem.bat
+32
-32
ms/testpemce.bat
ms/testpemce.bat
+42
-42
ms/testss.bat
ms/testss.bat
+98
-98
ms/testssce.bat
ms/testssce.bat
+104
-104
ms/tpem.bat
ms/tpem.bat
+6
-6
ms/tpemce.bat
ms/tpemce.bat
+8
-8
ms/x86asm.bat
ms/x86asm.bat
+57
-57
未找到文件。
ms/bcb4.bat
浏览文件 @
dac40f87
perl
Configure
BC
-
32
perl
util
\mkfiles.pl
>
MINFO
@rem create make file
perl
util
\mk1mf.pl
no
-asm
BC
-NT
>
bcb
.mak
perl
Configure
BC
-
32
perl
util
\mkfiles.pl
>
MINFO
@rem create make file
perl
util
\mk1mf.pl
no
-asm
BC
-NT
>
bcb
.mak
ms/do_nt.bat
浏览文件 @
dac40f87
perl
util
\mkfiles.pl
>
MINFO
perl
util
\mk1mf.pl
no
-asm
VC
-NT
>
ms
\nt.mak
perl
util
\mk1mf.pl
dll
no
-asm
VC
-NT
>
ms
\ntdll.mak
perl
util
\mkdef.pl
libeay
NT
>
ms
\libeay32.def
perl
util
\mkdef.pl
ssleay
NT
>
ms
\ssleay32.def
perl
util
\mkfiles.pl
>
MINFO
perl
util
\mk1mf.pl
no
-asm
VC
-NT
>
ms
\nt.mak
perl
util
\mk1mf.pl
dll
no
-asm
VC
-NT
>
ms
\ntdll.mak
perl
util
\mkdef.pl
libeay
NT
>
ms
\libeay32.def
perl
util
\mkdef.pl
ssleay
NT
>
ms
\ssleay32.def
ms/do_win64a.bat
浏览文件 @
dac40f87
perl
util
\mkfiles.pl
>
MINFO
cmd
/c
"nasm -f win64 -v"
>
NUL
:
2
>&
1
if
%errorlevel%
neq
0
goto
ml64
perl
ms
\uplink
-x
86
_64.pl
nasm
>
ms
\uptable.asm
nasm
-f
win64
-o
ms
\uptable.obj
ms
\uptable.asm
goto
proceed
:ml
64
perl
ms
\uplink
-x
86
_64.pl
masm
>
ms
\uptable.asm
ml64
-c -Foms
\uptable.obj
ms
\uptable.asm
:proceed
perl
util
\mk1mf.pl
no
-asm
VC
-WIN
64
A
>
ms
\nt.mak
perl
util
\mk1mf.pl
dll
no
-asm
VC
-WIN
64
A
>
ms
\ntdll.mak
perl
util
\mkdef.pl
32
libeay
>
ms
\libeay32.def
perl
util
\mkdef.pl
32
ssleay
>
ms
\ssleay32.def
perl
util
\mkfiles.pl
>
MINFO
cmd
/c
"nasm -f win64 -v"
>
NUL
:
2
>&
1
if
%errorlevel%
neq
0
goto
ml64
perl
ms
\uplink
-x
86
_64.pl
nasm
>
ms
\uptable.asm
nasm
-f
win64
-o
ms
\uptable.obj
ms
\uptable.asm
goto
proceed
:ml
64
perl
ms
\uplink
-x
86
_64.pl
masm
>
ms
\uptable.asm
ml64
-c -Foms
\uptable.obj
ms
\uptable.asm
:proceed
perl
util
\mk1mf.pl
no
-asm
VC
-WIN
64
A
>
ms
\nt.mak
perl
util
\mk1mf.pl
dll
no
-asm
VC
-WIN
64
A
>
ms
\ntdll.mak
perl
util
\mkdef.pl
32
libeay
>
ms
\libeay32.def
perl
util
\mkdef.pl
32
ssleay
>
ms
\ssleay32.def
ms/do_win64i.bat
浏览文件 @
dac40f87
perl
util
\mkfiles.pl
>
MINFO
perl
ms
\uplink
-ia
64
.pl
>
ms
\uptable.asm
ias
-o
ms
\uptable.obj
ms
\uptable.asm
perl
util
\mk1mf.pl
no
-asm
VC
-WIN
64
I
>
ms
\nt.mak
perl
util
\mk1mf.pl
dll
no
-asm
VC
-WIN
64
I
>
ms
\ntdll.mak
perl
util
\mkdef.pl
32
libeay
>
ms
\libeay32.def
perl
util
\mkdef.pl
32
ssleay
>
ms
\ssleay32.def
perl
util
\mkfiles.pl
>
MINFO
perl
ms
\uplink
-ia
64
.pl
>
ms
\uptable.asm
ias
-o
ms
\uptable.obj
ms
\uptable.asm
perl
util
\mk1mf.pl
no
-asm
VC
-WIN
64
I
>
ms
\nt.mak
perl
util
\mk1mf.pl
dll
no
-asm
VC
-WIN
64
I
>
ms
\ntdll.mak
perl
util
\mkdef.pl
32
libeay
>
ms
\libeay32.def
perl
util
\mkdef.pl
32
ssleay
>
ms
\ssleay32.def
ms/mingw32.bat
浏览文件 @
dac40f87
@rem OpenSSL with Mingw32+GNU as
@rem ---------------------------
perl
Configure
mingw
%
1
%
2
%
3
%
4
%
5
%
6
%
7
%
8
@echo
off
perl
-e
"exit 1 if '
%
1' eq 'no-asm'"
if
errorlevel
1
goto
noasm
echo
Generating
x86
for
GNU
assember
echo
Bignum
cd
crypto
\bn\asm
perl
bn
-
586
.pl
gaswin
>
bn
-win
32
.s
perl
co
-
586
.pl
gaswin
>
co
-win
32
.s
cd
..\..\..
echo
DES
cd
crypto
\des\asm
perl
des
-
586
.pl
gaswin
>
d
-win
32
.s
cd
..\..\..
echo
crypt
cd
crypto
\des\asm
perl
crypt586
.pl
gaswin
>
y
-win
32
.s
cd
..\..\..
echo
Blowfish
cd
crypto
\bf\asm
perl
bf
-
586
.pl
gaswin
>
b
-win
32
.s
cd
..\..\..
echo
CAST5
cd
crypto
\cast\asm
perl
cast
-
586
.pl
gaswin
>
c
-win
32
.s
cd
..\..\..
echo
RC4
cd
crypto
\rc4\asm
perl
rc4
-
586
.pl
gaswin
>
r4
-win
32
.s
cd
..\..\..
echo
MD5
cd
crypto
\md5\asm
perl
md5
-
586
.pl
gaswin
>
m5
-win
32
.s
cd
..\..\..
echo
SHA1
cd
crypto
\sha\asm
perl
sha1
-
586
.pl
gaswin
>
s1
-win
32
.s
cd
..\..\..
echo
RIPEMD160
cd
crypto
\ripemd\asm
perl
rmd
-
586
.pl
gaswin
>
rm
-win
32
.s
cd
..\..\..
echo
RC5
\32
cd
crypto
\rc5\asm
perl
rc5
-
586
.pl
gaswin
>
r5
-win
32
.s
cd
..\..\..
:noasm
echo
Generating
makefile
perl
util
\mkfiles.pl
>
MINFO
perl
util
\mk1mf.pl
gaswin
Mingw32
>
ms
\mingw32a.mak
echo
Generating
DLL
definition
files
perl
util
\mkdef.pl
32
libeay
>
ms
\libeay32.def
if
errorlevel
1
goto
end
perl
util
\mkdef.pl
32
ssleay
>
ms
\ssleay32.def
if
errorlevel
1
goto
end
rem copy ms\tlhelp32.h outinc
echo
Building
the
libraries
mingw32
-make -f
ms
/mingw
32
a
.mak
if
errorlevel
1
goto
end
echo
Generating
the
DLLs
and
input
libraries
dllwrap
--dllname
libeay32
.dll
--output-lib
out
/libeay
32
.a
--def
ms
/libeay
32
.def
out
/libcrypto
.a
-lws
2
_32
-lgdi
32
if
errorlevel
1
goto
end
dllwrap
--dllname
libssl32
.dll
--output-lib
out
/libssl
32
.a
--def
ms
/ssleay
32
.def
out
/libssl
.a
out
/libeay
32
.a
if
errorlevel
1
goto
end
echo
Done
compiling
OpenSSL
:end
@rem OpenSSL with Mingw32+GNU as
@rem ---------------------------
perl
Configure
mingw
%
1
%
2
%
3
%
4
%
5
%
6
%
7
%
8
@echo
off
perl
-e
"exit 1 if '
%
1' eq 'no-asm'"
if
errorlevel
1
goto
noasm
echo
Generating
x86
for
GNU
assember
echo
Bignum
cd
crypto
\bn\asm
perl
bn
-
586
.pl
gaswin
>
bn
-win
32
.s
perl
co
-
586
.pl
gaswin
>
co
-win
32
.s
cd
..\..\..
echo
DES
cd
crypto
\des\asm
perl
des
-
586
.pl
gaswin
>
d
-win
32
.s
cd
..\..\..
echo
crypt
cd
crypto
\des\asm
perl
crypt586
.pl
gaswin
>
y
-win
32
.s
cd
..\..\..
echo
Blowfish
cd
crypto
\bf\asm
perl
bf
-
586
.pl
gaswin
>
b
-win
32
.s
cd
..\..\..
echo
CAST5
cd
crypto
\cast\asm
perl
cast
-
586
.pl
gaswin
>
c
-win
32
.s
cd
..\..\..
echo
RC4
cd
crypto
\rc4\asm
perl
rc4
-
586
.pl
gaswin
>
r4
-win
32
.s
cd
..\..\..
echo
MD5
cd
crypto
\md5\asm
perl
md5
-
586
.pl
gaswin
>
m5
-win
32
.s
cd
..\..\..
echo
SHA1
cd
crypto
\sha\asm
perl
sha1
-
586
.pl
gaswin
>
s1
-win
32
.s
cd
..\..\..
echo
RIPEMD160
cd
crypto
\ripemd\asm
perl
rmd
-
586
.pl
gaswin
>
rm
-win
32
.s
cd
..\..\..
echo
RC5
\32
cd
crypto
\rc5\asm
perl
rc5
-
586
.pl
gaswin
>
r5
-win
32
.s
cd
..\..\..
:noasm
echo
Generating
makefile
perl
util
\mkfiles.pl
>
MINFO
perl
util
\mk1mf.pl
gaswin
Mingw32
>
ms
\mingw32a.mak
echo
Generating
DLL
definition
files
perl
util
\mkdef.pl
32
libeay
>
ms
\libeay32.def
if
errorlevel
1
goto
end
perl
util
\mkdef.pl
32
ssleay
>
ms
\ssleay32.def
if
errorlevel
1
goto
end
rem copy ms\tlhelp32.h outinc
echo
Building
the
libraries
mingw32
-make -f
ms
/mingw
32
a
.mak
if
errorlevel
1
goto
end
echo
Generating
the
DLLs
and
input
libraries
dllwrap
--dllname
libeay32
.dll
--output-lib
out
/libeay
32
.a
--def
ms
/libeay
32
.def
out
/libcrypto
.a
-lws
2
_32
-lgdi
32
if
errorlevel
1
goto
end
dllwrap
--dllname
libssl32
.dll
--output-lib
out
/libssl
32
.a
--def
ms
/ssleay
32
.def
out
/libssl
.a
out
/libeay
32
.a
if
errorlevel
1
goto
end
echo
Done
compiling
OpenSSL
:end
ms/mw.bat
浏览文件 @
dac40f87
@rem OpenSSL with Mingw32
@rem --------------------
@rem Makefile
perl
util
\mkfiles.pl
>
MINFO
perl
util
\mk1mf.pl
Mingw32
>
ms
\mingw32.mak
@rem DLL definition files
perl
util
\mkdef.pl
32
libeay
>
ms
\libeay32.def
if
errorlevel
1
goto
end
perl
util
\mkdef.pl
32
ssleay
>
ms
\ssleay32.def
if
errorlevel
1
goto
end
@rem Build the libraries
make
-f
ms
/mingw
32
.mak
if
errorlevel
1
goto
end
@rem Generate the DLLs and input libraries
dllwrap
--dllname
libeay32
.dll
--output-lib
out
/libeay
32
.a
--def
ms
/libeay
32
.def
out
/libcrypto
.a
-lws
2
_32
-lgdi
32
if
errorlevel
1
goto
end
dllwrap
--dllname
libssl32
.dll
--output-lib
out
/libssl
32
.a
--def
ms
/ssleay
32
.def
out
/libssl
.a
out
/libeay
32
.a
if
errorlevel
1
goto
end
echo
Done
compiling
OpenSSL
:end
@rem OpenSSL with Mingw32
@rem --------------------
@rem Makefile
perl
util
\mkfiles.pl
>
MINFO
perl
util
\mk1mf.pl
Mingw32
>
ms
\mingw32.mak
@rem DLL definition files
perl
util
\mkdef.pl
32
libeay
>
ms
\libeay32.def
if
errorlevel
1
goto
end
perl
util
\mkdef.pl
32
ssleay
>
ms
\ssleay32.def
if
errorlevel
1
goto
end
@rem Build the libraries
make
-f
ms
/mingw
32
.mak
if
errorlevel
1
goto
end
@rem Generate the DLLs and input libraries
dllwrap
--dllname
libeay32
.dll
--output-lib
out
/libeay
32
.a
--def
ms
/libeay
32
.def
out
/libcrypto
.a
-lws
2
_32
-lgdi
32
if
errorlevel
1
goto
end
dllwrap
--dllname
libssl32
.dll
--output-lib
out
/libssl
32
.a
--def
ms
/ssleay
32
.def
out
/libssl
.a
out
/libeay
32
.a
if
errorlevel
1
goto
end
echo
Done
compiling
OpenSSL
:end
ms/tenc.bat
浏览文件 @
dac40f87
rem called by testenc
echo
test
%
1
%
2
%
3
%
4
%
5
%
6
%ssleay%
%
1
%
2
%
3
%
4
%
5
%
6
-e -bufsize
113
-k
test
-in
%input%
-out
%tmp1
%
%ssleay%
%
1
%
2
%
3
%
4
%
5
%
6
-d -bufsize
157
-k
test
-in
%tmp1
%
-out
%out1
%
%cmp%
%input%
%out1
%
if
errorlevel
1
goto
err
echo
test
base64
%
1
%
2
%
3
%
4
%
5
%
6
%ssleay%
%
1
%
2
%
3
%
4
%
5
%
6
-a -e -bufsize
113
-k
test
-in
%input%
-out
%tmp1
%
%ssleay%
%
1
%
2
%
3
%
4
%
5
%
6
-a -d -bufsize
157
-k
test
-in
%tmp1
%
-out
%out1
%
%cmp%
%input%
%out1
%
:err
rem called by testenc
echo
test
%
1
%
2
%
3
%
4
%
5
%
6
%ssleay%
%
1
%
2
%
3
%
4
%
5
%
6
-e -bufsize
113
-k
test
-in
%input%
-out
%tmp1
%
%ssleay%
%
1
%
2
%
3
%
4
%
5
%
6
-d -bufsize
157
-k
test
-in
%tmp1
%
-out
%out1
%
%cmp%
%input%
%out1
%
if
errorlevel
1
goto
err
echo
test
base64
%
1
%
2
%
3
%
4
%
5
%
6
%ssleay%
%
1
%
2
%
3
%
4
%
5
%
6
-a -e -bufsize
113
-k
test
-in
%input%
-out
%tmp1
%
%ssleay%
%
1
%
2
%
3
%
4
%
5
%
6
-a -d -bufsize
157
-k
test
-in
%tmp1
%
-out
%out1
%
%cmp%
%input%
%out1
%
:err
ms/tencce.bat
浏览文件 @
dac40f87
rem called by testencce
echo
test
%
1
%
2
%
3
%
4
%
5
%
6
cecopy
%input%
CE
:\OpenSSL
cerun
CE
:\OpenSSL\
%ssleay%
%
1
%
2
%
3
%
4
%
5
%
6
-e -bufsize
113
-k
test
-in
\OpenSSL\
%input%
-out
\OpenSSL\
%tmp1
%
cerun
CE
:\OpenSSL\
%ssleay%
%
1
%
2
%
3
%
4
%
5
%
6
-d -bufsize
157
-k
test
-in
\OpenSSL\
%tmp1
%
-out
\OpenSSL\
%out1
%
del
%out1
%
>
nul
2
>&
1
cecopy
CE
:\OpenSSL\
%out1
%
.
%cmp%
%input%
%out1
%
if
errorlevel
1
goto
err
echo
test
base64
%
1
%
2
%
3
%
4
%
5
%
6
cerun
CE
:\OpenSSL\
%ssleay%
%
1
%
2
%
3
%
4
%
5
%
6
-a -e -bufsize
113
-k
test
-in
\OpenSSL\
%input%
-out
\OpenSSL\
%tmp1
%
cerun
CE
:\OpenSSL\
%ssleay%
%
1
%
2
%
3
%
4
%
5
%
6
-a -d -bufsize
157
-k
test
-in
\OpenSSL\
%tmp1
%
-out
\OpenSSL\
%out1
%
del
%out1
%
>
nul
2
>&
1
cecopy
CE
:\OpenSSL\
%out1
%
.
%cmp%
%input%
%out1
%
:err
rem called by testencce
echo
test
%
1
%
2
%
3
%
4
%
5
%
6
cecopy
%input%
CE
:\OpenSSL
cerun
CE
:\OpenSSL\
%ssleay%
%
1
%
2
%
3
%
4
%
5
%
6
-e -bufsize
113
-k
test
-in
\OpenSSL\
%input%
-out
\OpenSSL\
%tmp1
%
cerun
CE
:\OpenSSL\
%ssleay%
%
1
%
2
%
3
%
4
%
5
%
6
-d -bufsize
157
-k
test
-in
\OpenSSL\
%tmp1
%
-out
\OpenSSL\
%out1
%
del
%out1
%
>
nul
2
>&
1
cecopy
CE
:\OpenSSL\
%out1
%
.
%cmp%
%input%
%out1
%
if
errorlevel
1
goto
err
echo
test
base64
%
1
%
2
%
3
%
4
%
5
%
6
cerun
CE
:\OpenSSL\
%ssleay%
%
1
%
2
%
3
%
4
%
5
%
6
-a -e -bufsize
113
-k
test
-in
\OpenSSL\
%input%
-out
\OpenSSL\
%tmp1
%
cerun
CE
:\OpenSSL\
%ssleay%
%
1
%
2
%
3
%
4
%
5
%
6
-a -d -bufsize
157
-k
test
-in
\OpenSSL\
%tmp1
%
-out
\OpenSSL\
%out1
%
del
%out1
%
>
nul
2
>&
1
cecopy
CE
:\OpenSSL\
%out1
%
.
%cmp%
%input%
%out1
%
:err
ms/testenc.bat
浏览文件 @
dac40f87
@echo
off
echo
start
testenc
path
=
..\ms
;
%path%
set
ssleay
=
%
1
%
set
input
=
..\ms\testenc.bat
set
tmp1
=
..\ms\cipher.out
set
out1
=
..\ms\clear.out
set
cmp
=
perl
..\ms\cmp.pl
cd
call
tenc
.bat
enc
if
errorlevel
1
goto
err
call
tenc
.bat
rc4
if
errorlevel
1
goto
err
call
tenc
.bat
des
-cfb
if
errorlevel
1
goto
err
call
tenc
.bat
des
-ede-cfb
if
errorlevel
1
goto
err
call
tenc
.bat
des
-ede
3
-cfb
if
errorlevel
1
goto
err
call
tenc
.bat
des
-ofb
if
errorlevel
1
goto
err
call
tenc
.bat
des
-ede-ofb
if
errorlevel
1
goto
err
call
tenc
.bat
des
-ede
3
-ofb
if
errorlevel
1
goto
err
call
tenc
.bat
des
-ecb
if
errorlevel
1
goto
err
call
tenc
.bat
des
-ede
if
errorlevel
1
goto
err
call
tenc
.bat
des
-ede
3
if
errorlevel
1
goto
err
call
tenc
.bat
des
-cbc
if
errorlevel
1
goto
err
call
tenc
.bat
des
-ede-cbc
if
errorlevel
1
goto
err
call
tenc
.bat
des
-ede
3
-cbc
if
errorlevel
1
goto
err
call
tenc
.bat
idea
-ecb
if
errorlevel
1
goto
err
call
tenc
.bat
idea
-cfb
if
errorlevel
1
goto
err
call
tenc
.bat
idea
-ofb
if
errorlevel
1
goto
err
call
tenc
.bat
idea
-cbc
if
errorlevel
1
goto
err
call
tenc
.bat
rc2
-ecb
if
errorlevel
1
goto
err
call
tenc
.bat
rc2
-cfb
if
errorlevel
1
goto
err
call
tenc
.bat
rc2
-ofb
if
errorlevel
1
goto
err
call
tenc
.bat
rc2
-cbc
if
errorlevel
1
goto
err
call
tenc
.bat
bf
-ecb
if
errorlevel
1
goto
err
call
tenc
.bat
bf
-cfb
if
errorlevel
1
goto
err
call
tenc
.bat
bf
-ofb
if
errorlevel
1
goto
err
call
tenc
.bat
bf
-cbc
if
errorlevel
1
goto
err
echo
OK
del
%out1
%
del
%tmp1
%
:err
@echo
off
echo
start
testenc
path
=
..\ms
;
%path%
set
ssleay
=
%
1
%
set
input
=
..\ms\testenc.bat
set
tmp1
=
..\ms\cipher.out
set
out1
=
..\ms\clear.out
set
cmp
=
perl
..\ms\cmp.pl
cd
call
tenc
.bat
enc
if
errorlevel
1
goto
err
call
tenc
.bat
rc4
if
errorlevel
1
goto
err
call
tenc
.bat
des
-cfb
if
errorlevel
1
goto
err
call
tenc
.bat
des
-ede-cfb
if
errorlevel
1
goto
err
call
tenc
.bat
des
-ede
3
-cfb
if
errorlevel
1
goto
err
call
tenc
.bat
des
-ofb
if
errorlevel
1
goto
err
call
tenc
.bat
des
-ede-ofb
if
errorlevel
1
goto
err
call
tenc
.bat
des
-ede
3
-ofb
if
errorlevel
1
goto
err
call
tenc
.bat
des
-ecb
if
errorlevel
1
goto
err
call
tenc
.bat
des
-ede
if
errorlevel
1
goto
err
call
tenc
.bat
des
-ede
3
if
errorlevel
1
goto
err
call
tenc
.bat
des
-cbc
if
errorlevel
1
goto
err
call
tenc
.bat
des
-ede-cbc
if
errorlevel
1
goto
err
call
tenc
.bat
des
-ede
3
-cbc
if
errorlevel
1
goto
err
call
tenc
.bat
idea
-ecb
if
errorlevel
1
goto
err
call
tenc
.bat
idea
-cfb
if
errorlevel
1
goto
err
call
tenc
.bat
idea
-ofb
if
errorlevel
1
goto
err
call
tenc
.bat
idea
-cbc
if
errorlevel
1
goto
err
call
tenc
.bat
rc2
-ecb
if
errorlevel
1
goto
err
call
tenc
.bat
rc2
-cfb
if
errorlevel
1
goto
err
call
tenc
.bat
rc2
-ofb
if
errorlevel
1
goto
err
call
tenc
.bat
rc2
-cbc
if
errorlevel
1
goto
err
call
tenc
.bat
bf
-ecb
if
errorlevel
1
goto
err
call
tenc
.bat
bf
-cfb
if
errorlevel
1
goto
err
call
tenc
.bat
bf
-ofb
if
errorlevel
1
goto
err
call
tenc
.bat
bf
-cbc
if
errorlevel
1
goto
err
echo
OK
del
%out1
%
del
%tmp1
%
:err
ms/testencce.bat
浏览文件 @
dac40f87
@echo
off
echo
start
testenc
path
=
..\ms
;
%path%
set
ssleay
=
%
1
%
copy
..\ms\testenc.bat
>
nul
set
input
=
testenc
.bat
set
tmp1
=
cipher
.out
set
out1
=
clear
.out
set
cmp
=
perl
..\ms\cmp.pl
cecopy
%ssleay%
CE
:\OpenSSL
cd
call
tencce
.bat
enc
if
errorlevel
1
goto
err
call
tencce
.bat
rc4
if
errorlevel
1
goto
err
call
tencce
.bat
des
-cfb
if
errorlevel
1
goto
err
call
tencce
.bat
des
-ede-cfb
if
errorlevel
1
goto
err
call
tencce
.bat
des
-ede
3
-cfb
if
errorlevel
1
goto
err
call
tencce
.bat
des
-ofb
if
errorlevel
1
goto
err
call
tencce
.bat
des
-ede-ofb
if
errorlevel
1
goto
err
call
tencce
.bat
des
-ede
3
-ofb
if
errorlevel
1
goto
err
call
tencce
.bat
des
-ecb
if
errorlevel
1
goto
err
call
tencce
.bat
des
-ede
if
errorlevel
1
goto
err
call
tencce
.bat
des
-ede
3
if
errorlevel
1
goto
err
call
tencce
.bat
des
-cbc
if
errorlevel
1
goto
err
call
tencce
.bat
des
-ede-cbc
if
errorlevel
1
goto
err
call
tencce
.bat
des
-ede
3
-cbc
if
errorlevel
1
goto
err
call
tencce
.bat
idea
-ecb
if
errorlevel
1
goto
err
call
tencce
.bat
idea
-cfb
if
errorlevel
1
goto
err
call
tencce
.bat
idea
-ofb
if
errorlevel
1
goto
err
call
tencce
.bat
idea
-cbc
if
errorlevel
1
goto
err
call
tencce
.bat
rc2
-ecb
if
errorlevel
1
goto
err
call
tencce
.bat
rc2
-cfb
if
errorlevel
1
goto
err
call
tencce
.bat
rc2
-ofb
if
errorlevel
1
goto
err
call
tencce
.bat
rc2
-cbc
if
errorlevel
1
goto
err
call
tencce
.bat
bf
-ecb
if
errorlevel
1
goto
err
call
tencce
.bat
bf
-cfb
if
errorlevel
1
goto
err
call
tencce
.bat
bf
-ofb
if
errorlevel
1
goto
err
call
tencce
.bat
bf
-cbc
if
errorlevel
1
goto
err
echo
OK
del
%out1
%
>
nul
2
>&
1
del
%tmp1
%
>
nul
2
>&
1
:err
@echo
off
echo
start
testenc
path
=
..\ms
;
%path%
set
ssleay
=
%
1
%
copy
..\ms\testenc.bat
>
nul
set
input
=
testenc
.bat
set
tmp1
=
cipher
.out
set
out1
=
clear
.out
set
cmp
=
perl
..\ms\cmp.pl
cecopy
%ssleay%
CE
:\OpenSSL
cd
call
tencce
.bat
enc
if
errorlevel
1
goto
err
call
tencce
.bat
rc4
if
errorlevel
1
goto
err
call
tencce
.bat
des
-cfb
if
errorlevel
1
goto
err
call
tencce
.bat
des
-ede-cfb
if
errorlevel
1
goto
err
call
tencce
.bat
des
-ede
3
-cfb
if
errorlevel
1
goto
err
call
tencce
.bat
des
-ofb
if
errorlevel
1
goto
err
call
tencce
.bat
des
-ede-ofb
if
errorlevel
1
goto
err
call
tencce
.bat
des
-ede
3
-ofb
if
errorlevel
1
goto
err
call
tencce
.bat
des
-ecb
if
errorlevel
1
goto
err
call
tencce
.bat
des
-ede
if
errorlevel
1
goto
err
call
tencce
.bat
des
-ede
3
if
errorlevel
1
goto
err
call
tencce
.bat
des
-cbc
if
errorlevel
1
goto
err
call
tencce
.bat
des
-ede-cbc
if
errorlevel
1
goto
err
call
tencce
.bat
des
-ede
3
-cbc
if
errorlevel
1
goto
err
call
tencce
.bat
idea
-ecb
if
errorlevel
1
goto
err
call
tencce
.bat
idea
-cfb
if
errorlevel
1
goto
err
call
tencce
.bat
idea
-ofb
if
errorlevel
1
goto
err
call
tencce
.bat
idea
-cbc
if
errorlevel
1
goto
err
call
tencce
.bat
rc2
-ecb
if
errorlevel
1
goto
err
call
tencce
.bat
rc2
-cfb
if
errorlevel
1
goto
err
call
tencce
.bat
rc2
-ofb
if
errorlevel
1
goto
err
call
tencce
.bat
rc2
-cbc
if
errorlevel
1
goto
err
call
tencce
.bat
bf
-ecb
if
errorlevel
1
goto
err
call
tencce
.bat
bf
-cfb
if
errorlevel
1
goto
err
call
tencce
.bat
bf
-ofb
if
errorlevel
1
goto
err
call
tencce
.bat
bf
-cbc
if
errorlevel
1
goto
err
echo
OK
del
%out1
%
>
nul
2
>&
1
del
%tmp1
%
>
nul
2
>&
1
:err
ms/testpem.bat
浏览文件 @
dac40f87
@echo
off
set
ssleay
=
%
1
%
set
tmp1
=
pem
.out
set
cmp
=
fc.exe
call
tpem
.bat
crl
..\test\testcrl.pem
if
errorlevel
1
goto
err
call
tpem
.bat
pkcs7
..\test\testp7.pem
if
errorlevel
1
goto
err
call
tpem
.bat
req
..\test\testreq2.pem
if
errorlevel
1
goto
err
call
tpem
.bat
rsa
..\test\testrsa.pem
if
errorlevel
1
goto
err
call
tpem
.bat
x509
..\test\testx509.pem
if
errorlevel
1
goto
err
call
tpem
.bat
x509
..\test\v3
-cert
1
.pem
if
errorlevel
1
goto
err
call
tpem
.bat
x509
..\test\v3
-cert
1
.pem
if
errorlevel
1
goto
err
call
tpem
.bat
sess_id
..\test\testsid.pem
if
errorlevel
1
goto
err
echo
OK
del
%tmp1
%
:err
@echo
off
set
ssleay
=
%
1
%
set
tmp1
=
pem
.out
set
cmp
=
fc.exe
call
tpem
.bat
crl
..\test\testcrl.pem
if
errorlevel
1
goto
err
call
tpem
.bat
pkcs7
..\test\testp7.pem
if
errorlevel
1
goto
err
call
tpem
.bat
req
..\test\testreq2.pem
if
errorlevel
1
goto
err
call
tpem
.bat
rsa
..\test\testrsa.pem
if
errorlevel
1
goto
err
call
tpem
.bat
x509
..\test\testx509.pem
if
errorlevel
1
goto
err
call
tpem
.bat
x509
..\test\v3
-cert
1
.pem
if
errorlevel
1
goto
err
call
tpem
.bat
x509
..\test\v3
-cert
1
.pem
if
errorlevel
1
goto
err
call
tpem
.bat
sess_id
..\test\testsid.pem
if
errorlevel
1
goto
err
echo
OK
del
%tmp1
%
:err
ms/testpemce.bat
浏览文件 @
dac40f87
@echo
off
set
ssleay
=
%
1
%
set
tmp1
=
pem
.out
set
cmp
=
fc.exe
cecopy
%ssleay%
CE
:\OpenSSL
copy
..\test\testcrl.pem
>
nul
call
tpemce
.bat
crl
testcrl
.pem
if
errorlevel
1
goto
err
copy
..\test\testp7.pem
>
nul
call
tpemce
.bat
pkcs7
testp7
.pem
if
errorlevel
1
goto
err
copy
..\test\testreq2.pem
>
nul
call
tpemce
.bat
req
testreq2
.pem
if
errorlevel
1
goto
err
copy
..\test\testrsa.pem
>
nul
call
tpemce
.bat
rsa
testrsa
.pem
if
errorlevel
1
goto
err
copy
..\test\testx509.pem
>
nul
call
tpemce
.bat
x509
testx509
.pem
if
errorlevel
1
goto
err
copy
..\test\v3
-cert
1
.pem
>
nul
call
tpemce
.bat
x509
v3
-cert
1
.pem
if
errorlevel
1
goto
err
copy
..\test\v3
-cert
1
.pem
>
nul
call
tpemce
.bat
x509
v3
-cert
1
.pem
if
errorlevel
1
goto
err
copy
..\test\testsid.pem
>
nul
call
tpemce
.bat
sess_id
testsid
.pem
if
errorlevel
1
goto
err
echo
OK
del
%tmp1
%
>
nul
2
>&
1
:err
@echo
off
set
ssleay
=
%
1
%
set
tmp1
=
pem
.out
set
cmp
=
fc.exe
cecopy
%ssleay%
CE
:\OpenSSL
copy
..\test\testcrl.pem
>
nul
call
tpemce
.bat
crl
testcrl
.pem
if
errorlevel
1
goto
err
copy
..\test\testp7.pem
>
nul
call
tpemce
.bat
pkcs7
testp7
.pem
if
errorlevel
1
goto
err
copy
..\test\testreq2.pem
>
nul
call
tpemce
.bat
req
testreq2
.pem
if
errorlevel
1
goto
err
copy
..\test\testrsa.pem
>
nul
call
tpemce
.bat
rsa
testrsa
.pem
if
errorlevel
1
goto
err
copy
..\test\testx509.pem
>
nul
call
tpemce
.bat
x509
testx509
.pem
if
errorlevel
1
goto
err
copy
..\test\v3
-cert
1
.pem
>
nul
call
tpemce
.bat
x509
v3
-cert
1
.pem
if
errorlevel
1
goto
err
copy
..\test\v3
-cert
1
.pem
>
nul
call
tpemce
.bat
x509
v3
-cert
1
.pem
if
errorlevel
1
goto
err
copy
..\test\testsid.pem
>
nul
call
tpemce
.bat
sess_id
testsid
.pem
if
errorlevel
1
goto
err
echo
OK
del
%tmp1
%
>
nul
2
>&
1
:err
ms/testss.bat
浏览文件 @
dac40f87
@echo
off
rem set ssleay=..\out\ssleay
set
ssleay
=
%
1
set
reqcmd
=
%ssleay%
req
set
x509cmd
=
%ssleay%
x509
-sha
1
set
verifycmd
=
%ssleay%
verify
set
CAkey
=
keyCA
.ss
set
CAcert
=
certCA
.ss
set
CAserial
=
certCA
.srl
set
CAreq
=
reqCA
.ss
set
CAconf
=
..\test\CAss.cnf
set
CAreq2
=
req2CA
.ss
set
Uconf
=
..\test\Uss.cnf
set
Ukey
=
keyU
.ss
set
Ureq
=
reqU
.ss
set
Ucert
=
certU
.ss
echo
make
a
certificate
request
using
'req'
%reqcmd%
-config
%CAconf%
-out
%CAreq%
-keyout
%CAkey%
-new
if
errorlevel
1
goto
e_req
echo
convert
the
certificate
request
into
a
self
signed
certificate
using
'x509'
%x5
09
cmd
%
-CAcreateserial -in
%CAreq%
-days
30
-req -out
%CAcert%
-signkey
%CAkey%
>
err
.ss
if
errorlevel
1
goto
e_x509
echo
--
echo
convert
a
certificate
into
a
certificate
request
using
'x509'
%x5
09
cmd
%
-in
%CAcert%
-x
509
toreq
-signkey
%CAkey%
-out
%CAreq2
%
>
err
.ss
if
errorlevel
1
goto
e_x509_2
%reqcmd%
-verify -in
%CAreq%
-noout
if
errorlevel
1
goto
e_vrfy_1
%reqcmd%
-verify -in
%CAreq2
%
-noout
if
errorlevel
1
goto
e_vrfy_2
%verifycmd%
-CAfile
%CAcert%
%CAcert%
if
errorlevel
1
goto
e_vrfy_3
echo
--
echo
make
another
certificate
request
using
'req'
%reqcmd%
-config
%Uconf%
-out
%Ureq%
-keyout
%Ukey%
-new
>
err
.ss
if
errorlevel
1
goto
e_req_gen
echo
--
echo
sign
certificate
request
with
the
just
created
CA
via
'x509'
%x5
09
cmd
%
-CAcreateserial -in
%Ureq%
-days
30
-req -out
%Ucert%
-CA
%CAcert%
-CAkey
%CAkey%
-CAserial
%CAserial%
if
errorlevel
1
goto
e_x_sign
%verifycmd%
-CAfile
%CAcert%
%Ucert%
echo
--
echo
Certificate
details
%x5
09
cmd
%
-subject -issuer -startdate -enddate -noout -in
%Ucert%
echo
Everything
appeared
to
work
echo
--
echo
The
generated
CA
certificate
is
%CAcert%
echo
The
generated
CA
private
key
is
%CAkey%
echo
The
current
CA
signing
serial
number
is
in
%CAserial%
echo
The
generated
user
certificate
is
%Ucert%
echo
The
generated
user
private
key
is
%Ukey%
echo
--
del
err
.ss
goto
end
:e
_req
echo
error
using
'req'
to
generate
a
certificate
request
goto
end
:e
_x509
echo
error
using
'x509'
to
self
sign
a
certificate
request
goto
end
:e
_x509_2
echo
error
using
'x509'
convert
a
certificate
to
a
certificate
request
goto
end
:e
_vrfy_1
echo
first
generated
request
is
invalid
goto
end
:e
_vrfy_2
echo
second
generated
request
is
invalid
goto
end
:e
_vrfy_3
echo
first
generated
cert
is
invalid
goto
end
:e
_req_gen
echo
error
using
'req'
to
generate
a
certificate
request
goto
end
:e
_x_sign
echo
error
using
'x509'
to
sign
a
certificate
request
goto
end
:end
@echo
off
rem set ssleay=..\out\ssleay
set
ssleay
=
%
1
set
reqcmd
=
%ssleay%
req
set
x509cmd
=
%ssleay%
x509
-sha
1
set
verifycmd
=
%ssleay%
verify
set
CAkey
=
keyCA
.ss
set
CAcert
=
certCA
.ss
set
CAserial
=
certCA
.srl
set
CAreq
=
reqCA
.ss
set
CAconf
=
..\test\CAss.cnf
set
CAreq2
=
req2CA
.ss
set
Uconf
=
..\test\Uss.cnf
set
Ukey
=
keyU
.ss
set
Ureq
=
reqU
.ss
set
Ucert
=
certU
.ss
echo
make
a
certificate
request
using
'req'
%reqcmd%
-config
%CAconf%
-out
%CAreq%
-keyout
%CAkey%
-new
if
errorlevel
1
goto
e_req
echo
convert
the
certificate
request
into
a
self
signed
certificate
using
'x509'
%x5
09
cmd
%
-CAcreateserial -in
%CAreq%
-days
30
-req -out
%CAcert%
-signkey
%CAkey%
>
err
.ss
if
errorlevel
1
goto
e_x509
echo
--
echo
convert
a
certificate
into
a
certificate
request
using
'x509'
%x5
09
cmd
%
-in
%CAcert%
-x
509
toreq
-signkey
%CAkey%
-out
%CAreq2
%
>
err
.ss
if
errorlevel
1
goto
e_x509_2
%reqcmd%
-verify -in
%CAreq%
-noout
if
errorlevel
1
goto
e_vrfy_1
%reqcmd%
-verify -in
%CAreq2
%
-noout
if
errorlevel
1
goto
e_vrfy_2
%verifycmd%
-CAfile
%CAcert%
%CAcert%
if
errorlevel
1
goto
e_vrfy_3
echo
--
echo
make
another
certificate
request
using
'req'
%reqcmd%
-config
%Uconf%
-out
%Ureq%
-keyout
%Ukey%
-new
>
err
.ss
if
errorlevel
1
goto
e_req_gen
echo
--
echo
sign
certificate
request
with
the
just
created
CA
via
'x509'
%x5
09
cmd
%
-CAcreateserial -in
%Ureq%
-days
30
-req -out
%Ucert%
-CA
%CAcert%
-CAkey
%CAkey%
-CAserial
%CAserial%
if
errorlevel
1
goto
e_x_sign
%verifycmd%
-CAfile
%CAcert%
%Ucert%
echo
--
echo
Certificate
details
%x5
09
cmd
%
-subject -issuer -startdate -enddate -noout -in
%Ucert%
echo
Everything
appeared
to
work
echo
--
echo
The
generated
CA
certificate
is
%CAcert%
echo
The
generated
CA
private
key
is
%CAkey%
echo
The
current
CA
signing
serial
number
is
in
%CAserial%
echo
The
generated
user
certificate
is
%Ucert%
echo
The
generated
user
private
key
is
%Ukey%
echo
--
del
err
.ss
goto
end
:e
_req
echo
error
using
'req'
to
generate
a
certificate
request
goto
end
:e
_x509
echo
error
using
'x509'
to
self
sign
a
certificate
request
goto
end
:e
_x509_2
echo
error
using
'x509'
convert
a
certificate
to
a
certificate
request
goto
end
:e
_vrfy_1
echo
first
generated
request
is
invalid
goto
end
:e
_vrfy_2
echo
second
generated
request
is
invalid
goto
end
:e
_vrfy_3
echo
first
generated
cert
is
invalid
goto
end
:e
_req_gen
echo
error
using
'req'
to
generate
a
certificate
request
goto
end
:e
_x_sign
echo
error
using
'x509'
to
sign
a
certificate
request
goto
end
:end
ms/testssce.bat
浏览文件 @
dac40f87
rem set ssleay=..\out\ssleay
set
ssleay
=
%
1
set
reqcmd
=
%ssleay%
req
set
x509cmd
=
%ssleay%
x509
set
verifycmd
=
%ssleay%
verify
set
CAkey
=
\OpenSSL\keyCA.ss
set
CAcert
=
\OpenSSL\certCA.ss
set
CAserial
=
\OpenSSL\certCA.srl
set
CAreq
=
\OpenSSL\reqCA.ss
cecopy
..\test\CAss.cnf
CE
:\OpenSSL
set
CAconf
=
\OpenSSL\CAss.cnf
set
CAreq2
=
\OpenSSL\req2CA.ss
cecopy
..\test\Uss.cnf
CE
:\OpenSSL
set
Uconf
=
\OpenSSL\Uss.cnf
set
Ukey
=
\OpenSSL\keyU.ss
set
Ureq
=
\OpenSSL\reqU.ss
set
Ucert
=
\OpenSSL\certU.ss
echo
make
a
certificate
request
using
'req'
cerun
CE
:\OpenSSL\
%reqcmd%
-config
%CAconf%
-out
%CAreq%
-keyout
%CAkey%
-new
if
errorlevel
1
goto
e_req
echo
convert
the
certificate
request
into
a
self
signed
certificate
using
'x509'
cerun
CE
:\OpenSSL\
%x5
09
cmd
%
-CAcreateserial -in
%CAreq%
-days
30
-req -out
%CAcert%
-signkey
%CAkey%
"> \OpenSSL\err.ss"
if
errorlevel
1
goto
e_x509
echo
--
echo
convert
a
certificate
into
a
certificate
request
using
'x509'
cerun
CE
:\OpenSSL\
%x5
09
cmd
%
-in
%CAcert%
-x
509
toreq
-signkey
%CAkey%
-out
%CAreq2
%
"> \OpenSSL\err.ss"
if
errorlevel
1
goto
e_x509_2
cerun
CE
:\OpenSSL\
%reqcmd%
-verify -in
%CAreq%
-noout
if
errorlevel
1
goto
e_vrfy_1
cerun
CE
:\OpenSSL\
%reqcmd%
-verify -in
%CAreq2
%
-noout
if
errorlevel
1
goto
e_vrfy_2
cerun
CE
:\OpenSSL\
%verifycmd%
-CAfile
%CAcert%
%CAcert%
if
errorlevel
1
goto
e_vrfy_3
echo
--
echo
make
another
certificate
request
using
'req'
cerun
CE
:\OpenSSL\
%reqcmd%
-config
%Uconf%
-out
%Ureq%
-keyout
%Ukey%
-new
"> \OpenSSL\err.ss"
if
errorlevel
1
goto
e_req_gen
echo
--
echo
sign
certificate
request
with
the
just
created
CA
via
'x509'
cerun
CE
:\OpenSSL\
%x5
09
cmd
%
-CAcreateserial -in
%Ureq%
-days
30
-req -out
%Ucert%
-CA
%CAcert%
-CAkey
%CAkey%
-CAserial
%CAserial%
if
errorlevel
1
goto
e_x_sign
cerun
CE
:\OpenSSL\
%verifycmd%
-CAfile
%CAcert%
%Ucert%
echo
--
echo
Certificate
details
cerun
CE
:\OpenSSL\
%x5
09
cmd
%
-subject -issuer -startdate -enddate -noout -in
%Ucert%
cecopy
CE
:
%CAcert%
.
cecopy
CE
:
%CAkey%
.
cecopy
CE
:
%CAserial%
.
cecopy
CE
:
%Ucert%
.
cecopy
CE
:
%Ukey%
.
echo
Everything
appeared
to
work
echo
--
echo
The
generated
CA
certificate
is
%CAcert%
echo
The
generated
CA
private
key
is
%CAkey%
echo
The
current
CA
signing
serial
number
is
in
%CAserial%
echo
The
generated
user
certificate
is
%Ucert%
echo
The
generated
user
private
key
is
%Ukey%
echo
--
cedel
CE
:\OpenSSL\err.ss
goto
end
:e
_req
echo
error
using
'req'
to
generate
a
certificate
request
goto
end
:e
_x509
echo
error
using
'x509'
to
self
sign
a
certificate
request
goto
end
:e
_x509_2
echo
error
using
'x509'
convert
a
certificate
to
a
certificate
request
goto
end
:e
_vrfy_1
echo
first
generated
request
is
invalid
goto
end
:e
_vrfy_2
echo
second
generated
request
is
invalid
goto
end
:e
_vrfy_3
echo
first
generated
cert
is
invalid
goto
end
:e
_req_gen
echo
error
using
'req'
to
generate
a
certificate
request
goto
end
:e
_x_sign
echo
error
using
'x509'
to
sign
a
certificate
request
goto
end
:end
rem set ssleay=..\out\ssleay
set
ssleay
=
%
1
set
reqcmd
=
%ssleay%
req
set
x509cmd
=
%ssleay%
x509
set
verifycmd
=
%ssleay%
verify
set
CAkey
=
\OpenSSL\keyCA.ss
set
CAcert
=
\OpenSSL\certCA.ss
set
CAserial
=
\OpenSSL\certCA.srl
set
CAreq
=
\OpenSSL\reqCA.ss
cecopy
..\test\CAss.cnf
CE
:\OpenSSL
set
CAconf
=
\OpenSSL\CAss.cnf
set
CAreq2
=
\OpenSSL\req2CA.ss
cecopy
..\test\Uss.cnf
CE
:\OpenSSL
set
Uconf
=
\OpenSSL\Uss.cnf
set
Ukey
=
\OpenSSL\keyU.ss
set
Ureq
=
\OpenSSL\reqU.ss
set
Ucert
=
\OpenSSL\certU.ss
echo
make
a
certificate
request
using
'req'
cerun
CE
:\OpenSSL\
%reqcmd%
-config
%CAconf%
-out
%CAreq%
-keyout
%CAkey%
-new
if
errorlevel
1
goto
e_req
echo
convert
the
certificate
request
into
a
self
signed
certificate
using
'x509'
cerun
CE
:\OpenSSL\
%x5
09
cmd
%
-CAcreateserial -in
%CAreq%
-days
30
-req -out
%CAcert%
-signkey
%CAkey%
"> \OpenSSL\err.ss"
if
errorlevel
1
goto
e_x509
echo
--
echo
convert
a
certificate
into
a
certificate
request
using
'x509'
cerun
CE
:\OpenSSL\
%x5
09
cmd
%
-in
%CAcert%
-x
509
toreq
-signkey
%CAkey%
-out
%CAreq2
%
"> \OpenSSL\err.ss"
if
errorlevel
1
goto
e_x509_2
cerun
CE
:\OpenSSL\
%reqcmd%
-verify -in
%CAreq%
-noout
if
errorlevel
1
goto
e_vrfy_1
cerun
CE
:\OpenSSL\
%reqcmd%
-verify -in
%CAreq2
%
-noout
if
errorlevel
1
goto
e_vrfy_2
cerun
CE
:\OpenSSL\
%verifycmd%
-CAfile
%CAcert%
%CAcert%
if
errorlevel
1
goto
e_vrfy_3
echo
--
echo
make
another
certificate
request
using
'req'
cerun
CE
:\OpenSSL\
%reqcmd%
-config
%Uconf%
-out
%Ureq%
-keyout
%Ukey%
-new
"> \OpenSSL\err.ss"
if
errorlevel
1
goto
e_req_gen
echo
--
echo
sign
certificate
request
with
the
just
created
CA
via
'x509'
cerun
CE
:\OpenSSL\
%x5
09
cmd
%
-CAcreateserial -in
%Ureq%
-days
30
-req -out
%Ucert%
-CA
%CAcert%
-CAkey
%CAkey%
-CAserial
%CAserial%
if
errorlevel
1
goto
e_x_sign
cerun
CE
:\OpenSSL\
%verifycmd%
-CAfile
%CAcert%
%Ucert%
echo
--
echo
Certificate
details
cerun
CE
:\OpenSSL\
%x5
09
cmd
%
-subject -issuer -startdate -enddate -noout -in
%Ucert%
cecopy
CE
:
%CAcert%
.
cecopy
CE
:
%CAkey%
.
cecopy
CE
:
%CAserial%
.
cecopy
CE
:
%Ucert%
.
cecopy
CE
:
%Ukey%
.
echo
Everything
appeared
to
work
echo
--
echo
The
generated
CA
certificate
is
%CAcert%
echo
The
generated
CA
private
key
is
%CAkey%
echo
The
current
CA
signing
serial
number
is
in
%CAserial%
echo
The
generated
user
certificate
is
%Ucert%
echo
The
generated
user
private
key
is
%Ukey%
echo
--
cedel
CE
:\OpenSSL\err.ss
goto
end
:e
_req
echo
error
using
'req'
to
generate
a
certificate
request
goto
end
:e
_x509
echo
error
using
'x509'
to
self
sign
a
certificate
request
goto
end
:e
_x509_2
echo
error
using
'x509'
convert
a
certificate
to
a
certificate
request
goto
end
:e
_vrfy_1
echo
first
generated
request
is
invalid
goto
end
:e
_vrfy_2
echo
second
generated
request
is
invalid
goto
end
:e
_vrfy_3
echo
first
generated
cert
is
invalid
goto
end
:e
_req_gen
echo
error
using
'req'
to
generate
a
certificate
request
goto
end
:e
_x_sign
echo
error
using
'x509'
to
sign
a
certificate
request
goto
end
:end
ms/tpem.bat
浏览文件 @
dac40f87
rem called by testpem
echo
test
%
1
%
2
%ssleay%
%
1
-in
%
2
-out
%tmp1
%
%cmp%
%
2
%tmp1
%
rem called by testpem
echo
test
%
1
%
2
%ssleay%
%
1
-in
%
2
-out
%tmp1
%
%cmp%
%
2
%tmp1
%
ms/tpemce.bat
浏览文件 @
dac40f87
rem called by testpemce
echo
test
%
1
%
2
cecopy
%
2
CE
:\OpenSSL
cerun
CE
:\OpenSSL\
%ssleay%
%
1
-in
\OpenSSL\
%
2
-out
\OpenSSL\
%tmp1
%
del
%tmp1
%
>
nul
2
>&
1
cecopy
CE
:\OpenSSL\
%tmp1
%
.
%cmp%
%
2
%tmp1
%
rem called by testpemce
echo
test
%
1
%
2
cecopy
%
2
CE
:\OpenSSL
cerun
CE
:\OpenSSL\
%ssleay%
%
1
-in
\OpenSSL\
%
2
-out
\OpenSSL\
%tmp1
%
del
%tmp1
%
>
nul
2
>&
1
cecopy
CE
:\OpenSSL\
%tmp1
%
.
%cmp%
%
2
%tmp1
%
ms/x86asm.bat
浏览文件 @
dac40f87
@echo
off
echo
Generating
x86
assember
echo
Bignum
cd
crypto
\bn\asm
perl
x86
.pl
win32n
>
bn
-win
32
.asm
cd
..\..\..
echo
DES
cd
crypto
\des\asm
perl
des
-
586
.pl
win32n
>
d
-win
32
.asm
cd
..\..\..
echo
"crypt(3)"
cd
crypto
\des\asm
perl
crypt586
.pl
win32n
>
y
-win
32
.asm
cd
..\..\..
echo
Blowfish
cd
crypto
\bf\asm
perl
bf
-
586
.pl
win32n
>
b
-win
32
.asm
cd
..\..\..
echo
CAST5
cd
crypto
\cast\asm
perl
cast
-
586
.pl
win32n
>
c
-win
32
.asm
cd
..\..\..
echo
RC4
cd
crypto
\rc4\asm
perl
rc4
-
586
.pl
win32n
>
r4
-win
32
.asm
cd
..\..\..
echo
MD5
cd
crypto
\md5\asm
perl
md5
-
586
.pl
win32n
>
m5
-win
32
.asm
cd
..\..\..
echo
SHA1
cd
crypto
\sha\asm
perl
sha1
-
586
.pl
win32n
>
s1
-win
32
.asm
cd
..\..\..
echo
RIPEMD160
cd
crypto
\ripemd\asm
perl
rmd
-
586
.pl
win32n
>
rm
-win
32
.asm
cd
..\..\..
echo
RC5
\32
cd
crypto
\rc5\asm
perl
rc5
-
586
.pl
win32n
>
r5
-win
32
.asm
cd
..\..\..
echo
on
@echo
off
echo
Generating
x86
assember
echo
Bignum
cd
crypto
\bn\asm
perl
x86
.pl
win32n
>
bn
-win
32
.asm
cd
..\..\..
echo
DES
cd
crypto
\des\asm
perl
des
-
586
.pl
win32n
>
d
-win
32
.asm
cd
..\..\..
echo
"crypt(3)"
cd
crypto
\des\asm
perl
crypt586
.pl
win32n
>
y
-win
32
.asm
cd
..\..\..
echo
Blowfish
cd
crypto
\bf\asm
perl
bf
-
586
.pl
win32n
>
b
-win
32
.asm
cd
..\..\..
echo
CAST5
cd
crypto
\cast\asm
perl
cast
-
586
.pl
win32n
>
c
-win
32
.asm
cd
..\..\..
echo
RC4
cd
crypto
\rc4\asm
perl
rc4
-
586
.pl
win32n
>
r4
-win
32
.asm
cd
..\..\..
echo
MD5
cd
crypto
\md5\asm
perl
md5
-
586
.pl
win32n
>
m5
-win
32
.asm
cd
..\..\..
echo
SHA1
cd
crypto
\sha\asm
perl
sha1
-
586
.pl
win32n
>
s1
-win
32
.asm
cd
..\..\..
echo
RIPEMD160
cd
crypto
\ripemd\asm
perl
rmd
-
586
.pl
win32n
>
rm
-win
32
.asm
cd
..\..\..
echo
RC5
\32
cd
crypto
\rc5\asm
perl
rc5
-
586
.pl
win32n
>
r5
-win
32
.asm
cd
..\..\..
echo
on
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录