mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-10-30 18:07:52 +00:00
Compare commits
7 Commits
14493
...
v4.1.0-rc3
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7dd139cf3b | ||
|
|
544b687f46 | ||
|
|
c27b015a63 | ||
|
|
02c2e6945b | ||
|
|
462ff4f813 | ||
|
|
71b738f8ee | ||
|
|
4ad04c7948 |
@@ -49,10 +49,12 @@ function detect_certificate_type() {
|
|||||||
let issuer = pipe.read("all");
|
let issuer = pipe.read("all");
|
||||||
pipe.close();
|
pipe.close();
|
||||||
|
|
||||||
if (!match(issuer, /Telecom Infra Project Issuing CA/)) {
|
if (match(issuer, /OpenLAN Demo Birth CA/)) {
|
||||||
ulog(LOG_INFO, 'Certificate type is "Demo" \n');
|
ulog(LOG_INFO, 'Certificate type is "Demo" \n');
|
||||||
cds_server = 'discovery-qa.open-lan.org';
|
cds_server = 'discovery-qa.open-lan.org';
|
||||||
timeouts.expiry_threshold = 3 * 24 * 60 * 60;
|
timeouts.expiry_threshold = 3 * 24 * 60 * 60;
|
||||||
|
} else if (match(issuer, /OpenLAN Birth Issuing CA/)) {
|
||||||
|
ulog(LOG_INFO, 'Certificate type is "Production"\n');
|
||||||
} else {
|
} else {
|
||||||
ulog(LOG_INFO, 'Certificate type is "TIP"\n');
|
ulog(LOG_INFO, 'Certificate type is "TIP"\n');
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,9 +16,11 @@ function set_est_server() {
|
|||||||
let issuer = pipe.read("all");
|
let issuer = pipe.read("all");
|
||||||
pipe.close();
|
pipe.close();
|
||||||
|
|
||||||
if (!match(issuer, /Telecom Infra Project Issuing CA/)) {
|
if (match(issuer, /OpenLAN Demo Birth CA/)) {
|
||||||
ulog(LOG_INFO, 'Certificate type is "Demo" \n');
|
ulog(LOG_INFO, 'Certificate type is "Demo" \n');
|
||||||
est_server = 'qaest.certificates.open-lan.org:8001';
|
est_server = 'qaest.certificates.open-lan.org:8001';
|
||||||
|
} else if (match(issuer, /OpenLAN Birth Issuing CA/)) {
|
||||||
|
ulog(LOG_INFO, 'Certificate type is "Production"\n');
|
||||||
} else {
|
} else {
|
||||||
ulog(LOG_INFO, 'Certificate type is "TIP"\n');
|
ulog(LOG_INFO, 'Certificate type is "TIP"\n');
|
||||||
}
|
}
|
||||||
@@ -165,7 +167,7 @@ function fwtool() {
|
|||||||
let issuer = pipe.read("all");
|
let issuer = pipe.read("all");
|
||||||
pipe.close();
|
pipe.close();
|
||||||
|
|
||||||
if (!(match(issuer, /OpenLAN/) && match(issuer, /Birth CA/)))
|
if (!(match(issuer, /OpenLAN/) && match(issuer, /Birth/)))
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
ulog(LOG_INFO, 'The issuer is insta\n');
|
ulog(LOG_INFO, 'The issuer is insta\n');
|
||||||
|
|||||||
Reference in New Issue
Block a user