The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.
use Web::ID::Certificate::Generator;

Web::ID::Certificate->generate(
	passphrase        => 'test1234',
	subject_alt_names => [
		Web::ID::SAN::URI->new(value => 'http://example.com/id/alice'),
		Web::ID::SAN::URI->new(value => 'http://example.net/id/alice'),
		],
	cert_output       => \(my $output),
	rdf_output        => \(my $model),
	subject_cn        => 'Alice Test',
	subject_country   => 'gb',
	);
	
print RDF::Trine::Serializer
	-> new('RDFXML')
	-> serialize_model_to_string($model);