mirror of
				https://github.com/samply/bridgehead.git
				synced 2025-11-04 04:50:17 +01:00 
			
		
		
		
	WIP: Beam Pem Check
This commit is contained in:
		@@ -52,11 +52,6 @@ if [ ! -e "certs/traefik.crt" ]; then
 | 
				
			|||||||
  openssl req -x509 -newkey rsa:4096 -nodes -keyout certs/traefik.key -out certs/traefik.crt -days 3650 -subj "/CN=$HOST"
 | 
					  openssl req -x509 -newkey rsa:4096 -nodes -keyout certs/traefik.key -out certs/traefik.crt -days 3650 -subj "/CN=$HOST"
 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if [ ! -e "etc/bridgehead/pki/*.priv.pem" ]; then
 | 
					 | 
				
			||||||
    log ERROR "Privaste certificsate for beam is missing"
 | 
					 | 
				
			||||||
    exit 1
 | 
					 | 
				
			||||||
fi
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
if [ -e /etc/bridgehead/vault.conf ]; then
 | 
					if [ -e /etc/bridgehead/vault.conf ]; then
 | 
				
			||||||
	if [ "$(stat -c "%a %U" /etc/bridgehead/vault.conf)" != "600 bridgehead" ]; then
 | 
						if [ "$(stat -c "%a %U" /etc/bridgehead/vault.conf)" != "600 bridgehead" ]; then
 | 
				
			||||||
		log ERROR "/etc/bridgehead/vault.conf has wrong owner/permissions. To correct this issue, run chmod 600 /etc/bridgehead/vault.conf && chown bridgehead /etc/bridgehead/vault.conf."
 | 
							log ERROR "/etc/bridgehead/vault.conf has wrong owner/permissions. To correct this issue, run chmod 600 /etc/bridgehead/vault.conf && chown bridgehead /etc/bridgehead/vault.conf."
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user