openssl/test/recipes/60-test_x509_acert.t
Damian Hobson-Garcia 11cd18c60d x509_acert: Add more parsing and printing tests
These have been extracted from the boucycastle test code.
Make sure that these certificates can be safely and correctly parsed
and printed.

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Neil Horman <nhorman@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15857)
2024-04-24 14:08:05 +01:00

25 lines
852 B
Raku

#! /usr/bin/env perl
# Copyright 2021 The OpenSSL Project Authors. All Rights Reserved.
#
# Licensed under the Apache License 2.0 (the "License"). You may not use
# this file except in compliance with the License. You can obtain a copy
# in the file LICENSE in the source distribution or at
# https://www.openssl.org/source/license.html
use OpenSSL::Test::Utils;
use OpenSSL::Test qw/:DEFAULT srctop_file/;
setup("test_x509_acert");
plan skip_all => "test_x509_acert uses ec which is not supported by this build"
if disabled("ec");
plan tests => 1;
ok(run(test(["x509_acert_test", srctop_file("test", "certs", "acert.pem"),
srctop_file("test", "certs", "acert_ietf.pem"),
srctop_file("test", "certs", "acert_bc1.pem"),
srctop_file("test", "certs", "acert_bc2.pem")])),
"running x509_acert_test");