Query regarding url of mfpdev server - mobilefirst-bluemix

I am creating mfpdev server, so it's asking for fully qualified url from me. And I have tried several url and its port but non of them work
URL that I tried are:-
https://mybluemixserver.mybluemix.net:9080
It's giving me an error:
Cannot connect to server 'MyBluemixSrver' at 'https://mybluemixserver.mybluemix.net:9080'.
Missing runtime configuration details.: The HTTP request has timed out.
I have tried several queries for that but nothing worked for me.

You can't use port 9080 with HTTPS...
It's either HTTP with port 9080 or HTTPS with port 443.
I guess you're referring to adding a server profile in the MobileFirst CLI. There's documentation to help you.
mfpdev help server
Documentation topic
Example:
$ mfpdev server add
? Enter the name of the new server profile: MyBluemixServer
? Enter the fully qualified URL of this server: https://mobilefoundation-7abcd-server.mybluemix.net:443
? Enter the MobileFirst Server administrator login ID: admin
? Enter the MobileFirst Server administrator password: *****
? Save the administrator password for this server?: Yes
? Enter the context root of the MobileFirst administration services: mfpadmin
? Enter the MobileFirst Server connection timeout in seconds: 30
? Make this server the default?: Yes
Verifying server configuration...
The following runtimes are currently installed on this server: mfp
Server profile 'MyBluemixServer' added successfully.

Related

tomcat localhost url return ERR_CONNECTION_REFUSED

I developed a spring MVC app in eclipse and trying to test in my laptop tomcat localhost. This URL works http://localhost:8080. It brings up the tomcat admin page. But when i call http://localhost:8080/mywebsite, as part of spring security port mapping it forwards to https://localhost:8443/mywebsite, but i get
This site can’t be reached
localhost refused to connect.
Try:
Checking the connection
Checking the proxy and the firewall
ERR_CONNECTION_REFUSED
This is definitely not firewall issue, as i uninstalled all my antivirus, disabled firewall in windows defender
I have also changed the server location to "use tomcat installation" in eclipse
I have cleaned up deployment folder multiple times and reinstalled app and restarted server multiple times. The server started successfully i can see the logs
I am using tomcat 9 and JDK-19
I dont see any calls in access logs, only a 302 when it redirects from http://localhost:8080/mywebsite to https://localhost:8443/mywebsite
I have been trying this for 2 days and it wont budge an inch. I need help please
As #nitin pointed out in the comment above, I had not configured SSL connector. My bad I thought SSl cert is not needed for localhost testing. But it is required. I following the steps in
https://medium.com/beingcoders/setup-ssl-on-apache-tomcat-in-just-10-minutes-step-by-step-guide-706484094bb2

No name matching localhost found

there
When using spring boot admin to monitor my local ssl app. it always show me the error "No name matching localhost found".
I enabled ssl communication both of my local ssl app(as admin client) and admin server app.
and admin client was successfully registered at the admin server.but once the client registered at the server. it always show the error "General SSLEngine problem" "No name matching localhost found".
I am sure that I added the client certificate as truststore to the server and added server certificate as truststore to the client. so I don't know why that error happened, can you guys give some advice? Thanks
Both sides(server, client)' public certifications need to be imported to each other.
Note: the public certification of client needs to be imported to JDK cacerts as well.

Cannot connect to Tigase Admin panel?

I am using Tigase XMPP server, Server parameters that I have set are:
Jabber domain name: chat.example.com >> this is public DNS
Administrator:admin#chat.example.com
Admin Password: tigase
After installation, I can get access to admin panel by URL: http://localhost:8080/ui/ , but unfortunately I can't login with username and password that I have created during installation process. This makes me really crazy, please help.
Point is that, I can login to the server with android client with above username and pass, also when I delete and reinstall tigase and set the domain to ip address of computer in internal network it's working, but when I use DNS I everything looks good but cannot login to admin environment with username and password.
You can find the answer at this post:
https://projects.tigase.org/boards/15/topics/6939?r=6942

While connecting two app servers with an ibm http webserver, we are able to successfully connect with only one server

While running two app servers (which has mobilefirst servers hosted 7.1 version) from ibm http server, only one server runs successfully on keeping only one of the Route attribute active in the plugin-cfg.xml of the http server. In the server which is not running, the following error is seen in the messages.log.
CWWKS4001E: The security token cannot be validated. This can be for the following reasons
1. The security token was generated on another server using different keys.
2. The token configuration or the security keys of the token service which created the token has been changed.
3. The token service which created the token is no longer available.
Kindly guide in resolving the error above.
Thanks.
Sounds like your two servers have not exchanged/shared LTPA keys and IHS and the WAS Plugin are a red herring.
http://www.ibm.com/support/knowledgecenter/SSAW57_liberty/com.ibm.websphere.wlp.nd.doc/ae/twlp_sec_ltpa.html
http://www.ibm.com/support/knowledgecenter/SSAW57_liberty/com.ibm.websphere.wlp.nd.doc/ae/twlp_sec_sso.html
Note: For SSO to work across Liberty servers, full profile servers, or both, set the following resources:
The servers must use the same LTPA keys and share the same user registry.
Sounds like communication issue between two servers. Are the inbound ports opened on another server to communicate with HTTP server? if they are opened use telnet and test whether both servers (HTTP and app server) are communicating with each other.
On HTTP Server, open command prompt and enter below command.
telnet <app server ip> <app server port>
If this is not successful then you need to open ports on app server.

Enabling remote access to Keycloak

I'm using the Keycloak authorization server in order to manage my application permissions. However, I've found out the standalone server can be accessed locally only.
http://localhost:8080/auth works, but not it does http://myhostname:8080/auth. This issue doesn't permit accessing the server from the internal network.
The standalone Keycloak server runs on the top of a JBoss Wildfly instance and this server doesn't allow accessing it externally by default, for security reasons (it should be only for the administration console, but seems to affect every url in case of Keycloak). It has to be booted with the -b=0.0.0.0 option to enable it.
However, if your Wildfly is running on a remote machine and you try to
access your administrative page through the network by it’s IP address
or hostname, let’s say, at http://54.94.240.170:8080/, you will
probably see a graceful This webpage is not available error, in
another words, Wildfly said “No, thanks, I’m not allowing requests
from another guys than the ones at my local machine”.
See also:
Enable Wildfly remote access
Wildfly remotely access administration console doesnt work
you can start keycloak server with this command
standalone.bat -b 0.0.0.0
For anyone who happens by here now, I found this in the documentation for Keycloak 8:
Users can interact with Keycloak without SSL so long as they stick to
private IP addresses like localhost, 127.0.0.1, 10.0.x.x, 192.168.x.x,
and 172.16.x.x. If you try to access Keycloak without SSL from a
non-private IP address you will get an error.
This is how you can disable it from the admin console, just click on your realm, and make the mentioned option.
Note: Don't forget the following
standalone.bat -b 0.0.0.0