Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
be5085f2
Commit
be5085f2
authored
Nov 25, 2018
by
epgdatacapbon
Browse files
Increase security using https for MyDNS.JP API
parent
d55c64c8
Changes
1
Hide whitespace changes
Inline
Side-by-side
dnsapi/dns_mydnsjp.sh
100644 → 100755
View file @
be5085f2
...
...
@@ -15,7 +15,7 @@
# MYDNSJP_MasterID=MasterID
# MYDNSJP_Password=Password
MYDNSJP_API
=
"http://www.mydns.jp"
MYDNSJP_API
=
"http
s
://www.mydns.jp"
#Usage: dns_mydnsjp_add _acme-challenge.www.domain.com "XKrxpRBosdIKFzxW_CT3KLZNf6q0HG9i01zxXp5CPBs"
dns_mydnsjp_add
()
{
...
...
@@ -151,7 +151,7 @@ _mydnsjp_retrieve_domain() {
_debug
"Login to MyDNS.JP"
response
=
"
$(
_post
"masterid=
$MYDNSJP_MasterID
&masterpwd=
$MYDNSJP_Password
"
"
$MYDNSJP_API
/?MENU=100"
)
"
cookie
=
"
$(
grep
'^
S
et-
C
ookie:'
"
$HTTP_HEADER
"
| _head_n 1 |
cut
-d
" "
-f
2
)
"
cookie
=
"
$(
grep
-i
'^
s
et-
c
ookie:'
"
$HTTP_HEADER
"
| _head_n 1 |
cut
-d
" "
-f
2
)
"
# If cookies is not empty then logon successful
if
[
-z
"
$cookie
"
]
;
then
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment