2 # Copyright 2015-2016 The OpenSSL Project Authors. All Rights Reserved.
4 # Licensed under the OpenSSL license (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/;
20 require_ok(srctop_file('test','recipes','tconversion.pl'));
22 my @openssl_args = ("req", "-config", srctop_file("apps", "openssl.cnf"));
24 run_conversion('req conversions',
26 run_conversion('req conversions -- testreq2',
33 subtest $title => sub {
34 run(app(["openssl", @openssl_args,
35 "-in", $reqfile, "-inform", "p",
37 stderr => "req-check.err", stdout => undef));
38 open DATA, "req-check.err";
40 plan skip_all => "skipping req conversion test for $reqfile"
41 if grep /Unknown Public Key/, map { s/\R//; } <DATA>;
43 tconversion("req", "testreq.pem", @openssl_args);
46 unlink "req-check.err";