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!

[Puzzles] Solve, Learn, Repeat: Character substitutions with Regular Expressions

This challenge was first posted on Slack #puzzles channelFor BORE at .conf23, we had a puzzle question which ...

Shape the Future of Splunk: Join the Product Research Lab!

Join the Splunk Product Research Lab and connect with us in the Slack channel #product-research-lab to get ...

Auto-Injector for Everything Else: Making OpenTelemetry Truly Universal

You might have seen Splunk’s recent announcement about donating the OpenTelemetry Injector to the ...