NAME

OPCUA::Open62541::Test::CA - generate x509 certificates testing

SYNOPSIS

use OPCUA::Open62541::Test::CA;

my $ca = OPCUA::Open62541::Test::CA->new(%args);

DESCRIPTION

For module testing create keys and certificates needed for OPC UA encryption.

METHODS

$ca = OPCUA::Open62541::Test::CA->new(%args);

Create a new test CA instance.

$ca->setup()

Write OpenSSL config files.

$ca->create_cert_ca(%args)

Create CA certificate.

$ca->create_cert_client(%args)

Create client certificate. The parameter application_uri can be used to change the URI entry in SubjectAltName.

$ca->create_cert_server(%args)

Create server certificate. The parameter application_uri can be used to change the URI entry in SubjectAltName. The parameter host can be used to automatically create an entry in SubjectAltName. It will be an IP or a DNS entry depending on the given value.

$ca->create_cert(%args)

Use IO::Socket::SSL::Utils and run openssl command line tool to create all kind of private keys, certificates and CRLs.

$ca->revoke(%args)

Fill certificate revocation list and regenerate CRL.

SEE ALSO

OPCUA::Open62541, OPCUA::Open62541::Test::Client, OPCUA::Open62541::Test::Server

AUTHORS

Anton Borowka

COPYRIGHT AND LICENSE

Copyright (c) 2023 Anton Borowka

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

Thanks to genua GmbH, https://www.genua.de/ for sponsoring this work.