mirror of
				https://github.com/telekom-security/tpotce.git
				synced 2025-11-04 06:22:54 +00:00 
			
		
		
		
	
		
			
	
	
		
			13 lines
		
	
	
	
		
			227 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
		
		
			
		
	
	
			13 lines
		
	
	
	
		
			227 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
| 
								 | 
							
								#!/bin/bash
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								# Got root?
							 | 
						||
| 
								 | 
							
								myWHOAMI=$(whoami)
							 | 
						||
| 
								 | 
							
								if [ "$myWHOAMI" != "root" ]
							 | 
						||
| 
								 | 
							
								  then
							 | 
						||
| 
								 | 
							
								    echo "Need to run as root ..."
							 | 
						||
| 
								 | 
							
								    exit
							 | 
						||
| 
								 | 
							
								fi
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								openssl req -nodes -x509 -sha512 -newkey rsa:8192 -keyout "nginx.key" -out "nginx.crt" -days 3650
							 | 
						||
| 
								 | 
							
								
							 |