All Apps and Add-ons

Why am I unable to auto generate a certificate in "Splunk Add-on for Microsoft Cloud Services" Add-on.?

bmanan7
New Member

I installed this add-on(Splunk Add-on for Microsoft Cloud Services) and configured it for my cloud instance. However, when I am trying to generate a new certificate I am getting the error below.

"Error in generating the certificate.". I have no clue why I am getting this error.
I have blank certificate in "/opt/splunk/etc/apps/Splunk_TA_microsoft-cloudservices/default/splunk_ta_ms_o365_server_certificate.conf" file.

Can someone please help me with the solutions/workaround if someone has faced this error before in any cloud instance?

0 Karma
1 Solution

jconger
Splunk Employee
Splunk Employee

You may want to run a search on the _internal index to get some more clues. Something like this:

index=_internal source=*microsoft* error

Having a blank /opt/splunk/etc/apps/Splunk_TA_microsoft-cloudservices/default/splunk_ta_ms_o365_server_certificate.conf file is expected behavior.

Once you successfully generate a certificate, the details will be stored in /opt/splunk/etc/apps/Splunk_TA_microsoft-cloudservices/local/splunk_ta_ms_o365_server_certificate.conf (notice the change in path to local). Here is what my file in local looks like:

[certificate]
disabled = 0
manifest_json = {"keyCredentials": [{"keyId": "***", "type": "AsymmetricX509Cert", "customKeyIdentifier": "***", "value": "---", "usage": "Verify"}]}
private_key = ********
status = generated_valid
last_verified_time = 2018-04-03 17:43:22 CDT

View solution in original post

0 Karma

jconger
Splunk Employee
Splunk Employee

You may want to run a search on the _internal index to get some more clues. Something like this:

index=_internal source=*microsoft* error

Having a blank /opt/splunk/etc/apps/Splunk_TA_microsoft-cloudservices/default/splunk_ta_ms_o365_server_certificate.conf file is expected behavior.

Once you successfully generate a certificate, the details will be stored in /opt/splunk/etc/apps/Splunk_TA_microsoft-cloudservices/local/splunk_ta_ms_o365_server_certificate.conf (notice the change in path to local). Here is what my file in local looks like:

[certificate]
disabled = 0
manifest_json = {"keyCredentials": [{"keyId": "***", "type": "AsymmetricX509Cert", "customKeyIdentifier": "***", "value": "---", "usage": "Verify"}]}
private_key = ********
status = generated_valid
last_verified_time = 2018-04-03 17:43:22 CDT
0 Karma

bmanan7
New Member

Hi @jconger,

Thanks for quick response. That search query would definitely help to figure out the problem.
But I was facing this error as there were some issues with the bundle of the app itself. I re-installed it from the splunkbase after removing the app and it worked for me. However who so ever is facing this problem please use the search query or go through the logs which will help to figure out the problem.

0 Karma

p_gurav
Champion

bmanan7
New Member

Yes, I have followed all the steps as mentioned in the doc.

0 Karma
Get Updates on the Splunk Community!

Automatic Discovery Part 1: What is Automatic Discovery in Splunk Observability Cloud ...

If you’ve ever deployed a new database cluster, spun up a caching layer, or added a load balancer, you know it ...

Real-Time Fraud Detection: How Splunk Dashboards Protect Financial Institutions

Financial fraud isn't slowing down. If anything, it's getting more sophisticated. Account takeovers, credit ...

Splunk + ThousandEyes: Correlate frontend, app, and network data to troubleshoot ...

 Are you tired of troubleshooting delays caused by siloed frontend, application, and network data? We've got a ...