B4J Tutorial [Server] SSL Connections - Erel    
Mar 13, 2025   
(15 reactions)   
tags: B4J, ports SSL article to learn more about HTTPS: http://en.wikipedia.org/wiki/HTTP_Secure
SSL connections... configuration is done with SslConfiguration object. This code should be called before the server is stared.
Private Sub ConfigureSSL (SslPort As Int)
'example of SSL connector configuration
Dim ssl As SslConfiguration
ssl.Initialize
ssl.SetKeyStorePath(File.DirApp, "test2.keystore") 'path to keystore file
ssl.KeyStorePassword = "123456"
ssl...
B4J Library [server] LetsEncrypt SSL certificates - Erel    
Mar 3, 2024   
(23 reactions)LetsEncrypt provides SSL certificates for free. The certificates are created and renewed using...'t close to its expiration date.
Using OpenSSL + Java keytool to convert the certificate to a Java...
link:
But ConfigureSSL has me stumped - the above documentation of Erel's implies it is placed in...
link: port 443 (SSL) or 80 outside and inside the homelab according to the domain name it diverts...
link:
OK, but what about ConfigureSSL? Where does it go? What calls it?
Before NginxProxyManager and...
B4J Library ABKeystoreSSL: SSL Certificate generator using Let's Encrypt - alwaysbusy    
Nov 8, 2024   
(17 reactions)This library allows you to generate SSL Certificates without the need of using the openssl and....com/ABKeystoreSSL1.08b.zip
Save the generated user.key and domain.key in a secure place! IF... instead)
ABKeystoreSSL
Author: Alain Bailleul
Version: 1.07
ABKeystoreSSL
Functions:
GenerateJKS... (SslConfiguration As SslContextFactory)
Reloads the SslConfiguration of the jServer
Based...
Public ABM As ABMaterial 'ignore
' JKS variables
Public JKS As ABKeystoreSSL
Public...
B4J Code Snippet [B4X] Trust all SSL Socket - Erel    
Apr 21, 2021   
(7 reactions)   
tags: B4X Trust all SSL SocketPlatforms: B4J (1st post) and B4A (2nd post)
This code creates an SSL socket that doesn't verify the server certificate.
Depends on jNet / Net and JavaObject libraries.
Private Sub CreateTrustAllSSLSocket (EventName As String) As Socket
Dim socket As Socket
socket.Initialize(EventName... As JavaObject
SSLContext = SSLContext.InitializeStatic("javax.net.ssl.SSLContext").RunMethod... java.base/sun.security.ssl=b4j
...
Wish Access to sslFactory in jServer or implementation of SslContextFactory reload - OliverA    
Feb 25, 2021   
(1 reaction)Looks like Jetty supports "hot loading" of the keystore used for HTTPS connections (necessary when trying to update certificate without having to stop/start the whole server process). In order to implement this though, I would either need access to the private sslFactory variable....project/blob/e81c847998fd99fd9a46e2bc15f191e38c2cc33d/jetty-util/src/main/java/org/eclipse/jetty/util/ssl/SslContextFactory.java#L1877
This link shows the method of SslContextFactory that I would try to...
B4J Question [solved] Configure ServerApp SSL with LetsEncrypt-Certifikate? - DonManfred    
Jan 12, 2025Hello, i have a few questions regarding this
https://www.b4x.com/android/forum/threads/server-ssl-connections.40130/
Asume i have a working LetsEncrypt-Certificate running on my Webserver. On the same machine i´m running multiple B4J Server apps. It is a Windows VPS.
What do i need to do to create a keystore with this Certificate to use it in my b4j server apps?
Asking another way: What kind...
link: bob_key.pem -in bob_cert.cert -export -out bob_pfx.pfx
I then configured the B4JServerapp to use SSL...
B4J Question [SOLVED] Connecting to Moqsuitto MQTT Broker-Server with Credentials/SSL Strange Problem ! - Magma    
Sep 21, 2022Hi there...
Well I have a very very strange problem...
First of all - I am using the same code to connect at 3rd party server having "Credentials" and "SSL" (the same way - with lets encrypt). Works at debug/release and standalone package perfect.
1) I ve installed at my Debian VPS server a mosquitto broker 3.1/v3.1.1 as saying... not allowing anonymous !, created ssl for... (mosquitto.zip)_... if helps
using Let's Encrypt SSL... and without it ... with simple tcp access had...
B4J Question b4j does not open an https ssl site, what to do? - Xfood    
May 13, 2025Good morning,
and for 2 days I've been trying to open this site from b4j with webview, I've ...
link:
This is why you should never use short term JDK releases. Even though 19.0.2 is the "latest&qu...
link:
I wrote to you in post #24 that I use 19.0.2 but it doesn't work anyway unfortunately
This is ...
link: If it helps, the page doesn't open here in Nicaragua....
Share My Creation B4J RabbitMQ Client SSL/Username/Password - Magma    
Mar 13, 2025   
(6 reactions)Well,
MQTT is a very good Protocol - but what about RabbitMQ ?
162518
Do you wanna try it ?
me too...
You will need the following:...
link:
Wow. Tell me something. Can this work on top of websockets? If I can subscribe and get notifications from this via BANanoMQTT or any...
link: Wow. Tell me something. Can this work on top of websockets? If I can subscribe and get notifications from this via BANanoMQTT or any ...
B4A Code Snippet [B4X] MQTT SSL and Self Signed Certificates - Erel    
Jan 1, 2019   
(13 reactions)   
tags: MQTTThere are two client libraries: jMQTT for B4A and B4J and iMQTT for B4i. Both libraries support SSL connections. You just need to change the URI scheme to ssl:// instead of tcp://:
mqtt.Initialize("mqtt", "ssl://127.0.0.1:17178", clientId)
If the broker is using a self signed... As JavaObject
SSLContext = SSLContext.InitializeStatic("javax.net.ssl.SSLContext").RunMethod... over SSL:
broker.Initialize("", 0) 'set the non-SSL port to 0
broker.SetUserAndPassword...
Page: 1  
2  
3  
4  
5  
6  
7