Ascio Web Service v2
Perl CreateDnsSecKey
DNSSEC is an extension to DNS that enables clients (like a web browser) to make sure that it is
accessing the domain that wants to access. DNSSEC was designed to protect clients from forged DNS data. When a DNSSEC-enabled name server is responding to a query for a domain that is DNSSEC-enabled, it
digitally signs the response, allowing the client to verify the authenticity of the response.
AWS allows you to register domains that are DNSSEC-enabled with the NIC. Note that the relevant NIC
needs to support DNSSEC for this to happen. You do this by creating DNSSEC Key Objects (handles), and you then specify up to five of these on your
orders. At the time of writing, AWS only supports DNSSEC for .SE, .FI, .EU, .NL. Refer to the relevant TLD Kits for additional information.
Also see the documentation for the DnsSecKey object in this document. Additional reading: http://en.wikipedia.org/wiki/Dnssec
Always get the right IP-address
Response CreateDnsSecKey(string sessionId,DnsSecKey dnsSecKey)
Response codes
ResultCode | Message | Value |
---|---|---|
200 | OK | |
401 | Authorization failed | |
501 | Syntax error in parameters or arguments | |
506 | Required attribute missing in request |
CreateDnsSecKey Request
Property | Description |
---|---|
sessionId | Example: o58t9fjgw9bjarp6q7byv13e |
dnsSecKey |
CreateDnsSecKeyResponse
Property |
---|
CreateDnsSecKeyResult |
dnsSecKey |
Perl example
use SOAP::Lite;
use Date::Format;
$proxy = "https://aws.demo.ascio.com/2012/01/01/AscioService.svc";
$namespace = "http://www.ascio.com/2007/01";
$soap = SOAP::Lite->on_action( sub { "http://www.ascio.com/2007/01/IDnsSecKeyService/CreateDnsSecKey" } )->proxy($proxy);
$soap->autotype(0);
$method = SOAP::Data->name("CreateDnsSecKey")->attr({xmlns => $namespace});
#DnsSecKey
$dnsSecKey = \SOAP::Data->value(
SOAP::Data->name('DigestAlgorithm','RSA-SHA256'),
SOAP::Data->name('DigestType','SHA-256'),
SOAP::Data->name('Digest','846E5ED4AB6788032B89393619752F662CF2B7B2046A8EC0804DF88F1469AC1E'),
SOAP::Data->name('KeyTag','2224'),
SOAP::Data->name('PublicKey','PublicKeyTest')
);
@query = (
SOAP::Data->name("sessionId" => $sessionId),
SOAP::Data->name("dnsSecKey" => $dnsSecKey)
);
$result = $soap->call($method => @query);
unless ($result->fault) {
$response = $result->valueof("//CreateDnsSecKeyResponse/CreateDnsSecKeyResult");
print "ResultCode : $response->{'ResultCode'}\r\n";
print "Message : $response->{'Message'}\r\n";
if ($response->{"ResultCode"} == 200) {
print "OK";
}
}
else {
print join ", ",
$result->faultcode,
$result->faultstring,
$result->faultdetail;
}
https://aws.demo.ascio.com/2012/01/01/AscioService.wsdl (OTE)
https://aws.ascio.com/2012/01/01/AscioService.wsdl (Live)
Please configure the IP-Whitelisting in the portal/demo-portal.