openssl/test/recipes/04-test_pem_data/dsa-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

389 lines
1.6 KiB
Text

-----BEGIN DSA PRIVATE KEY-----
Proc-Type: 4,ENCRYPTED
DEK-Info: AES-256-CBC,A2A7FA3E5E454B59C8777564E7AF3CD6
EBD
WX0
Qfa
rl+
QNs
HgC
Uud
Lyb
6Dk
C4z
yaD
U/v
UqW
yHX
0m+
8W2
bbm
T5T
exl
L3h
sM5
Ugz
7Ks
Gqy
jeO
uK9
QT5
LOM
4Vy
K6B
gmh
qpQ
aJ1
MgC
WA/
gbB
PTg
Bp2
jfp
3oS
0WC
5D6
GMw
csd
qoe
IpD
/wc
e3k
0H2
Gfu
6+r
INB
mbI
Ttn
4DT
f3P
kOc
DIw
dDc
eN2
qkZ
anl
oFV
riS
3kA
BUI
h1e
hYI
XQi
bLR
FY5
rXd
Qnh
Y2C
ZNr
QFI
Mwl
64h
K5P
5hQ
bcy
JKG
DHA
YzX
V7o
upd
Xy5
F9o
yEd
6eA
5ix
+n1
jKF
RB7
PmA
pZm
uiQ
jzf
ExV
KmB
PGx
RzO
GT0
qR5
vLy
lQh
eiS
C77
nke
raw
Uyj
A2Q
lIa
/Sm
NzX
EYk
N3g
oDz
HSF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