Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
9190fdd4
Unverified
Commit
9190fdd4
authored
May 04, 2020
by
neil
Committed by
GitHub
May 04, 2020
Browse files
Merge pull request #2903 from acmesh-official/dev
sync
parents
8f2d085d
eab35605
Changes
3
Show whitespace changes
Inline
Side-by-side
.travis.yml
View file @
9190fdd4
language
:
shell
sudo
:
required
dist
:
trusty
os
:
...
...
deploy/haproxy.sh
View file @
9190fdd4
...
...
@@ -233,7 +233,6 @@ haproxy_deploy() {
-header Host
${
_header_sep
}
\"
${
_ocsp_host
}
\"
\
-respout
\"
${
_ocsp
}
\"
\
-verify_other
\"
${
_issuer
}
\"
\
-no_nonce
\
${
_cafile_argument
}
\
| grep -q
\"
${
_pem
}
: good
\"
"
_debug _openssl_ocsp_cmd
"
${
_openssl_ocsp_cmd
}
"
...
...
dnsapi/dns_df.sh
0 → 100644
View file @
9190fdd4
#!/usr/bin/env sh
########################################################################
# https://dyndnsfree.de hook script for acme.sh
#
# Environment variables:
#
# - $DF_user (your dyndnsfree.de username)
# - $DF_password (your dyndnsfree.de password)
#
# Author: Thilo Gass <thilo.gass@gmail.com>
# Git repo: https://github.com/ThiloGa/acme.sh
#-- dns_df_add() - Add TXT record --------------------------------------
# Usage: dns_df_add _acme-challenge.subdomain.domain.com "XyZ123..."
dyndnsfree_api
=
"https://dynup.de/acme.php"
dns_df_add
()
{
fulldomain
=
$1
txt_value
=
$2
_info
"Using DNS-01 dyndnsfree.de hook"
DF_user
=
"
${
DF_user
:-
$(
_readaccountconf_mutable DF_user
)
}
"
DF_password
=
"
${
DF_password
:-
$(
_readaccountconf_mutable DF_password
)
}
"
if
[
-z
"
$DF_user
"
]
||
[
-z
"
$DF_password
"
]
;
then
DF_user
=
""
DF_password
=
""
_err
"No auth details provided. Please set user credentials using the
\$
DF_user and
\$
DF_password environment variables."
return
1
fi
#save the api user and password to the account conf file.
_debug
"Save user and password"
_saveaccountconf_mutable DF_user
"
$DF_user
"
_saveaccountconf_mutable DF_password
"
$DF_password
"
domain
=
"
$(
printf
"%s"
"
$fulldomain
"
|
cut
-d
"."
-f2-
)
"
get
=
"
$dyndnsfree_api
?username=
$DF_user
&password=
$DF_password
&hostname=
$domain
&add_hostname=
$fulldomain
&txt=
$txt_value
"
if
!
erg
=
"
$(
_get
"
$get
"
)
"
;
then
_err
"error Adding
$fulldomain
TXT:
$txt_value
"
return
1
fi
if
_contains
"
$erg
"
"success"
;
then
_info
"Success, TXT Added, OK"
else
_err
"error Adding
$fulldomain
TXT:
$txt_value
erg:
$erg
"
return
1
fi
_debug
"ok Auto
$fulldomain
TXT:
$txt_value
erg:
$erg
"
return
0
}
dns_df_rm
()
{
fulldomain
=
$1
txtvalue
=
$2
_info
"TXT enrty in
$fulldomain
is deleted automatically"
_debug fulldomain
"
$fulldomain
"
_debug txtvalue
"
$txtvalue
"
}
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