I am not familiar with the technology with what you are trying to integrate, but below is a guide on how to generate a custom SSC(Self-Signed Cert) on a device:
#conf t
#hostname DEVICE01 -NOTE: Must not be changed
#ip domain-name test.local
#crypto key generate rsa general-keys label SSC_KEY modulus 2048
#crypto pki trustpoint SSC_LOCAL
#subject-name CN=DEVICE,DC=test,DC=local
#enrollment selfsigned
#revocation-check crl
#rsakeypair SSC_KEY 2048
#crypto ca enroll SSC_LOCAL -HIDDEN COMMAND: Initiate SSC Creation
% Include the router serial number in the subject name? [yes/no]: no
% Include an IP address in the subject name? [no]:
% Generate Self Signed Router Certificate? [yes/no]: yes
Router Self Signed Certificate successfully created
After this make sure you do NOT change the hostname of the device :)