daemon => suppression du CA, licence ajoutée
parent
78cf8306a9
commit
26109e5d69
|
@ -0,0 +1,13 @@
|
|||
Copyright (c) 2015, Philippe PITTOLI and Julien SIMONET
|
||||
|
||||
Permission to use, copy, modify, and/or distribute this software for any
|
||||
purpose with or without fee is hereby granted, provided that the above
|
||||
copyright notice and this permission notice appear in all copies.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
||||
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
||||
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
||||
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
||||
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
||||
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
||||
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
@ -1,5 +1,4 @@
|
|||
# mise à jour automatique (façon DynDNS)
|
||||
|
||||
Pour mettre à jour automatiquement une adresse IP d'un nom de domaine, il faut
|
||||
changer les quelques valeurs du fichier daemon.pl (en haut) et avoir le
|
||||
certificat du site netlib.re.
|
||||
changer les quelques valeurs du fichier daemon.pl (en haut).
|
||||
|
|
|
@ -1,35 +0,0 @@
|
|||
-----BEGIN CERTIFICATE-----
|
||||
MIIGBTCCBO2gAwIBAgISASFcIBuhTfzd3RUfun6XgMjmMA0GCSqGSIb3DQEBCwUA
|
||||
MEoxCzAJBgNVBAYTAlVTMRYwFAYDVQQKEw1MZXQncyBFbmNyeXB0MSMwIQYDVQQD
|
||||
ExpMZXQncyBFbmNyeXB0IEF1dGhvcml0eSBYMTAeFw0xNTEyMjUxODAyMDBaFw0x
|
||||
NjAzMjQxODAyMDBaMBQxEjAQBgNVBAMTCW5ldGxpYi5yZ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
dHNlbmNyeXB0Lm9yZy8wLwYIKwYBBQUHMAKGI2h0dHA6Ly9jZXJ0LmludC14MS5s
|
||||
ZXRzZW5jcnlwdC5vcmcvMCMGA1UdEQQcMBqCCW5ldGxpYi5yZYINd3d3Lm5ldGxp
|
||||
Yi5yZTCB/gYDVR0gBIH2MIHzMAgGBmeBDAECATCB5gYLKwYBBAGC3xMBAQEwgdYw
|
||||
JgYIKwYBBQUHAgEWGmh0dHA6Ly9jcHMubGV0c2VuY3J5cHQub3JnMIGrBggrBgEF
|
||||
BQcCAjCBngyBm1RoaXMgQ2VydGlmaWNhdGUgbWF5IG9ubHkgYmUgcmVsaWVkIHVw
|
||||
b24gYnkgUmVseWluZyBQYXJ0aWVzIGFuZCBvbmx5IGluIGFjY29yZGFuY2Ugd2l0
|
||||
aCB0aGUgQ2VydGlmaWNhdGUgUG9saWN5IGZvdW5kIGF0IGh0dHBzOi8vbGV0c2Vu
|
||||
Y3J5cHQub3JnL3JlcG9zaXRvcnkvMA0GCSqGSIb3DQEBCwUAA4IBAQB48i8zohh4
|
||||
XjZRb/PfOzL8jtg5WTQ6f/3TFTu0gm1BITjyPsl2iMHfmxBeTHEH/lpOZgRfVh73
|
||||
7YHPdj6RLrYvBv8+s3YxQ/w6nPIRXetni7aJIASQYQFehZ1tx0ZtcrDvQ8i9br3J
|
||||
Rm3Lx70v8uOXDcnZFP52ZP27rEzflU7cEBpygEkIpvSACioeJvkQIy0zISPPtYFp
|
||||
JqfaVpm5qACAg1ngAsag/MOuXpb2z1j/SQhUkZDVmkUHNFizSj7YTno83NbEz5Rn
|
||||
AJXBDrUmWedNcYyoX2r7LdJmHPEq7atPtdMqOOYHX1vOxBKQIcVigfI0OZ26oqOs
|
||||
+I6wiYe3Lj7B
|
||||
-----END CERTIFICATE-----
|
|
@ -25,12 +25,11 @@ our $pass = "mdptest";
|
|||
our $name = 'www';
|
||||
our $type = 'A'; # could be AAAA
|
||||
|
||||
# The CA certificate, to authenticate the website (should be provided)
|
||||
# Check your service provider for updates
|
||||
our $cacert = "ca.cert";
|
||||
our $wget = `which wget`; chomp $wget;
|
||||
die "There is no wget on this computer." unless $wget;
|
||||
|
||||
sub get_ip {
|
||||
for (split "\n", `wget -nv -O - $checkip`) {
|
||||
for (split "\n", `$wget -nv -O - $checkip`) {
|
||||
/^[0-9.]+$/ || /^[0-9a-f:]+$/ and return $_
|
||||
}
|
||||
undef
|
||||
|
@ -44,10 +43,9 @@ sub update {
|
|||
my $passb64 = encode_base64($pass);
|
||||
chomp $passb64;
|
||||
|
||||
my $cmd = "wget -O - ";
|
||||
my $cmd = "$wget -O - ";
|
||||
$cmd .=
|
||||
"https://$nddservice/domain/cliup/$login/$passb64/$domain/$name/$type/$ip ";
|
||||
$cmd .= "--ca-certificate=$cacert";
|
||||
"https://$nddservice/domain/cliup/$login/$passb64/$domain/$name/$type/$ip";
|
||||
say "CMD :: $cmd";
|
||||
`$cmd`;
|
||||
}
|
||||
|
|
Reference in New Issue