mirror of
https://github.com/jollyjinx/AppleMobileConfigForEAPWiFi.git
synced 2025-05-11 15:57:20 +00:00
commit
d828f3975e
11
.gitignore
vendored
11
.gitignore
vendored
@ -1,4 +1,15 @@
|
|||||||
|
# macOS Resource Forks
|
||||||
|
.DS_Store
|
||||||
|
.DS_Store?
|
||||||
|
._*
|
||||||
|
.Spotlight-V100
|
||||||
|
.Trashes
|
||||||
|
ehthumbs.db
|
||||||
|
Thumbs.db
|
||||||
|
|
||||||
|
# Outputs/certs
|
||||||
certs/
|
certs/
|
||||||
*.pfx
|
*.pfx
|
||||||
*.crt
|
*.crt
|
||||||
*.pem
|
*.pem
|
||||||
|
*.mobileconfig
|
||||||
|
10
build.sh
10
build.sh
@ -1,17 +1,17 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#
|
#
|
||||||
#update these variables accordingly:
|
#update these variables accordingly
|
||||||
|
|
||||||
udmproaddress=plt-udm
|
udmproaddress=192.168.1.1
|
||||||
country=DE
|
country=DE
|
||||||
organisation='Jollys Network'
|
organisation='My Private Network'
|
||||||
certificatename='HomePod'
|
certificatename='HomePod'
|
||||||
password='password'
|
password='password'
|
||||||
|
|
||||||
scp -r root@${udmproaddress}:/mnt/data/udapi-config/raddb/certs certs
|
scp -r root@${udmproaddress}:/data/udapi-config/raddb/certs .
|
||||||
|
|
||||||
cd certs
|
cd certs
|
||||||
openssl req -subj "/C=${country}/O=${organisation}/CN=${certificatename}" -out myclient.csr -new -newkey rsa:4096 -nodes -keyout myclient.key
|
openssl req -subj "/C=${country}/O=${organisation}/CN=${certificatename}" -out myclient.csr -new -newkey rsa:4096 -nodes -keyout myclient.key
|
||||||
openssl x509 -req -days 365 -in myclient.csr -CA server.pem -CAkey server-key.pem -CAcreateserial -out myclient.crt -sha256
|
openssl x509 -req -days 365 -in myclient.csr -CA server.pem -CAkey server-key.pem -CAcreateserial -out myclient.crt -sha256
|
||||||
openssl pkcs12 -passout "pass:${password}" -export -in myclient.crt -inkey myclient.key -out ../"${certificatename} Certificate.pfx"
|
openssl pkcs12 -passout "pass:${password}" -export -in myclient.crt -inkey myclient.key -out ../"${certificatename} Certificate.pfx" -legacy # -legacy Required to enter password in Apple Configurator
|
||||||
cp server.pem ../"Radius Server Certificate.crt"
|
cp server.pem ../"Radius Server Certificate.crt"
|
||||||
|
@ -30,7 +30,7 @@ Be aware that this process has to be done every time your server certificate cha
|
|||||||
```bash
|
```bash
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#
|
#
|
||||||
#update this variables accordingly
|
#update these variables accordingly
|
||||||
|
|
||||||
udmproaddress=192.168.1.1
|
udmproaddress=192.168.1.1
|
||||||
country=DE
|
country=DE
|
||||||
@ -38,12 +38,12 @@ organisation='My Private Network'
|
|||||||
certificatename='HomePod'
|
certificatename='HomePod'
|
||||||
password='password'
|
password='password'
|
||||||
|
|
||||||
scp -r root@${udmproaddress}:/mnt/data/udapi-config/raddb/certs certs
|
scp -r root@${udmproaddress}:/data/udapi-config/raddb/certs .
|
||||||
|
|
||||||
cd certs
|
cd certs
|
||||||
openssl req -subj "/C=${country}/O=${organisation}/CN=${certificatename}" -out myclient.csr -new -newkey rsa:4096 -nodes -keyout myclient.key
|
openssl req -subj "/C=${country}/O=${organisation}/CN=${certificatename}" -out myclient.csr -new -newkey rsa:4096 -nodes -keyout myclient.key
|
||||||
openssl x509 -req -days 365 -in myclient.csr -CA server.pem -CAkey server-key.pem -CAcreateserial -out myclient.crt -sha256
|
openssl x509 -req -days 365 -in myclient.csr -CA server.pem -CAkey server-key.pem -CAcreateserial -out myclient.crt -sha256
|
||||||
openssl pkcs12 -passout "pass:${password}" -export -in myclient.crt -inkey myclient.key -out ../"${certificatename} Certificate.pfx"
|
openssl pkcs12 -passout "pass:${password}" -export -in myclient.crt -inkey myclient.key -out ../"${certificatename} Certificate.pfx" -legacy # -legacy Required to enter password in Apple Configurator
|
||||||
cp server.pem ../"Radius Server Certificate.crt"
|
cp server.pem ../"Radius Server Certificate.crt"
|
||||||
```
|
```
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user