Discussion Forums  >  Grunts, Groans, Complaints

Replies: 5    Views: 112

RussFAR
Aspiring developer
Profile
Posts: 57
Reg: Jan 03, 2014
Buffalo, NY
4,320
01/25/14 11:29 AM (6 years ago)

.pem files not uploading in control panel

Tried both control panels (self hosted and bt) I have tried 2 ways to prepare the file (online and in terminal) neither take on either panel. It just errors saying not a pen file when it is. Desperately seeking solution for push notifications....
 
WolfTimJ
buzztouch Evangelist
Profile
Posts: 804
Reg: Feb 20, 2011
Rockwall, TX
17,340
like
01/25/14 02:09 PM (6 years ago)
Advanced search for .pem, you would find this forum post I did a while back...

FIXED:

In BT-server/bt_v15/bt_app

change line 431 of file: bt_pushNotifications.php

<<OLD>>
//if(strtolower($userfile_type) != "application/octet-stream" || strtolower($file_ext) != "pem"){


<<NEW>>

if(strtolower($userfile_type) != "application/x-x509-ca-cert" || strtolower($file_ext) != "pem"){


If you want to see how the old code was broken; I inserted this line to get visible output in the control panel that showed what the variables were set to. It was then apparent where the mismatch was:

$strMessage = "<br/>file_ext is: " . $file_ext . " filename is: " . $filename . " userfile_type is: " . $userfile_type;

-Tim
 
RussFAR
Aspiring developer
Profile
Posts: 57
Reg: Jan 03, 2014
Buffalo, NY
4,320
like
01/25/14 06:38 PM (6 years ago)
fixed!
 
thegibcoyote
Apple Fan
Profile
Posts: 139
Reg: Feb 01, 2011
Gibraltar
1,390
like
02/01/14 03:41 AM (6 years ago)
RussFAR how did you manage to load the .pem file in control panel I have same issue
 
autopilot
Apple Fan
Profile
Posts: 28
Reg: Feb 08, 2013
Hornsby Heights
2,980
like
02/14/14 11:54 PM (6 years ago)
Me too - not fixed on buzz touch site !
 
thegibcoyote
Apple Fan
Profile
Posts: 139
Reg: Feb 01, 2011
Gibraltar
1,390
like
02/15/14 07:35 AM (6 years ago)
I managed to upload using windows machine and Google Chrome. Failed on my MAC and Safari or any other browser.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.