mirror of
				https://github.com/Telecominfraproject/wlan-cloud-ucentralgw.git
				synced 2025-10-30 02:12:29 +00:00 
			
		
		
		
	New certificate creation scripts
This commit is contained in:
		
							
								
								
									
										3
									
								
								cert_scripts/clean.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										3
									
								
								cert_scripts/clean.sh
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,3 @@ | ||||
| #!/bin/bash | ||||
|  | ||||
| rm *.pem *.csr | ||||
							
								
								
									
										14
									
								
								cert_scripts/create_certificates.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										14
									
								
								cert_scripts/create_certificates.sh
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,14 @@ | ||||
| #!/bin/bash | ||||
|  | ||||
| howmany=10 | ||||
| cert_life=365 | ||||
| subject="/C=CA/ST=British Columbia/L=Vancouver/O=Arilia Wireless/OU=Engineering/CN=ucentral/emailAddress=support@example.com" | ||||
|  | ||||
| openssl genrsa -out server-key.pem 2048 | ||||
| openssl req -new -key server-key.pem -subj "$subject" -out server.csr | ||||
| openssl x509 -req -days $cert_life -in server.csr -signkey server-key.pem -out server-cert.pem | ||||
|  | ||||
| for i in `eval echo {0..$howmany}` | ||||
| do | ||||
|   openssl x509 -signkey server-key.pem -in server.csr -req -days $cert_life -out dev-$i-cert.pem | ||||
| done | ||||
		Reference in New Issue
	
	Block a user
	 stephb9959
					stephb9959