@@ -74,6 +74,11 @@ Path to the private key for the signing certificate
74
74
Path to the public key that the IdP should use for encryption. This
75
75
is used when generating the metadata.
76
76
77
+ =item B<signing_only >
78
+
79
+ Indicate that the key for signing is exclusively used for signing and not
80
+ encryption and signing.
81
+
77
82
=item B<cacert >
78
83
79
84
Path to the CA certificate for verification
@@ -175,6 +180,8 @@ has 'cert' => (isa => 'Str', is => 'ro', required => 1, predicate => 'has_cert
175
180
has ' key' => (isa => ' Str' , is => ' ro' , required => 1);
176
181
has ' cacert' => (isa => ' Str' , is => ' rw' , required => 0, predicate => ' has_cacert' );
177
182
183
+ has ' signing_only' => (isa => ' Bool' , is => ' ro' , required => 0);
184
+
178
185
has ' encryption_key' => (isa => ' Str' , is => ' ro' , required => 0, predicate => ' has_encryption_key' );
179
186
has ' error_url' => (isa => Uri, is => ' ro' , required => 1, coerce => 1);
180
187
has ' org_name' => (isa => ' Str' , is => ' ro' , required => 1);
@@ -654,6 +661,8 @@ sub _generate_key_descriptors {
654
661
655
662
my $key = $use eq ' encryption' ? $self -> _encryption_key_text : $self -> _cert_text;
656
663
664
+ $use = ' signing' if $self -> signing_only && $use eq ' both' ;
665
+
657
666
return $x -> KeyDescriptor(
658
667
$md ,
659
668
$use ne ' both' ? { use => $use } : {},
0 commit comments