]>
git.ipfire.org Git - thirdparty/openssl.git/blob - test/recipes/20-test_spkac.t
2 # Copyright 2021 The OpenSSL Project Authors. All Rights Reserved.
4 # Licensed under the Apache License 2.0 (the "License"). You may not use
5 # this file except in compliance with the License. You can obtain a copy
6 # in the file LICENSE in the source distribution or at
7 # https://www.openssl.org/source/license.html
14 use OpenSSL
::Test qw
/:DEFAULT srctop_file ok_nofips/;
15 use OpenSSL
::Test
::Utils
;
19 plan skip_all
=> "RSA is not supported by this OpenSSL build"
24 # For the tests below we use the cert itself as the TBS file
27 skip
"MD5 is not supported by this OpenSSL build", 2
30 ok
(run
(app
([ 'openssl', 'spkac', '-key', srctop_file
("test", "testrsa.pem"),
31 '-out', 'spkac-md5.pem'])),
33 ok
(run
(app
([ 'openssl', 'spkac', '-in', 'spkac-md5.pem'])),
37 ok
(run
(app
([ 'openssl', 'spkac', '-key', srctop_file
("test", "testrsa.pem"),
38 '-out', 'spkac-sha256.pem', '-digest', 'sha256'])),
40 ok
(run
(app
([ 'openssl', 'spkac', '-in', 'spkac-sha256.pem'])),
41 "SPKAC SHA256 verify");