[MOD-2389] iOS: HTTPS Module: https.createX509CertificatePinningSecurityManager is not a function
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | None |
Status | Open |
Resolution | Unresolved |
Affected Version/s | Release 2.1.1 |
Fix Version/s | n/a |
Components | Https |
Labels | n/a |
Reporter | Victor Vazquez Montero |
Assignee | Unknown |
Created | 2018-01-22T20:57:09.000+0000 |
Updated | 2018-03-06T18:52:32.000+0000 |
Description
Description:
Using the 2.1.1 Library for iOS and in some times (Not all the time) when doing a request to the Backend the SSL-Pinning fails saying that the https.createX509CertificatePinningSecurityManager is not a function (Pic Attached) even when using the same functionCode:
if (OS_IOS || OS_ANDROID) {
var https = require('appcelerator.https');
var securityManager = https.createX509CertificatePinningSecurityManager(
[{
url: Alloy.Globals.baseUrl,
serverCertificate: Alloy.Globals.serverCertificate
}]);
}
Additional information
Request works well when on SDK 6.3.0 but in SDK 7.0.1 there is an error. We have tried to recreate this on our end but unable to get the same error. So the customer has attached a video of the error occurring.Attachments
File | Date | Size |
---|---|---|
ErrorLog.png | 2018-01-22T20:55:54.000+0000 | 498714 |
Pinning2.mov | 2018-01-22T20:55:49.000+0000 | 7948441 |