Tag Archives: ssl

Challenges Establishing 2 Way SSL communication using built in PHP SOAP Client

Questions: I’m trying to create a connection to a SOAP webservice using a .pem certificate and list all the functions that are available for consumption. However I have not been able to make any progress. $client->__getFunctions() returns null and I get a error “Wrong Version”. $pem = ‘certificate.pem’; $username = ‘supertester’; $password = ‘testing123’; $defaultEndpoint… Read More »

Rewrite code from php to node js (php openssl_encrypt)

Questions: PHP function encodeBase64Url($data) { return strtr(base64_encode($data), [‘+’ => ‘-‘, ‘/’ => ‘_’, ‘=’ => ”]); } function encrypt($data, $secret) { $data = json_encode($data); $salt = openssl_random_pseudo_bytes(16); $data = openssl_encrypt($data, ‘AES-128-CBC’, $secret, $options = OPENSSL_RAW_DATA, $salt); $data = encodeBase64Url($salt . $data); return $data; } My node.js code example (NOT Working) function encrypt(data, secret){ data =… Read More »

FirebaseInstanceId adding an OnSuccessListener causes application to close crash without a stack trace

Questions: I am experiencing a problem when adding an OnsuccessListener to FirebaseInstanceId, the Activity closes without any stack traces. No exception is visible. Here is the code added to the Activities “onCreate” lifecycle method: @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); //… snip FirebaseInstanceId.getInstance().getInstanceId().addOnSuccessListener(new OnSuccessListener<InstanceIdResult>() { @Override public void onSuccess(InstanceIdResult instanceIdResult) { String instanceIdToken =… Read More »

java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader (please Help)

Questions: can someone help, please! app crasehs everytime 08-06 23:20:25.882 3446-3446/com.companyname.gamename E/AndroidRuntime: FATAL EXCEPTION: main Process: com.companyname.gamename, PID: 3446 java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file “/data/app/com.companyname.gamename-1/base.apk”, zip file “/data/app/com.companyname.gamename-1/split_lib_dependencies_apk.apk”, zip file “/data/app/com.companyname.gamename-1/split_lib_slice_0_apk.apk”, zip file “/data/app/com.companyname.gamename-1/split_lib_slice_1_apk.apk”, zip file “/data/app/com.companyname.gamename-1/split_lib_slice_2_apk.apk”, zip file “/data/app/com.companyname.gamename-1/split_lib_slice_3_apk.apk”, zip file “/data/app/com.companyname.gamename-1/split_lib_slice_4_apk.apk”, zip file “/data/app/com.companyname.gamename-1/split_lib_slice_5_apk.apk”, zip file “/data/app/com.companyname.gamename-1/split_lib_slice_6_apk.apk”, zip file “/data/app/com.companyname.gamename-1/split_lib_slice_7_apk.apk”, zip file “/data/app/com.companyname.gamename-1/split_lib_slice_8_apk.apk”, zip file… Read More »

Android Setup for SSL connection

Questions: I googled a lot, but have only parts of needed information and hard to manage it as I am beginner. I want to create Android application, which will connect to server using SSL self-signed certificate.(My friend will write server side and I will code android app). I will use retrofit2 Could someone give detailed… Read More »

JAVA – SSL Client – Key managers not used

Questions: I implemented a custom key manager, in order to choose which alias use when i need a ssl handshake. The problem is that none of the methods of my custom key manager gets called, although it’s correctly instantiated. With a keystore containing just ONE alias, communication is fine and the code works, but the… Read More »

android : OssLicensesMenuActivity open licence links in self contain app activity with webview instead of browser

Questions: following the documentation of how to build the Oss information screen https://developers.google.com/android/guides/opensource on my screen i noticed that some of the licences in the list, when i select it, it shows the entire licence on the next screen, but some only has a weblink, when i tap it fires up my device browser how… Read More »

SOAP Client SSL, failed authentication

Questions: I’m putting together a soap client to call a thirdparty soap service. I’m having issues connecting with Java. It works fine with SoapUI. This is the first time I’ve set up a keystore within the app. All the code I have found is the same and pretty simple but I can’t figure out why… Read More »

How to resolve 'javax.net.ssl.SSLHandshakeException: General SSLEngine'

Questions: I deployed my .ear file in WebLogic 12c and am receiving this error when initiating a webservice call. General SSLEngine problem com.sun.xml.ws.wsdl.parser.InaccessibleWSDLException: 2 counts of InaccessibleWSDLException. javax.net.ssl.SSLHandshakeException: General SSLEngine problem javax.net.ssl.SSLHandshakeException: General SSLEngine problem at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.tryWithMex(RuntimeWSDLParser.java:259) at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.parse(RuntimeWSDLParser.java:230) at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.parse(RuntimeWSDLParser.java:193) at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.parse(RuntimeWSDLParser.java:162) at com.sun.xml.ws.client.WSServiceDelegate.parseWSDL(WSServiceDelegate.java:359) at com.sun.xml.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:321) at com.sun.xml.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:230) at com.sun.xml.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:212) at com.sun.xml.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:208) at weblogic.wsee.jaxws.spi.WLSServiceDelegate.<init>(WLSServiceDelegate.java:96)… Read More »