| 
				
			 | 
			
			
				@@ -33,6 +33,12 @@ 
			 | 
		
	
		
			
			| 
				33
			 | 
			
				33
			 | 
			
			
				 # along with this program. If not, see <http://www.gnu.org/licenses/>. 
			 | 
		
	
		
			
			| 
				34
			 | 
			
				34
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				35
			 | 
			
				35
			 | 
			
			
				 USERNAME= 
			 | 
		
	
		
			
			| 
				
			 | 
			
				36
			 | 
			
			
				+COUNTRY_CODE="US" 
			 | 
		
	
		
			
			| 
				
			 | 
			
				37
			 | 
			
			
				+AREA="Free Speech Zone" 
			 | 
		
	
		
			
			| 
				
			 | 
			
				38
			 | 
			
			
				+LOCATION="Freedomville" 
			 | 
		
	
		
			
			| 
				
			 | 
			
				39
			 | 
			
			
				+ORGANISATION="Freedombone" 
			 | 
		
	
		
			
			| 
				
			 | 
			
				40
			 | 
			
			
				+UNIT="Freedombone Unit" 
			 | 
		
	
		
			
			| 
				
			 | 
			
				41
			 | 
			
			
				+EXTENSIONS="" 
			 | 
		
	
		
			
			| 
				36
			 | 
			
				42
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				37
			 | 
			
				43
			 | 
			
			
				 function show_help { 
			 | 
		
	
		
			
			| 
				38
			 | 
			
				44
			 | 
			
			
				     echo '' 
			 | 
		
	
	
		
			
			| 
				
			 | 
			
			
				@@ -95,7 +101,7 @@ chmod 600 /etc/dovecot/passwd-file 
			 | 
		
	
		
			
			| 
				95
			 | 
			
				101
			 | 
			
			
				 freedombone-addcert -h $USERNAME 
			 | 
		
	
		
			
			| 
				96
			 | 
			
				102
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				97
			 | 
			
				103
			 | 
			
			
				 # create a certificate request 
			 | 
		
	
		
			
			| 
				98
			 | 
			
				
			 | 
			
			
				-openssl req -new -sha256 -key /etc/ssl/private/$USERNAME.key -out /etc/ssl/requests/$USERNAME.csr 
			 | 
		
	
		
			
			| 
				
			 | 
			
				104
			 | 
			
			
				+openssl req -new -sha256 -subj "/O=$ORGANISATION/OU=$UNIT/C=$COUNTRY_CODE/ST=$AREA/L=$LOCATION/CN=$USERNAME" -key /etc/ssl/private/$USERNAME.key -out /etc/ssl/requests/$USERNAME.csr 
			 | 
		
	
		
			
			| 
				99
			 | 
			
				105
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				100
			 | 
			
				106
			 | 
			
			
				 # sign the certificate request 
			 | 
		
	
		
			
			| 
				101
			 | 
			
				107
			 | 
			
			
				 openssl ca -config /etc/ssl/dovecot-ca.cnf -in /etc/ssl/requests/$USERNAME.csr -out /etc/ssl/certs/$USERNAME.cer 
			 |