P12 Certificate support

0 favourites
  • 4 posts
From the Asset Store
Comprehensive localization solution for Construct 3 projects, no addons required!
  • Hi!

    So I am I am developing a app that requires accessing a server with a imported .P12 SSL certificate, is there a way of implementing this in a Cordova app? I would presume webkit has such support?

    EDIT: I found this plugin: https:// github.com /mwaylabs/cordova-plugin-client-certificate

    but where do I add the jS?

  • It is asking me to add the following code to Ondeviceready

    var success = function(message) {

    alert(message);

    }

    var failure = function(error) {

    alert("Error:" + error);

    }

    clientCertificate.register("cert.p12", "password", success, failure);

    where in the www folder to I put this?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • It is asking me to add the following code to Ondeviceready

    var success = function(message) {

    alert(message);

    }

    var failure = function(error) {

    alert("Error:" + error);

    }

    clientCertificate.register("cert.p12", "password", success, failure);

    where in the www folder to I put this?

    you can add that script into a bracket like bellow inside index.html file usually under all script inside the body tag before </body> closing.

    <script> var success = function(message) {
            alert(message);
        }
    
        var failure = function(error) {
            alert("Error:" + error);
        }
    
        clientCertificate.register("cert.p12", "password", success, failure); </script>
    </body> 
    [/code:c3bnk451]
  • Thanks! but it says the script should be added under "OnDeviceReady", should that not first be defined?

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)