Please excuse our look. We're just getting started here.
Want to learn more about Twilio Forums? Check out our FAQ page here.Passing IOS Certificate as https request param for credential api- Java
Hello Team,
I am trying to pass the ios certificate to create a push credential. I have stripped the header part "-----BEGIN CERTIFICATE-----" and tried passing it as single line as a param in the credential api request.
I am getting could not parse certificate error.
Can you please let us know, how can i pass the ios certificate in the request param.
Answers
-
Hi @Matchendran , uhm this is a tricky one, but I’m afraid the “-----BEGIN CERTIFICATE-----” tag is still required.
Here is an example of this configuration using the console: https://www.twilio.com/docs/notify/configure-ios-push-notifications#3-create-a-credential-for-twilio
And when using the API https://www.twilio.com/docs/notify/api/credential-resource#create-a-credential-resource , check fields Certificate and Private key.
I hope this helps!✨
-
Thanks @sbrijmohan . Issue I am having is, I need to pass the Certificate as a String in the API request. Certificate and PrivateKey comes as a paragraph with newline characters.
I have two possibilities.
1) I can change the newline as "\n" and try that as String parameter
2) Remove the lines in the paragraph and make it as single line and try it.
I have tried both, it's not working. I will try once with the tags. Please let me know.Any help would be appreciated.
Categories
- 83 All Categories
- 19 SIGNAL 2021
- 376 Product Discussions
- 7 Community - Announcements
- 2 Changelog
- 4 Forum UI Updates
- 8 Welcome Guide
- 6 Community - Events
- 2 Twilio Relay Developer Conference 2021 Mega Thread
- 1 External Community Events
- 25 Inspiration
- 17 Community - Other Discussions
- 1 Community- Twilio Startups