# Chapter 6: Modifying sendPushes.php with a Auth Certificate instead of Auth Key

**URL:** <https://forums.kodeco.com/t/chapter-6-modifying-sendpushes-php-with-a-auth-certificate-instead-of-auth-key/80895>\
**Category:** Push Notifications by Tutorials\
**Created:** [September 4, 2019, 8:28pm UTC](https://forums.kodeco.com/t/chapter-6-modifying-sendpushes-php-with-a-auth-certificate-instead-of-auth-key/80895 "2019-09-04T20:28:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![richanetto](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/richanetto/32/81494_2.png) [@richanetto](https://forums.kodeco.com/u/richanetto)\
**Post date:** [September 4, 2019, 8:28pm UTC](https://forums.kodeco.com/t/chapter-6-modifying-sendpushes-php-with-a-auth-certificate-instead-of-auth-key/80895/1 "2019-09-04T20:28:22Z")

</div>

Hi,

I’m working through chapter 6 and am at the part where I’ve started writing the sendPushes.php script. However, I don’t have an Auth Key, instead I got an Auth Certificate and a .p12 file from Apple. Can someone guide me on how the script should be modified to work with the Certificate instead of the Key?

Thanks a lot!

---

<div class="post-metadata">

**Author:** ![gargoyle](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/gargoyle/32/107285_2.png) [@gargoyle](https://forums.kodeco.com/u/gargoyle)\
**Post date:** [September 4, 2019, 10:52pm UTC](https://forums.kodeco.com/t/chapter-6-modifying-sendpushes-php-with-a-auth-certificate-instead-of-auth-key/80895/2 "2019-09-04T22:52:50Z")

</div>

Can you explain why you want to do that? I explain in detail in the book why the key is a much better solution to use that the certificates.
