tls: improve createSecureContext in _tls_common
Checklist
-
make -j8 test
(UNIX), orvcbuild test nosign
(Windows) passes -
commit message follows commit guidelines
Affected core subsystem(s)
tls
Description of change
The createSecureContext function is using let in for loop, to keep coding consistence inside that function, update to use let/const, too.