openssl/test/recipes/04-test_pem_data/cert-threecolumn.pem
Benjamin Kaduk e8cee55718 Add test corpus for PEM reading
Generate a fresh certificate and DSA private key in their respective PEM
files.  Modify the resulting ASCII in various ways so as to produce input
files that might be generated by non-openssl programs (openssl always
generates "standard" PEM files, with base64 data in 64-character lines
except for a possible shorter last line).

Exercise various combinations of line lengths, leading/trailing
whitespace, non-base64 characters, comments, and padding, for both
unencrypted and encrypted files.  (We do not have any other test coverage
that uses encrypted files, as far as I can see, and the parser enforces
different rules for the body of encrypted files.)

Add a recipe to parse these test files and verify that they contain the
expected string or are rejected, according to the expected status.
Some of the current behavior is perhaps suboptimal and could be revisited.

Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2756)
2017-02-28 21:23:26 +01:00

551 lines
2.2 KiB
Plaintext

-----BEGIN CERTIFICATE-----
MII
EzD
CCA
7QC
CQC
gxk
Rox
+Yl
jjA
NBg
kqh
kiG
9w0
BAQ
sFA
DCC
ASY
xYz
BhB
gNV
BAg
MWl
RoZ
SBH
cmV
hdC
BTd
GF0
ZSB
vZi
BMb
25n
LVd
pbm
RlZ
CBD
ZXJ
0aW
ZpY
2F0
ZSB
GaW
VsZ
CBO
YW1
lcy
BXa
GVy
ZWJ
5IH
RvI
Elu
Y3J
lYX
NlI
HRo
ZSB
PdX
Rwd
XQg
U2l
6ZT
EfM
B0G
A1U
EBw
wWV
G9v
bWF
ueW
NoY
XJh
Y3R
lcn
N2a
Wxs
ZTF
IME
YGA
1UE
Cgw
/VG
hlI
EJl
bmV
2b2
xlb
nQg
U29
jaW
V0e
SBv
ZiB
Mb3
F1Y
WNp
b3V
zIG
FuZ
CBQ
bGV
vbm
Fzd
Glj
IFB
lcm
lwa
HJh
c2l
zMT
0wO
wYD
VQQ
LDD
RFb
mRv
cnN
lbW
Vud
CBv
ZiB
Wb3
Vja
HNh
ZmU
nZC
BFd
mlk
ZW5
0aW
Fye
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