NobGit
public nobgit read

NobMail

Based on mailcow: dockerized

Languages

Repository composition by tracked source files.

PHP
PHP 49% JavaScript 35% HTML 9% CSS 4% Shell 2% Python 1% Lua 0% Perl 0% Ruby 0% SCSS 0%
Create file Wiki Documentation
Clone
https://nobgit.com/orgs/nobgit/nobmail.git
ssh://[email protected]:2222/orgs/nobgit/nobmail.git

Trace

data/Dockerfiles/acme/functions.sh

Trace helps you understand code history line by line. See who changed each line, when it changed, and which commit introduced it.

functions.sh on main
Author Date Commit Line Code
Marcel Hofer almost 7 years ago 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
1
#!/bin/bash
Open commit View diff
1 #!/bin/bash
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
2
Open commit View diff
2
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
3
log_f() {
Open commit View diff
3 log_f() {
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
4
  if [[ ${2} == "no_nl" ]]; then
Open commit View diff
4 if [[ ${2} == "no_nl" ]]; then
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
5
    echo -n "$(date) - ${1}"
Open commit View diff
5 echo -n "$(date) - ${1}"
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
6
  elif [[ ${2} == "no_date" ]]; then
Open commit View diff
6 elif [[ ${2} == "no_date" ]]; then
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
7
    echo "${1}"
Open commit View diff
7 echo "${1}"
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
8
  elif [[ ${2} != "redis_only" ]]; then
Open commit View diff
8 elif [[ ${2} != "redis_only" ]]; then
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
9
    echo "$(date) - ${1}"
Open commit View diff
9 echo "$(date) - ${1}"
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
10
  fi
Open commit View diff
10 fi
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
11
  if [[ ${3} == "b64" ]]; then
Open commit View diff
11 if [[ ${3} == "b64" ]]; then
andryyy about 6 years ago 4ce39c0

[ACME] Add DIRECTORY_URL for custom directory URLs

Full commit hash
4ce39c0f3f598b64bb961202e173cdb33ee9411b
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
12
    ${REDIS_CMDLINE} LPUSH ACME_LOG "{\"time\":\"$(date +%s)\",\"message\":\"base64,$(printf '%s' "${MAILCOW_HOSTNAME} - ${1}")\"}" > /dev/null
Open commit View diff
12 ${REDIS_CMDLINE} LPUSH ACME_LOG "{\"time\":\"$(date +%s)\",\"message\":\"base64,$(printf '%s' "${MAILCOW_HOSTNAME} - ${1}")\"}" > /dev/null
Marcel Hofer almost 7 years ago 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
13
  else
Open commit View diff
13 else
andryyy about 6 years ago 4ce39c0

[ACME] Add DIRECTORY_URL for custom directory URLs

Full commit hash
4ce39c0f3f598b64bb961202e173cdb33ee9411b
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
14
    ${REDIS_CMDLINE} LPUSH ACME_LOG "{\"time\":\"$(date +%s)\",\"message\":\"$(printf '%s' "${MAILCOW_HOSTNAME} - ${1}" | \
Open commit View diff
14 ${REDIS_CMDLINE} LPUSH ACME_LOG "{\"time\":\"$(date +%s)\",\"message\":\"$(printf '%s' "${MAILCOW_HOSTNAME} - ${1}" | \
Marcel Hofer almost 7 years ago 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
15
      tr '%&;$"[]{}-\r\n' ' ')\"}" > /dev/null
Open commit View diff
15 tr '%&;$"[]{}-\r\n' ' ')\"}" > /dev/null
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
16
  fi
Open commit View diff
16 fi
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
17
}
Open commit View diff
17 }
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
18
Open commit View diff
18
andryyy about 5 years ago 0cbd4ec

[Config, Update] Add ACME_CONTACT

Full commit hash
0cbd4ec273b9546f8a2fa247b698665a3f745109
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
19
verify_email(){
Open commit View diff
19 verify_email(){
same change 0cbd4ec

[Config, Update] Add ACME_CONTACT

Full commit hash
0cbd4ec273b9546f8a2fa247b698665a3f745109
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
20
  regex="^(([A-Za-z0-9]+((\.|\-|\_|\+)?[A-Za-z0-9]?)*[A-Za-z0-9]+)|[A-Za-z0-9]+)@(([A-Za-z0-9]+)+((\.|\-|\_)?([A-Za-z0-9]+)+)*)+\.([A-Za-z]{2,})+$"
Open commit View diff
20 regex="^(([A-Za-z0-9]+((\.|\-|\_|\+)?[A-Za-z0-9]?)*[A-Za-z0-9]+)|[A-Za-z0-9]+)@(([A-Za-z0-9]+)+((\.|\-|\_)?([A-Za-z0-9]+)+)*)+\.([A-Za-z]{2,})+$"
same change 0cbd4ec

[Config, Update] Add ACME_CONTACT

Full commit hash
0cbd4ec273b9546f8a2fa247b698665a3f745109
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
21
  if [[ $1 =~ ${regex} ]]; then
Open commit View diff
21 if [[ $1 =~ ${regex} ]]; then
same change 0cbd4ec

[Config, Update] Add ACME_CONTACT

Full commit hash
0cbd4ec273b9546f8a2fa247b698665a3f745109
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
22
    return 0
Open commit View diff
22 return 0
same change 0cbd4ec

[Config, Update] Add ACME_CONTACT

Full commit hash
0cbd4ec273b9546f8a2fa247b698665a3f745109
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
23
  else
Open commit View diff
23 else
same change 0cbd4ec

[Config, Update] Add ACME_CONTACT

Full commit hash
0cbd4ec273b9546f8a2fa247b698665a3f745109
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
24
    return 1
Open commit View diff
24 return 1
same change 0cbd4ec

[Config, Update] Add ACME_CONTACT

Full commit hash
0cbd4ec273b9546f8a2fa247b698665a3f745109
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
25
  fi
Open commit View diff
25 fi
same change 0cbd4ec

[Config, Update] Add ACME_CONTACT

Full commit hash
0cbd4ec273b9546f8a2fa247b698665a3f745109
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
26
}
Open commit View diff
26 }
same change 0cbd4ec

[Config, Update] Add ACME_CONTACT

Full commit hash
0cbd4ec273b9546f8a2fa247b698665a3f745109
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
27
Open commit View diff
27
Marcel Hofer almost 7 years ago 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
28
verify_hash_match(){
Open commit View diff
28 verify_hash_match(){
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
29
  CERT_HASH=$(openssl x509 -in "${1}" -noout -pubkey | openssl md5)
Open commit View diff
29 CERT_HASH=$(openssl x509 -in "${1}" -noout -pubkey | openssl md5)
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
30
  KEY_HASH=$(openssl pkey -in "${2}" -pubout | openssl md5)
Open commit View diff
30 KEY_HASH=$(openssl pkey -in "${2}" -pubout | openssl md5)
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
31
  if [[ ${CERT_HASH} != ${KEY_HASH} ]]; then
Open commit View diff
31 if [[ ${CERT_HASH} != ${KEY_HASH} ]]; then
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
32
    log_f "Certificate and key hashes do not match!"
Open commit View diff
32 log_f "Certificate and key hashes do not match!"
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
33
    return 1
Open commit View diff
33 return 1
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
34
  else
Open commit View diff
34 else
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
35
    log_f "Verified hashes."
Open commit View diff
35 log_f "Verified hashes."
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
36
    return 0
Open commit View diff
36 return 0
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
37
  fi
Open commit View diff
37 fi
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
38
}
Open commit View diff
38 }
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
39
Open commit View diff
39
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
40
get_ipv4(){
Open commit View diff
40 get_ipv4(){
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
41
  local IPV4=
Open commit View diff
41 local IPV4=
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
42
  local IPV4_SRCS=
Open commit View diff
42 local IPV4_SRCS=
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
43
  local TRY=
Open commit View diff
43 local TRY=
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
44
  IPV4_SRCS[0]="ip4.mailcow.email"
Open commit View diff
44 IPV4_SRCS[0]="ip4.mailcow.email"
andryyy over 5 years ago e9b554b

[Web] Add nevondo.com ip check source, thank you!

Full commit hash
e9b554b09cdf9bdb499cbb2e4b4bf28e9df4aa9f
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
45
  IPV4_SRCS[1]="ip4.nevondo.com"
Open commit View diff
45 IPV4_SRCS[1]="ip4.nevondo.com"
Marcel Hofer almost 7 years ago 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
46
  until [[ ! -z ${IPV4} ]] || [[ ${TRY} -ge 10 ]]; do
Open commit View diff
46 until [[ ! -z ${IPV4} ]] || [[ ${TRY} -ge 10 ]]; do
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
47
    IPV4=$(curl --connect-timeout 3 -m 10 -L4s ${IPV4_SRCS[$RANDOM % ${#IPV4_SRCS[@]} ]} | grep -E "^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$")
Open commit View diff
47 IPV4=$(curl --connect-timeout 3 -m 10 -L4s ${IPV4_SRCS[$RANDOM % ${#IPV4_SRCS[@]} ]} | grep -E "^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$")
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
48
    [[ ! -z ${TRY} ]] && sleep 1
Open commit View diff
48 [[ ! -z ${TRY} ]] && sleep 1
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
49
    TRY=$((TRY+1))
Open commit View diff
49 TRY=$((TRY+1))
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
50
  done
Open commit View diff
50 done
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
51
  echo ${IPV4}
Open commit View diff
51 echo ${IPV4}
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
52
}
Open commit View diff
52 }
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
53
Open commit View diff
53
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
54
get_ipv6(){
Open commit View diff
54 get_ipv6(){
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
55
  local IPV6=
Open commit View diff
55 local IPV6=
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
56
  local IPV6_SRCS=
Open commit View diff
56 local IPV6_SRCS=
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
57
  local TRY=
Open commit View diff
57 local TRY=
andryyy over 5 years ago d3c0e2f

Temp remove ip6.korves.net

Full commit hash
d3c0e2fc11102806a0737f0c468d494c7f35059c
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
58
  IPV6_SRCS[0]="ip6.mailcow.email"
Open commit View diff
58 IPV6_SRCS[0]="ip6.mailcow.email"
andryyy over 5 years ago e9b554b

[Web] Add nevondo.com ip check source, thank you!

Full commit hash
e9b554b09cdf9bdb499cbb2e4b4bf28e9df4aa9f
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
59
  IPV6_SRCS[1]="ip6.nevondo.com"
Open commit View diff
59 IPV6_SRCS[1]="ip6.nevondo.com"
Marcel Hofer almost 7 years ago 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
60
  until [[ ! -z ${IPV6} ]] || [[ ${TRY} -ge 10 ]]; do
Open commit View diff
60 until [[ ! -z ${IPV6} ]] || [[ ${TRY} -ge 10 ]]; do
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
61
    IPV6=$(curl --connect-timeout 3 -m 10 -L6s ${IPV6_SRCS[$RANDOM % ${#IPV6_SRCS[@]} ]} | grep "^\([0-9a-fA-F]\{0,4\}:\)\{1,7\}[0-9a-fA-F]\{0,4\}$")
Open commit View diff
61 IPV6=$(curl --connect-timeout 3 -m 10 -L6s ${IPV6_SRCS[$RANDOM % ${#IPV6_SRCS[@]} ]} | grep "^\([0-9a-fA-F]\{0,4\}:\)\{1,7\}[0-9a-fA-F]\{0,4\}$")
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
62
    [[ ! -z ${TRY} ]] && sleep 1
Open commit View diff
62 [[ ! -z ${TRY} ]] && sleep 1
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
63
    TRY=$((TRY+1))
Open commit View diff
63 TRY=$((TRY+1))
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
64
  done
Open commit View diff
64 done
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
65
  echo ${IPV6}
Open commit View diff
65 echo ${IPV6}
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
66
}
Open commit View diff
66 }
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
67
Open commit View diff
67
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
68
check_domain(){
Open commit View diff
68 check_domain(){
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
69
    DOMAIN=$1
Open commit View diff
69 DOMAIN=$1
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
70
    A_DOMAIN=$(dig A ${DOMAIN} +short | tail -n 1)
Open commit View diff
70 A_DOMAIN=$(dig A ${DOMAIN} +short | tail -n 1)
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
71
    AAAA_DOMAIN=$(dig AAAA ${DOMAIN} +short | tail -n 1)
Open commit View diff
71 AAAA_DOMAIN=$(dig AAAA ${DOMAIN} +short | tail -n 1)
andryyy about 5 years ago 0cbd4ec

[Config, Update] Add ACME_CONTACT

Full commit hash
0cbd4ec273b9546f8a2fa247b698665a3f745109
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
72
    # Hard-fail on CAA errors for MAILCOW_HOSTNAME
Open commit View diff
72 # Hard-fail on CAA errors for MAILCOW_HOSTNAME
same change 0cbd4ec

[Config, Update] Add ACME_CONTACT

Full commit hash
0cbd4ec273b9546f8a2fa247b698665a3f745109
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
73
    PARENT_DOMAIN=$(echo ${DOMAIN} | cut -d. -f2-)
Open commit View diff
73 PARENT_DOMAIN=$(echo ${DOMAIN} | cut -d. -f2-)
same change 0cbd4ec

[Config, Update] Add ACME_CONTACT

Full commit hash
0cbd4ec273b9546f8a2fa247b698665a3f745109
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
74
    CAAS=( $(dig CAA ${PARENT_DOMAIN} +short | sed -n 's/\d issue "\(.*\)"/\1/p') )
Open commit View diff
74 CAAS=( $(dig CAA ${PARENT_DOMAIN} +short | sed -n 's/\d issue "\(.*\)"/\1/p') )
same change 0cbd4ec

[Config, Update] Add ACME_CONTACT

Full commit hash
0cbd4ec273b9546f8a2fa247b698665a3f745109
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
75
    if [[ ! -z ${CAAS} ]]; then
Open commit View diff
75 if [[ ! -z ${CAAS} ]]; then
same change 0cbd4ec

[Config, Update] Add ACME_CONTACT

Full commit hash
0cbd4ec273b9546f8a2fa247b698665a3f745109
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
76
      if [[ ${CAAS[@]} =~ "letsencrypt.org" ]]; then
Open commit View diff
76 if [[ ${CAAS[@]} =~ "letsencrypt.org" ]]; then
same change 0cbd4ec

[Config, Update] Add ACME_CONTACT

Full commit hash
0cbd4ec273b9546f8a2fa247b698665a3f745109
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
77
        log_f "Validated CAA for parent domain ${PARENT_DOMAIN}"
Open commit View diff
77 log_f "Validated CAA for parent domain ${PARENT_DOMAIN}"
same change 0cbd4ec

[Config, Update] Add ACME_CONTACT

Full commit hash
0cbd4ec273b9546f8a2fa247b698665a3f745109
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
78
      else
Open commit View diff
78 else
same change 0cbd4ec

[Config, Update] Add ACME_CONTACT

Full commit hash
0cbd4ec273b9546f8a2fa247b698665a3f745109
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
79
        log_f "Lets Encrypt disallowed for ${PARENT_DOMAIN} by CAA record"
Open commit View diff
79 log_f "Lets Encrypt disallowed for ${PARENT_DOMAIN} by CAA record"
same change 0cbd4ec

[Config, Update] Add ACME_CONTACT

Full commit hash
0cbd4ec273b9546f8a2fa247b698665a3f745109
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
80
        return 1
Open commit View diff
80 return 1
same change 0cbd4ec

[Config, Update] Add ACME_CONTACT

Full commit hash
0cbd4ec273b9546f8a2fa247b698665a3f745109
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
81
      fi
Open commit View diff
81 fi
same change 0cbd4ec

[Config, Update] Add ACME_CONTACT

Full commit hash
0cbd4ec273b9546f8a2fa247b698665a3f745109
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
82
    fi
Open commit View diff
82 fi
Carlos 8 months ago a52e977

Add DNS-01 challenge support for ACME certificates and related configurations

Full commit hash
a52e977b89d02044f901a32c1b30568d3e08bb2a
Author
Carlos <[email protected]>
Date
8 months ago
Selected line
83
Open commit View diff
83
same change a52e977

Add DNS-01 challenge support for ACME certificates and related configurations

Full commit hash
a52e977b89d02044f901a32c1b30568d3e08bb2a
Author
Carlos <[email protected]>
Date
8 months ago
Selected line
84
    if [[ ${ACME_DNS_CHALLENGE} == "y" ]]; then
Open commit View diff
84 if [[ ${ACME_DNS_CHALLENGE} == "y" ]]; then
same change a52e977

Add DNS-01 challenge support for ACME certificates and related configurations

Full commit hash
a52e977b89d02044f901a32c1b30568d3e08bb2a
Author
Carlos <[email protected]>
Date
8 months ago
Selected line
85
      log_f "ACME_DNS_CHALLENGE=y - skipping IP and HTTP validation for ${DOMAIN}"
Open commit View diff
85 log_f "ACME_DNS_CHALLENGE=y - skipping IP and HTTP validation for ${DOMAIN}"
same change a52e977

Add DNS-01 challenge support for ACME certificates and related configurations

Full commit hash
a52e977b89d02044f901a32c1b30568d3e08bb2a
Author
Carlos <[email protected]>
Date
8 months ago
Selected line
86
      return 0
Open commit View diff
86 return 0
same change a52e977

Add DNS-01 challenge support for ACME certificates and related configurations

Full commit hash
a52e977b89d02044f901a32c1b30568d3e08bb2a
Author
Carlos <[email protected]>
Date
8 months ago
Selected line
87
    fi
Open commit View diff
87 fi
Marcel Hofer almost 7 years ago 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
88
    # Check if CNAME without v6 enabled target
Open commit View diff
88 # Check if CNAME without v6 enabled target
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
89
    if [[ ! -z ${AAAA_DOMAIN} ]] && [[ -z $(echo ${AAAA_DOMAIN} | grep "^\([0-9a-fA-F]\{0,4\}:\)\{1,7\}[0-9a-fA-F]\{0,4\}$") ]]; then
Open commit View diff
89 if [[ ! -z ${AAAA_DOMAIN} ]] && [[ -z $(echo ${AAAA_DOMAIN} | grep "^\([0-9a-fA-F]\{0,4\}:\)\{1,7\}[0-9a-fA-F]\{0,4\}$") ]]; then
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
90
      AAAA_DOMAIN=
Open commit View diff
90 AAAA_DOMAIN=
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
91
    fi
Open commit View diff
91 fi
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
92
    if [[ ! -z ${AAAA_DOMAIN} ]]; then
Open commit View diff
92 if [[ ! -z ${AAAA_DOMAIN} ]]; then
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
93
      log_f "Found AAAA record for ${DOMAIN}: ${AAAA_DOMAIN} - skipping A record check"
Open commit View diff
93 log_f "Found AAAA record for ${DOMAIN}: ${AAAA_DOMAIN} - skipping A record check"
andryyy over 6 years ago 03f1739

[Compose] Update SOGo and ACME

Full commit hash
03f173905ef9523d91af8655ead4e05c7ed46c3b
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
94
      if [[ $(expand ${IPV6:-"0000:0000:0000:0000:0000:0000:0000:0000"}) == $(expand ${AAAA_DOMAIN}) ]] || [[ ${SKIP_IP_CHECK} == "y" ]] || [[ ${SNAT6_TO_SOURCE} != "n" ]]; then
Open commit View diff
94 if [[ $(expand ${IPV6:-"0000:0000:0000:0000:0000:0000:0000:0000"}) == $(expand ${AAAA_DOMAIN}) ]] || [[ ${SKIP_IP_CHECK} == "y" ]] || [[ ${SNAT6_TO_SOURCE} != "n" ]]; then
Marcel Hofer almost 7 years ago 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
95
        if verify_challenge_path "${DOMAIN}" 6; then
Open commit View diff
95 if verify_challenge_path "${DOMAIN}" 6; then
andryyy almost 6 years ago da200db

[ACME] Add more checks, avoid cert/key mismatch on some installations, fix some output

Full commit hash
da200db2d369ec667216312eab749f35494c7e6f
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
96
          log_f "Confirmed AAAA record with IP $(expand ${AAAA_DOMAIN})"
Open commit View diff
96 log_f "Confirmed AAAA record with IP $(expand ${AAAA_DOMAIN})"
Marcel Hofer almost 7 years ago 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
97
          return 0
Open commit View diff
97 return 0
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
98
        else
Open commit View diff
98 else
andryyy almost 6 years ago da200db

[ACME] Add more checks, avoid cert/key mismatch on some installations, fix some output

Full commit hash
da200db2d369ec667216312eab749f35494c7e6f
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
99
          log_f "Confirmed AAAA record with IP $(expand ${AAAA_DOMAIN}), but HTTP validation failed"
Open commit View diff
99 log_f "Confirmed AAAA record with IP $(expand ${AAAA_DOMAIN}), but HTTP validation failed"
Marcel Hofer almost 7 years ago 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
100
        fi
Open commit View diff
100 fi
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
101
      else
Open commit View diff
101 else
andryyy almost 6 years ago da200db

[ACME] Add more checks, avoid cert/key mismatch on some installations, fix some output

Full commit hash
da200db2d369ec667216312eab749f35494c7e6f
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
102
        log_f "Cannot match your IP $(expand ${IPV6:-"0000:0000:0000:0000:0000:0000:0000:0000"}) against hostname ${DOMAIN} (DNS returned $(expand ${AAAA_DOMAIN}))"
Open commit View diff
102 log_f "Cannot match your IP $(expand ${IPV6:-"0000:0000:0000:0000:0000:0000:0000:0000"}) against hostname ${DOMAIN} (DNS returned $(expand ${AAAA_DOMAIN}))"
Marcel Hofer almost 7 years ago 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
103
      fi
Open commit View diff
103 fi
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
104
    elif [[ ! -z ${A_DOMAIN} ]]; then
Open commit View diff
104 elif [[ ! -z ${A_DOMAIN} ]]; then
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
105
      log_f "Found A record for ${DOMAIN}: ${A_DOMAIN}"
Open commit View diff
105 log_f "Found A record for ${DOMAIN}: ${A_DOMAIN}"
andryyy over 6 years ago 03f1739

[Compose] Update SOGo and ACME

Full commit hash
03f173905ef9523d91af8655ead4e05c7ed46c3b
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
106
      if [[ ${IPV4:-ERR} == ${A_DOMAIN} ]] || [[ ${SKIP_IP_CHECK} == "y" ]] || [[ ${SNAT_TO_SOURCE} != "n" ]]; then
Open commit View diff
106 if [[ ${IPV4:-ERR} == ${A_DOMAIN} ]] || [[ ${SKIP_IP_CHECK} == "y" ]] || [[ ${SNAT_TO_SOURCE} != "n" ]]; then
Marcel Hofer almost 7 years ago 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
107
        if verify_challenge_path "${DOMAIN}" 4; then
Open commit View diff
107 if verify_challenge_path "${DOMAIN}" 4; then
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
108
          log_f "Confirmed A record ${A_DOMAIN}"
Open commit View diff
108 log_f "Confirmed A record ${A_DOMAIN}"
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
109
          return 0
Open commit View diff
109 return 0
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
110
        else
Open commit View diff
110 else
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
111
          log_f "Confirmed A record with IP ${A_DOMAIN}, but HTTP validation failed"
Open commit View diff
111 log_f "Confirmed A record with IP ${A_DOMAIN}, but HTTP validation failed"
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
112
        fi
Open commit View diff
112 fi
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
113
      else
Open commit View diff
113 else
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
114
        log_f "Cannot match your IP ${IPV4} against hostname ${DOMAIN} (DNS returned ${A_DOMAIN})"
Open commit View diff
114 log_f "Cannot match your IP ${IPV4} against hostname ${DOMAIN} (DNS returned ${A_DOMAIN})"
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
115
      fi
Open commit View diff
115 fi
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
116
    else
Open commit View diff
116 else
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
117
      log_f "No A or AAAA record found for hostname ${DOMAIN}"
Open commit View diff
117 log_f "No A or AAAA record found for hostname ${DOMAIN}"
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
118
    fi
Open commit View diff
118 fi
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
119
    return 1
Open commit View diff
119 return 1
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
120
}
Open commit View diff
120 }
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
121
Open commit View diff
121
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
122
verify_challenge_path(){
Open commit View diff
122 verify_challenge_path(){
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
123
  if [[ ${SKIP_HTTP_VERIFICATION} == "y" ]]; then
Open commit View diff
123 if [[ ${SKIP_HTTP_VERIFICATION} == "y" ]]; then
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
124
    echo '(skipping check, returning 0)'
Open commit View diff
124 echo '(skipping check, returning 0)'
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
125
    return 0
Open commit View diff
125 return 0
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
126
  fi
Open commit View diff
126 fi
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
127
  # verify_challenge_path URL 4|6
Open commit View diff
127 # verify_challenge_path URL 4|6
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
128
  RANDOM_N=${RANDOM}${RANDOM}${RANDOM}
Open commit View diff
128 RANDOM_N=${RANDOM}${RANDOM}${RANDOM}
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
129
  echo ${RANDOM_N} > /var/www/acme/${RANDOM_N}
Open commit View diff
129 echo ${RANDOM_N} > /var/www/acme/${RANDOM_N}
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
130
  if [[ "$(curl --insecure -${2} -L http://${1}/.well-known/acme-challenge/${RANDOM_N} --silent)" == "${RANDOM_N}"  ]]; then
Open commit View diff
130 if [[ "$(curl --insecure -${2} -L http://${1}/.well-known/acme-challenge/${RANDOM_N} --silent)" == "${RANDOM_N}" ]]; then
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
131
    rm /var/www/acme/${RANDOM_N}
Open commit View diff
131 rm /var/www/acme/${RANDOM_N}
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
132
    return 0
Open commit View diff
132 return 0
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
133
  else
Open commit View diff
133 else
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
134
    rm /var/www/acme/${RANDOM_N}
Open commit View diff
134 rm /var/www/acme/${RANDOM_N}
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
135
    return 1
Open commit View diff
135 return 1
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
136
  fi
Open commit View diff
136 fi
same change 2e35da6

[SSL] create individual domain certificates, add SNI configs for Postfix/Dovecot/Nginx

Full commit hash
2e35da681674c250238519f4a9e3e581393f50f2
Author
Marcel Hofer <[email protected]>
Date
almost 7 years ago
Selected line
137
}
Open commit View diff
137 }
FreddleSpl0it 4 months ago 127fb1e

[ACME] Skip autodiscover/mta-sts subdomains covered by wildcard certificates

Full commit hash
127fb1e8f59db602d1f51558b2babdee06ac345f
Author
FreddleSpl0it <[email protected]>
Date
4 months ago
Selected line
138
Open commit View diff
138
FreddleSpl0it 4 months ago 7817dda

[ACME] Skip subdomains covered by wildcards (DNS-01 challenge only)

Full commit hash
7817dda43fc324463506cd9014dde7dd25f1c82e
Author
FreddleSpl0it <[email protected]>
Date
4 months ago
Selected line
139
# Check if a domain is covered by a wildcard (*.example.com) in ADDITIONAL_SAN
Open commit View diff
139 # Check if a domain is covered by a wildcard (*.example.com) in ADDITIONAL_SAN
FreddleSpl0it 4 months ago 127fb1e

[ACME] Skip autodiscover/mta-sts subdomains covered by wildcard certificates

Full commit hash
127fb1e8f59db602d1f51558b2babdee06ac345f
Author
FreddleSpl0it <[email protected]>
Date
4 months ago
Selected line
140
# Usage: is_covered_by_wildcard "subdomain.example.com"
Open commit View diff
140 # Usage: is_covered_by_wildcard "subdomain.example.com"
same change 127fb1e

[ACME] Skip autodiscover/mta-sts subdomains covered by wildcard certificates

Full commit hash
127fb1e8f59db602d1f51558b2babdee06ac345f
Author
FreddleSpl0it <[email protected]>
Date
4 months ago
Selected line
141
# Returns: 0 if covered, 1 if not covered
Open commit View diff
141 # Returns: 0 if covered, 1 if not covered
FreddleSpl0it 4 months ago 7817dda

[ACME] Skip subdomains covered by wildcards (DNS-01 challenge only)

Full commit hash
7817dda43fc324463506cd9014dde7dd25f1c82e
Author
FreddleSpl0it <[email protected]>
Date
4 months ago
Selected line
142
# Note: Only returns 0 (covered) when DNS-01 challenge is enabled,
Open commit View diff
142 # Note: Only returns 0 (covered) when DNS-01 challenge is enabled,
same change 7817dda

[ACME] Skip subdomains covered by wildcards (DNS-01 challenge only)

Full commit hash
7817dda43fc324463506cd9014dde7dd25f1c82e
Author
FreddleSpl0it <[email protected]>
Date
4 months ago
Selected line
143
#       as wildcards cannot be validated with HTTP-01 challenge
Open commit View diff
143 # as wildcards cannot be validated with HTTP-01 challenge
FreddleSpl0it 4 months ago 127fb1e

[ACME] Skip autodiscover/mta-sts subdomains covered by wildcard certificates

Full commit hash
127fb1e8f59db602d1f51558b2babdee06ac345f
Author
FreddleSpl0it <[email protected]>
Date
4 months ago
Selected line
144
is_covered_by_wildcard() {
Open commit View diff
144 is_covered_by_wildcard() {
same change 127fb1e

[ACME] Skip autodiscover/mta-sts subdomains covered by wildcard certificates

Full commit hash
127fb1e8f59db602d1f51558b2babdee06ac345f
Author
FreddleSpl0it <[email protected]>
Date
4 months ago
Selected line
145
  local DOMAIN=$1
Open commit View diff
145 local DOMAIN=$1
same change 127fb1e

[ACME] Skip autodiscover/mta-sts subdomains covered by wildcard certificates

Full commit hash
127fb1e8f59db602d1f51558b2babdee06ac345f
Author
FreddleSpl0it <[email protected]>
Date
4 months ago
Selected line
146
Open commit View diff
146
FreddleSpl0it 4 months ago 7817dda

[ACME] Skip subdomains covered by wildcards (DNS-01 challenge only)

Full commit hash
7817dda43fc324463506cd9014dde7dd25f1c82e
Author
FreddleSpl0it <[email protected]>
Date
4 months ago
Selected line
147
  # Only skip if DNS challenge is enabled (wildcards require DNS-01)
Open commit View diff
147 # Only skip if DNS challenge is enabled (wildcards require DNS-01)
same change 7817dda

[ACME] Skip subdomains covered by wildcards (DNS-01 challenge only)

Full commit hash
7817dda43fc324463506cd9014dde7dd25f1c82e
Author
FreddleSpl0it <[email protected]>
Date
4 months ago
Selected line
148
  if [[ ${ACME_DNS_CHALLENGE} != "y" ]]; then
Open commit View diff
148 if [[ ${ACME_DNS_CHALLENGE} != "y" ]]; then
same change 7817dda

[ACME] Skip subdomains covered by wildcards (DNS-01 challenge only)

Full commit hash
7817dda43fc324463506cd9014dde7dd25f1c82e
Author
FreddleSpl0it <[email protected]>
Date
4 months ago
Selected line
149
    return 1
Open commit View diff
149 return 1
same change 7817dda

[ACME] Skip subdomains covered by wildcards (DNS-01 challenge only)

Full commit hash
7817dda43fc324463506cd9014dde7dd25f1c82e
Author
FreddleSpl0it <[email protected]>
Date
4 months ago
Selected line
150
  fi
Open commit View diff
150 fi
same change 7817dda

[ACME] Skip subdomains covered by wildcards (DNS-01 challenge only)

Full commit hash
7817dda43fc324463506cd9014dde7dd25f1c82e
Author
FreddleSpl0it <[email protected]>
Date
4 months ago
Selected line
151
Open commit View diff
151
FreddleSpl0it 4 months ago 127fb1e

[ACME] Skip autodiscover/mta-sts subdomains covered by wildcard certificates

Full commit hash
127fb1e8f59db602d1f51558b2babdee06ac345f
Author
FreddleSpl0it <[email protected]>
Date
4 months ago
Selected line
152
  # Return early if no ADDITIONAL_SAN is set
Open commit View diff
152 # Return early if no ADDITIONAL_SAN is set
same change 127fb1e

[ACME] Skip autodiscover/mta-sts subdomains covered by wildcard certificates

Full commit hash
127fb1e8f59db602d1f51558b2babdee06ac345f
Author
FreddleSpl0it <[email protected]>
Date
4 months ago
Selected line
153
  if [[ -z ${ADDITIONAL_SAN} ]]; then
Open commit View diff
153 if [[ -z ${ADDITIONAL_SAN} ]]; then
same change 127fb1e

[ACME] Skip autodiscover/mta-sts subdomains covered by wildcard certificates

Full commit hash
127fb1e8f59db602d1f51558b2babdee06ac345f
Author
FreddleSpl0it <[email protected]>
Date
4 months ago
Selected line
154
    return 1
Open commit View diff
154 return 1
same change 127fb1e

[ACME] Skip autodiscover/mta-sts subdomains covered by wildcard certificates

Full commit hash
127fb1e8f59db602d1f51558b2babdee06ac345f
Author
FreddleSpl0it <[email protected]>
Date
4 months ago
Selected line
155
  fi
Open commit View diff
155 fi
same change 127fb1e

[ACME] Skip autodiscover/mta-sts subdomains covered by wildcard certificates

Full commit hash
127fb1e8f59db602d1f51558b2babdee06ac345f
Author
FreddleSpl0it <[email protected]>
Date
4 months ago
Selected line
156
Open commit View diff
156
same change 127fb1e

[ACME] Skip autodiscover/mta-sts subdomains covered by wildcard certificates

Full commit hash
127fb1e8f59db602d1f51558b2babdee06ac345f
Author
FreddleSpl0it <[email protected]>
Date
4 months ago
Selected line
157
  # Extract parent domain (e.g., mail.example.com -> example.com)
Open commit View diff
157 # Extract parent domain (e.g., mail.example.com -> example.com)
same change 127fb1e

[ACME] Skip autodiscover/mta-sts subdomains covered by wildcard certificates

Full commit hash
127fb1e8f59db602d1f51558b2babdee06ac345f
Author
FreddleSpl0it <[email protected]>
Date
4 months ago
Selected line
158
  local PARENT_DOMAIN=$(echo ${DOMAIN} | cut -d. -f2-)
Open commit View diff
158 local PARENT_DOMAIN=$(echo ${DOMAIN} | cut -d. -f2-)
same change 127fb1e

[ACME] Skip autodiscover/mta-sts subdomains covered by wildcard certificates

Full commit hash
127fb1e8f59db602d1f51558b2babdee06ac345f
Author
FreddleSpl0it <[email protected]>
Date
4 months ago
Selected line
159
Open commit View diff
159
same change 127fb1e

[ACME] Skip autodiscover/mta-sts subdomains covered by wildcard certificates

Full commit hash
127fb1e8f59db602d1f51558b2babdee06ac345f
Author
FreddleSpl0it <[email protected]>
Date
4 months ago
Selected line
160
  # Check if ADDITIONAL_SAN contains a wildcard for this parent domain
Open commit View diff
160 # Check if ADDITIONAL_SAN contains a wildcard for this parent domain
same change 127fb1e

[ACME] Skip autodiscover/mta-sts subdomains covered by wildcard certificates

Full commit hash
127fb1e8f59db602d1f51558b2babdee06ac345f
Author
FreddleSpl0it <[email protected]>
Date
4 months ago
Selected line
161
  if [[ "${ADDITIONAL_SAN}" == *"*.${PARENT_DOMAIN}"* ]]; then
Open commit View diff
161 if [[ "${ADDITIONAL_SAN}" == *"*.${PARENT_DOMAIN}"* ]]; then
same change 127fb1e

[ACME] Skip autodiscover/mta-sts subdomains covered by wildcard certificates

Full commit hash
127fb1e8f59db602d1f51558b2babdee06ac345f
Author
FreddleSpl0it <[email protected]>
Date
4 months ago
Selected line
162
    return 0  # Covered by wildcard
Open commit View diff
162 return 0 # Covered by wildcard
same change 127fb1e

[ACME] Skip autodiscover/mta-sts subdomains covered by wildcard certificates

Full commit hash
127fb1e8f59db602d1f51558b2babdee06ac345f
Author
FreddleSpl0it <[email protected]>
Date
4 months ago
Selected line
163
  fi
Open commit View diff
163 fi
same change 127fb1e

[ACME] Skip autodiscover/mta-sts subdomains covered by wildcard certificates

Full commit hash
127fb1e8f59db602d1f51558b2babdee06ac345f
Author
FreddleSpl0it <[email protected]>
Date
4 months ago
Selected line
164
Open commit View diff
164
same change 127fb1e

[ACME] Skip autodiscover/mta-sts subdomains covered by wildcard certificates

Full commit hash
127fb1e8f59db602d1f51558b2babdee06ac345f
Author
FreddleSpl0it <[email protected]>
Date
4 months ago
Selected line
165
  return 1  # Not covered
Open commit View diff
165 return 1 # Not covered
same change 127fb1e

[ACME] Skip autodiscover/mta-sts subdomains covered by wildcard certificates

Full commit hash
127fb1e8f59db602d1f51558b2babdee06ac345f
Author
FreddleSpl0it <[email protected]>
Date
4 months ago
Selected line
166
}
Open commit View diff
166 }