LwM2M transport. Added serverCertificate value for X509-securityMode in Bootstrap-config.
This commit is contained in:
parent
1b488781d5
commit
b84ab58d7b
@ -112,6 +112,9 @@ export class Lwm2mDeviceConfigServerComponent implements OnInit, ControlValueAcc
|
|||||||
this.changeSecurityHostPortFields(serverSecurityConfig);
|
this.changeSecurityHostPortFields(serverSecurityConfig);
|
||||||
}
|
}
|
||||||
this.serverFormGroup.patchValue(serverSecurityConfig, {emitEvent: false});
|
this.serverFormGroup.patchValue(serverSecurityConfig, {emitEvent: false});
|
||||||
|
if (this.currentSecurityMode === Lwm2mSecurityType.X509) {
|
||||||
|
this.serverFormGroup.get('serverPublicKey').patchValue(serverSecurityConfig.serverCertificate, {emitEvent: false});
|
||||||
|
}
|
||||||
});
|
});
|
||||||
this.serverFormGroup.valueChanges.pipe(
|
this.serverFormGroup.valueChanges.pipe(
|
||||||
takeUntil(this.destroy$)
|
takeUntil(this.destroy$)
|
||||||
|
|||||||
@ -129,6 +129,7 @@ export interface ServerSecurityConfig {
|
|||||||
securityHost?: string;
|
securityHost?: string;
|
||||||
securityPort?: number;
|
securityPort?: number;
|
||||||
serverPublicKey?: string;
|
serverPublicKey?: string;
|
||||||
|
serverCertificate?: string;
|
||||||
clientHoldOffTime?: number;
|
clientHoldOffTime?: number;
|
||||||
shortServerId?: number;
|
shortServerId?: number;
|
||||||
bootstrapServerAccountTimeout: number;
|
bootstrapServerAccountTimeout: number;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user