[#4]
nathanaelatdihedraldotde [ 2006-08-1106336002:26 ]
wendealingwithepurposesofax 509 CRT file
theoutputofopenssl _ x509 _ parsegivesanarraywithfollowingforthepurposes 3360
eachnewarray([purposes][1],[purposes][2]forexample ) isanewpurposecheck
icomparedthisoutputwitheoutputofthecommand
#opensslx509-purpose-in
theresultigotwasthat
[ purposes ] [ x ] [2] quiteobviouslyisthenameofthepurposechecked
[ purposes ] [ x ] [1] correspondstothetestedpurpose (asna medin [ purposes ] [ x ] [2] ) actingasCA
[ purposes ] [ x ] [0] corespondstothegeneralavailabilityofthepurpose
[ purposes ]=阵列
(
[1]=阵列
(
[0]=1
[1]=1
[2]=SSL客户端
)
[2]=阵列
(
[0]=1
[1]=1
[2]=SSL服务器
)
[3]=阵列
(
[0]=1
[1]=1
[2]=nssslserver
)
[4]=阵列
(
[0]=1
[1]=1
[2]=smimesign
)
[5]=阵列
(
[0]=1
[1]=1
[2]=smimeencrypt
)
[6]=阵列
(
[0]=1
[1]=1
[2]=crlsign
)
[7]=阵列
(
[0]=1
[1]=1
[2]=any
)
[8]=阵列
(
[0]=1
[1]=1
[2]=ocsphelper
)
)