I am developing a product using the nRF51822 BLE, I was able to interface all my peripherals and setup the softdevice stack accordingly.
Now I am looking to add a pairing and security layer on the same to start the provisioning process and make the same secure.
1. The BLE device at factory reset will be active to pair and send/ receive data via the services, These services are currently open and I used nrf connect APP to communicate, can I make then hidden so that no one else can see those?How?
2. At the time when device is not bonded with any central, what should be the architecture to enable pairing. Note that the device is headless and does not have any HMI. Is there any application note or literature that I can follow to do the same?
3. Once the pairing is complete, I want the communication to be encrypted, I guess the nordic supports AES encryption, is there any example or literature I can follow?
4. Also should the authorisation process involve a digital certifacate method to make sure the pairing is safe and avoids any MITM.
What I want exactly is to use my device over a mobile application and the pairing, communication should be secure. Any application note or literature link is highly appreciated.
Thanks and regards