-
Copy the sample
client.crt
&client.key
to core's buildbin
folder and remove the existingmycert.pem
&mykey.pem
certificates -
Update
CertificatePath
&KeyPath
insmartDeviceLink.ini
to match the files names
CertificatePath = client.crt
KeyPath = client.key
- Turn off
VerifyPeer
insmartDeviceLink.ini
VerifyPeer = false
- Run
c_rehash
in core's buildbin
folder
$ c_rehash .
- Add
sdl_security
module tobuild.gradle
implementation (project(path: ':sdl_security')) {
transitive = false
}
Note: Use sdl_security_se
instead of sdl_security
for cloud apps
- Set
SdlSecurity
class in theSdlManager
's builder
List<Class<? extends SdlSecurityBase>> secList = new ArrayList<>();
secList.add(SdlSecurity.class);
builder.setSdlSecurity(secList, null);
- Update the SDL Server endpoint in
Constants.java
to download the certificate. Also the certificate passphrase should be updated
Note: For testing purposes only, you can use the sample JSON response file with an api mocking service like mocky.io
. If you want to use the sample response, the appId
for your sdl app should be set to caaf9c76-5a2e-4fa6-af4d-81279de9ca8c
. And the passphrase should be set to CERT_PASS = "password"
- Use a feature that uses encryption (like RPC protection or encrypted video streaming)