mirror of
https://github.com/Telecominfraproject/wlan-cloud-ucentralgw.git
synced 2025-10-29 18:02:27 +00:00
create-certificates: Use 'hostname' intead of hard-coded ucentral
This lets the keys work on my machine, who's hostname was not ucentral Signed-off-by: Ben Greear <greearb@candelatech.com>
This commit is contained in:
@@ -1,8 +1,9 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
hn=$(hostname)
|
||||||
howmany=10
|
howmany=10
|
||||||
cert_life=365
|
cert_life=365
|
||||||
subject="/C=CA/ST=British Columbia/L=Vancouver/O=Arilia Wireless/OU=Engineering/CN=ucentral/emailAddress=support@example.com"
|
subject="/C=CA/ST=British Columbia/L=Vancouver/O=Arilia Wireless/OU=Engineering/CN=$hn/emailAddress=support@example.com"
|
||||||
|
|
||||||
openssl genrsa -out server-key.pem 2048
|
openssl genrsa -out server-key.pem 2048
|
||||||
openssl req -new -key server-key.pem -subj "$subject" -out server.csr
|
openssl req -new -key server-key.pem -subj "$subject" -out server.csr
|
||||||
|
|||||||
Reference in New Issue
Block a user