We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Required for some of the interop test vectors. A simple hack that works but likely should have a is_der attribute for the object
diff --git a/lib/XML/Enc.pm b/lib/XML/Enc.pm index 62b71bd..e756158 100644 --- a/lib/XML/Enc.pm +++ b/lib/XML/Enc.pm @@ -969,6 +969,10 @@ sub _load_key { local $/ = undef; $text = <$KEY>; close $KEY; + if ($file =~ m/der$/ ) { + my $priv = Crypt::PK::RSA->new($file); + $text = $priv->export_key_pem('private'); + } if ( $text =~ m/BEGIN ([DR]SA) PRIVATE KEY/ ) { my $key_used = $1;
The text was updated successfully, but these errors were encountered:
timlegge
No branches or pull requests
Required for some of the interop test vectors. A simple hack that works but likely should have a is_der attribute for the object
The text was updated successfully, but these errors were encountered: