File tree Expand file tree Collapse file tree 1 file changed +4
-11
lines changed
Expand file tree Collapse file tree 1 file changed +4
-11
lines changed Original file line number Diff line number Diff line change @@ -630,22 +630,15 @@ sub _generate_key_descriptors {
630630 && !$self -> want_assertions_signed
631631 && !$self -> sign_metadata;
632632
633+ my $key = $use eq ' signing' ? $self -> _cert_text : $self -> _encryption_key_text;
634+
633635 return $x -> KeyDescriptor(
634636 $md ,
635637 { use => $use },
636638 $x -> KeyInfo(
637639 $ds ,
638- $x -> X509Data(
639- $ds ,
640- $x -> X509Certificate(
641- $ds ,
642- $use eq ' signing' ? $self -> _cert_text : $self -> _encryption_key_text,
643- )
644- ),
645- $x -> KeyName(
646- $ds ,
647- Digest::MD5::md5_hex($use eq ' signing' ? $self -> _cert_text : $self -> _encryption_key_text)
648- ),
640+ $x -> X509Data($ds , $x -> X509Certificate($ds , $key )),
641+ $x -> KeyName($ds , Digest::MD5::md5_hex($key )),
649642 ),
650643 );
651644}
You can’t perform that action at this time.
0 commit comments