NAME
WebService::OPNsense::IPsec::KeyPairs - IPsec key pair controller
VERSION
version 0.002
SYNOPSIS
my $kp = $opn->ipsec_key_pairs;
my $items = $kp->search_item;
$kp->gen_key_pair('RSA', 2048);
DESCRIPTION
Manages IPsec key pairs.
METHODS
gen_key_pair
my $result = $kp->gen_key_pair($type, $size);
Generates a new key pair. Optionally specify $type (e.g. 'RSA') and $size (e.g. 2048).
PROVIDED METHODS
The following methods are inherited from consumed roles.
search_item
my $results = $ctrl->search_item( %params );
Searches for key pairs.
get_item
my $item = $ctrl->get_item( $uuid );
Returns a single key pair by UUID. Throws if $uuid is not a valid UUID.
add_item
my $result = $ctrl->add_item( $item_data );
Creates a key pair.
set_item
my $result = $ctrl->set_item( $uuid, $item_data );
Updates a key pair. Throws if $uuid is not a valid UUID.
del_item
my $result = $ctrl->del_item( $uuid );
Deletes a key pair by UUID. Throws if $uuid is not a valid UUID.
toggle_item
my $result = $ctrl->toggle_item( $uuid, $enabled );
Enables or disables a key pair. Throws if $uuid is not a valid UUID.
get_settings
my $config = $ctrl->get_settings;
Returns key pair settings.
set_settings
my $result = $ctrl->set_settings( $settings_data );
Updates key pair settings.
client
my $http_client = $ctrl->client;
Returns the underlying HTTP client object used for API requests.
SEE ALSO
WebService::OPNsense::Role::ItemCrud
AUTHOR
Dean Hamstead <dean@fragfest.com.au>
COPYRIGHT AND LICENSE
This software is Copyright (c) 2026 by Dean Hamstead.
This is free software, licensed under:
The MIT (X11) License