I have installed the Blackberry push SDK and I put the Tomcat in server with real IP. I used the simple sample-push-initiator and I register it in the device and it registers successfully.
The problem: when I try to send push notifications from the Tomcat server with the sample-push-initiator I get an error
ERROR: Unauthorized to communicate with the PPG at URL:
https://pushapi.eval.blackberry.com/mss/PD_pushRequest with
username: xxxxxxxx and and password: xxxxxxxxx
What causes this error and how I can resolve it?
You have to pass your username and password (from blackberry registration) with HTTP Auth Basic Method.
i.e : https://username:password#pushapi.eval.blackberry.com/mss/PD_pushRequest
Related
I'm using a u-Blox SARA-R422M8S cellular module trying to connect to Azure Iot Hub with the MQTT AT commands. The module supports MQTT 3.1.1. The login request fails with Broker connection refused, not authorized. Using the same credentials in the python example at Microsoft Azure documentation, the login succeeds and I can publish. I've uploaded the Baltimore root cert and activated the TLS for the socket, so this seems ok as well as I get another error code elsewise.
Anyone experienced similar?
PS, here are the AT commands used:
AT+USECPRF=0
AT+USECPRF=0,0,1
AT+USECPRF=0,3,"root_ca"
AT+UPSD=0,0,0
AT+UPSD=0,100,1
AT+UMQTT=11,1,0
AT+UMQTT=2,".azure-devices.net",8883
AT+UMQTT=4,"myhub.azure-devices.net/mydev/?api-version=2018-06-30","mysas""
As per the docs:
For the ClientId field, use the deviceId.
So you need to set the Client ID with something like:
AT+UMQTT=0,"mydev"
I am trying to deploy iOS application automatically with fastlane under CircleCI. Unfortunately it wants 2-factor authentication. I am trying to do on my development machine:
fastlane spaceauth -u my#email.com
and it sends me code by mobile phone, i.e. password is correct and valid. Unfortunately, after I enter the code, it says me
Requesting session...
Could not login to App Store Connect
Please check your credentials and try again.
This could be an issue with App Store Connect,
Please try unsetting the FASTLANE_SESSION environment variable
(if it is set) and re-run `fastlane spaceauth`
Exception type: Spaceship::AccessForbiddenError
How to fix that?
I can't login to WSO2 API Manager after installation.
I perform the installation as indicated in these steps: https://wso2.com/api-management/install/docker-compose/get-started/
API Manager for Docker Compose.
According to the instructions:
Running the product: Once WSO2 API Manager is successfully deployed,
access the following URLs on your favorite web browser using the
credentials username: admin and password: admin.
Try to login in https://localhost:9443/carbon/admin/login.jsp
I try, using user: admin password: admin, but I have this error message in the log:
api-manager_1 | [2021-02-20 03:19:36,643] ERROR - AuthenticationAdmin System error while Authenticating/Authorizing User : java.sql.SQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 3 times. Giving up.
What am I doing wrong? thanks in advance.
I'm trying to send email with TIdSMTP, Indy10, using the Office365.com server
from a Windows service application.
I use:
Server name: smtp.office365.com
Port: 587
Encryption method: STARTTLS
I use 1.0.2 version of libeay32.dll and ssleay32.dll.
They are located in the same directory with the application.
If the windows service application runs under the "Local System Account" credentials, I receive the "Invalid domain name [xxxx.xxxx.OUTLOOK.COM]" error message.
If the application runs as an application or as a Windows service, but with a user's credentials the email is transmitted.
What could it be?
Thanks,
Tiberiu Stoicescu
I am unable to get Jenkins to build based on an email using the poll-mailbox-trigger plugin
My setup in E-mail Notification is as follows
SMTP server: myExchangeServerHostName
Default user e-mail suffix: #companyName.com
Use SMTP Authentication: True
User Name: DOMAIN\user
Password: aboveUserPassword
Use SSL: False
SMTP Port: 587
Reply-To Address:
Charset: UTF-8
From here I can successfully send a test email to myself and I receive it.
In my build the Poll Mailbox Trigger settings are as follows
Host: myExchangeServerHostName
Username: DOMAIN\user
Password: aboveUserPassword
Advanced Email Properties:
mail.imaps.port=587
mail.imap.ssl.enable=true
mail.imap.starttls.enable=true
Schedule: H/5 * * * *
When Testing this connection I get
Connecting to the mailbox...
Error : javax.mail.MessagingException: Unrecognized SSL message, plaintext connection?;
nested exception is:
javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:665)
I have tried
mail.imap.ssl.enable=false
using the email address instead of the domain\user
adding mail.imaps.ssl.trust=*
None of the above seem to make any difference.
SMTP protocol is for sending and relaying mails. With this protocol one cannot retrieve mails from a particular mailbox. Whereas IMAP and POP3 protocols can retrieve mails.Therefore you will have to obtain access to the IMAP or POP3 server in order to retrieve mails. The poll mailbox trigger plugin of jenkins tries to connect to mailbox via IMAP store. If the mail server is using HTTPS protocol like in an Exchange server, you can write a powershell utility using Microsoft EWS managed api, to retrieve mails and plug that utility into jenkins. Also, Powershell scripts can be included in batch scripts as well which can then be included in jenkins.
The problem might relate to the certificate on the mail server (self signed one, and not recognized by Jenkins and the plugin), so registering the certificate to your trustStore would help.
I found 2 working solutions:
Add the certificate of your mail server, following 'Highway of Life' instruction in Jenkins "unable to find valid certification path to requested target" error while importing Git repository
Change trustStoreType to Windows-Root so Jenkins would use the same certificate source as your browser, answer from 'Nux' here, How to configure trustStore for javax.net.ssl.trustStore on windows?
Note: solution 1), there were same answer but exporting the certificate from browser instead of using 'openssl', somehow it did not work for me or I did it wrong. So you may try both.