I am trying to verify root Key Signing Key (KSK) against the trust anchor (Kjqmt7v.crt
) downloaded from here. I am getting root KSK using the Net::DNS
module.
I am very confused at present on how to verify that both are the same. I tried to convert the .crt
file to a Keyset
object, but it is resulting in an error.
This is my code.
#!/usr/bin/perl
use strict;
use warnings;
use Net::DNS::Keyset;
my $keyset = Net::DNS::Keyset->new('Kjqmt7v.crt');
$keyset->print;
This is the error
We expected a match RDATA
0��0���0 *�H�� 0K10 U
this Should not happen
at a.pl line 5
I am very confused and therefore unable to provide any proper code, as I have no idea how to start. Pointing me in the right direction would be very helpful.
I want a way to verify trust anchor against the KSK that I am getting from root DNS servers. If there is any other way to do that please update me.