added scripts for validating from a remote server
This commit is contained in:
		
							
								
								
									
										7
									
								
								ddns_cleanup
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								ddns_cleanup
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,7 @@
 | 
				
			|||||||
 | 
					server ns1.keybored.co
 | 
				
			||||||
 | 
					zone DOMAIN_NAME
 | 
				
			||||||
 | 
					origin DOMAIN_NAME
 | 
				
			||||||
 | 
					key home_keyboredme:G/nBHnetXDKJrKOboGkNOMyn3tOtq4aBihdMU0eqUU8=
 | 
				
			||||||
 | 
					ttl 360
 | 
				
			||||||
 | 
					del SUBDOMAIN 360 txt
 | 
				
			||||||
 | 
					send
 | 
				
			||||||
@@ -1,6 +1,7 @@
 | 
				
			|||||||
server DNS_SERVER
 | 
					server DNS_SERVER
 | 
				
			||||||
zone DOMAIN_NAME
 | 
					zone DOMAIN_NAME
 | 
				
			||||||
origin DOMAIN_NAME
 | 
					origin DOMAIN_NAME
 | 
				
			||||||
 | 
					key KNOTC_KEY
 | 
				
			||||||
ttl 360
 | 
					ttl 360
 | 
				
			||||||
del SUBDOMAIN 360 txt
 | 
					del SUBDOMAIN 360 txt
 | 
				
			||||||
send
 | 
					send
 | 
				
			||||||
							
								
								
									
										7
									
								
								ddns_update
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								ddns_update
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,7 @@
 | 
				
			|||||||
 | 
					server ns1.keybored.co
 | 
				
			||||||
 | 
					zone DOMAIN_NAME
 | 
				
			||||||
 | 
					origin DOMAIN_NAME
 | 
				
			||||||
 | 
					key home_keyboredme:G/nBHnetXDKJrKOboGkNOMyn3tOtq4aBihdMU0eqUU8=
 | 
				
			||||||
 | 
					ttl 360
 | 
				
			||||||
 | 
					add SUBDOMAIN 360 txt VALIDATION_STRING
 | 
				
			||||||
 | 
					send
 | 
				
			||||||
@@ -1,5 +1,6 @@
 | 
				
			|||||||
server DNS_SERVER
 | 
					server DNS_SERVER
 | 
				
			||||||
zone DOMAIN_NAME
 | 
					zone DOMAIN_NAME
 | 
				
			||||||
 | 
					key KNOTC_KEY
 | 
				
			||||||
origin DOMAIN_NAME
 | 
					origin DOMAIN_NAME
 | 
				
			||||||
ttl 360
 | 
					ttl 360
 | 
				
			||||||
add SUBDOMAIN 360 txt VALIDATION_STRING
 | 
					add SUBDOMAIN 360 txt VALIDATION_STRING
 | 
				
			||||||
							
								
								
									
										10
									
								
								remote-server-authenticator-hook.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										10
									
								
								remote-server-authenticator-hook.sh
									
									
									
									
									
										Executable file
									
								
							@@ -0,0 +1,10 @@
 | 
				
			|||||||
 | 
					#!/bin/bash
 | 
				
			||||||
 | 
					set -x
 | 
				
			||||||
 | 
					export CERTBOT_DOMAIN=${1}
 | 
				
			||||||
 | 
					export CERTBOT_VALIDATION=${2}
 | 
				
			||||||
 | 
					DOMAIN=$(expr match "$CERTBOT_DOMAIN" '.*\.\(.*\..*\)')
 | 
				
			||||||
 | 
					CHALLENGE_DOMAIN="_acme-challenge.${CERTBOT_DOMAIN}"
 | 
				
			||||||
 | 
					[[ -z ${DOMAIN} ]] && export DOMAIN=${CERTBOT_DOMAIN}
 | 
				
			||||||
 | 
					sed -e "s DOMAIN_NAME ${DOMAIN} g" -e "s SUBDOMAIN ${CERTBOT_DOMAIN} g" -e "s VALIDATION_STRING ${CERTBOT_VALIDATION} g" ddns_update > /tmp/certbot_ddns_update
 | 
				
			||||||
 | 
					knsupdate /tmp/certbot_ddns_update
 | 
				
			||||||
 | 
					[[ ${?} == 0 ]] && rm -f /tmp/certbot_ddns_update 
 | 
				
			||||||
							
								
								
									
										9
									
								
								remote-server-cleanup.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										9
									
								
								remote-server-cleanup.sh
									
									
									
									
									
										Executable file
									
								
							@@ -0,0 +1,9 @@
 | 
				
			|||||||
 | 
					#!/bin/bash
 | 
				
			||||||
 | 
					export CERTBOT_DOMAIN=${1}
 | 
				
			||||||
 | 
					export CERTBOT_VALIDATION=${2}
 | 
				
			||||||
 | 
					DOMAIN=$(expr match "$CERTBOT_DOMAIN" '.*\.\(.*\..*\)')
 | 
				
			||||||
 | 
					CHALLENGE_DOMAIN="_acme-challenge.${CERTBOT_DOMAIN}"
 | 
				
			||||||
 | 
					[[ -z ${DOMAIN} ]] && export DOMAIN=${CERTBOT_DOMAIN}
 | 
				
			||||||
 | 
					sed -e "s DOMAIN_NAME ${DOMAIN} g" -e "s SUBDOMAIN ${CERTBOT_DOMAIN} g" > /tmp/cerbot_ddns_cleanup
 | 
				
			||||||
 | 
					knsupdate /tmp/certbot_ddns_cleanup
 | 
				
			||||||
 | 
					[[ ${?} == 0 ]] && rm -f /tmp/certbot_ddns_cleanup
 | 
				
			||||||
		Reference in New Issue
	
	Block a user