Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use ssl certificate and https in this library #140

Open
Vishnuneelancheri opened this issue Jun 13, 2017 · 2 comments
Open

How to use ssl certificate and https in this library #140

Vishnuneelancheri opened this issue Jun 13, 2017 · 2 comments

Comments

@Vishnuneelancheri
Copy link

I want to use SSL certificate and https connection. How can I ?

@mike-roberts
Copy link

If you're using [email protected] or higher and/or [email protected] or higher you can use the new resource-file tag in config.xml.

https://cordova.apache.org/docs/en/latest/config_ref/index.html#resource-file

as an example in my config.xml I have:

    <platform name="android">
        <resource-file src="path/to/certfile.cer" target="assets/cerfile.cer" />
    </platform>
    <platform name="ios">
        <resource-file src="path/to/certfile.cer" />
    </platform>

This puts the files in the correct places thanks to the resource-file tag.

To use the https part, just make sure you're connecting to an https url.

@stevenballs
Copy link

if ios 4.2 how solve it ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants