2 # Copyright 2015-2016 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/;
15 use OpenSSL::Test::Utils;
19 #plan skip_all => "RSA command line tool not built"
20 # if disabled("deprecated-3.0");
24 require_ok(srctop_file('test', 'recipes', 'tconversion.pl'));
26 ok(run(test(["rsa_test"])), "running rsatest");
28 run_rsa_tests("pkey");
31 skip "Skipping rsa command line tests", 4 if disabled('deprecated-3.0');
39 ok(run(app([ 'openssl', $cmd, '-check', '-in', srctop_file('test', 'testrsa.pem'), '-noout'])),
43 skip "Skipping $cmd conversion test", 3
46 subtest "$cmd conversions -- private key" => sub {
47 tconversion($cmd, srctop_file("test", "testrsa.pem"));
49 subtest "$cmd conversions -- private key PKCS#8" => sub {
50 tconversion($cmd, srctop_file("test", "testrsa.pem"), "pkey");
55 skip "Skipping msblob conversion test", 1
56 if disabled($cmd) || disabled("dsa") || $cmd == 'pkey';
58 subtest "$cmd conversions -- public key" => sub {
59 tconversion("msb", srctop_file("test", "testrsapub.pem"), "rsa",