Intern 3.4.1 on IOS Safari “unable to set accept insecure certs on Safari”iPhone SSL Website Certificate WarningiOS Tests/Specs TDD/BDD and Integration & Acceptance TestingAdd Internal CA Root Cert to iPhone iOS Provisioning ProfileSetting up 2-way SSL and trusting all certs from root issuerSSL Certificate Error - Selenium Web Driver and FirefoxCertificate for securing webscocket connectionAdding APNS cert to Google Firebasecert-manager Found pod with acme-order-url annotation set to that of Certificate, but it is not owned by the Certificate resourceRunning Intern 3.4.1 scripts on IOS simulator on chrome browserDeploying a Nodejs app to Windows without IIS and without a private key
Author changing name
Is TA-ing worth the opportunity cost?
Why are the inside diameters of some pipe larger than the stated size?
What are good ways to improve as a writer other than writing courses?
Replace value with variable length between double quotes
Why should we care about syntactic proofs if we can show semantically that statements are true?
Struggling with Pattern.matches
Accidentals - some in brackets, some not
show stdout containing n with line breaks
How should an administrative assistant reply to student addressing them as "Professor" or "Doctor"?
Is it okay for a ticket seller to grab a tip in the USA?
Why isn’t SHA-3 in wider use?
Performance of a branch and bound algorithm VS branch-cut-heuristics
How do I explain to a team that the project they will work on for six months will certainly be cancelled?
How quickly could a country build a tall concrete wall around a city?
How can you evade tax by getting employment income just in equity, then using this equity as collateral to take out loan?
Is refreshing multiple times a test case for web applications?
Why does Intel's Haswell chip allow FP multiplication to be twice as fast as addition?
Acceptable to cut steak before searing?
Infeasibility in mathematical optimization models
Is it incorrect to write "I rate this book a 3 out of 4 stars?"
Are there any financial disadvantages to living significantly "below your means"?
Double blind peer review when paper cites author's GitHub repo for code
How do we avoid CI-driven development...?
Intern 3.4.1 on IOS Safari “unable to set accept insecure certs on Safari”
iPhone SSL Website Certificate WarningiOS Tests/Specs TDD/BDD and Integration & Acceptance TestingAdd Internal CA Root Cert to iPhone iOS Provisioning ProfileSetting up 2-way SSL and trusting all certs from root issuerSSL Certificate Error - Selenium Web Driver and FirefoxCertificate for securing webscocket connectionAdding APNS cert to Google Firebasecert-manager Found pod with acme-order-url annotation set to that of Certificate, but it is not owned by the Certificate resourceRunning Intern 3.4.1 scripts on IOS simulator on chrome browserDeploying a Nodejs app to Windows without IIS and without a private key
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I am trying to Run intern Scripts on IOS Safari I am doing automation for some internal company services...
On MAC Safari same automation worked after placing certificates (with name of server it directly worked by placing certificate , but when i changed server name with ip I again accepted the warning for accept insecure cert) ..
My assumption was same will work for IOS simulator running on Same machine ...
I tired to access (server on which web service is running with both name and ip but didn't work )
I tried by placing "acceptInsecureCerts" : True but I think it's only for firefox
ios node.js automated-tests ssl-certificate intern
add a comment |
I am trying to Run intern Scripts on IOS Safari I am doing automation for some internal company services...
On MAC Safari same automation worked after placing certificates (with name of server it directly worked by placing certificate , but when i changed server name with ip I again accepted the warning for accept insecure cert) ..
My assumption was same will work for IOS simulator running on Same machine ...
I tired to access (server on which web service is running with both name and ip but didn't work )
I tried by placing "acceptInsecureCerts" : True but I think it's only for firefox
ios node.js automated-tests ssl-certificate intern
add a comment |
I am trying to Run intern Scripts on IOS Safari I am doing automation for some internal company services...
On MAC Safari same automation worked after placing certificates (with name of server it directly worked by placing certificate , but when i changed server name with ip I again accepted the warning for accept insecure cert) ..
My assumption was same will work for IOS simulator running on Same machine ...
I tired to access (server on which web service is running with both name and ip but didn't work )
I tried by placing "acceptInsecureCerts" : True but I think it's only for firefox
ios node.js automated-tests ssl-certificate intern
I am trying to Run intern Scripts on IOS Safari I am doing automation for some internal company services...
On MAC Safari same automation worked after placing certificates (with name of server it directly worked by placing certificate , but when i changed server name with ip I again accepted the warning for accept insecure cert) ..
My assumption was same will work for IOS simulator running on Same machine ...
I tired to access (server on which web service is running with both name and ip but didn't work )
I tried by placing "acceptInsecureCerts" : True but I think it's only for firefox
ios node.js automated-tests ssl-certificate intern
ios node.js automated-tests ssl-certificate intern
edited Apr 9 at 5:37
XOR
asked Mar 27 at 7:24
XORXOR
65 bronze badges
65 bronze badges
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
You can install certificates in the simulator using the mobile: installCertificate
Appium script. Using it with Intern should look something like this:
const cert = fs.readFileSync('certificate.cer');
const content = cert.toString('base64');
return this.remote.execute('mobile: installCertificate', [ content ]);
sorry ... but where do I need to keep this code configuration file of intern i.e intern.js since we don't have access to functional scripts it will be written by automation team...
– XOR
Apr 4 at 5:45
I have kept code in setup function , and when i execute script it show error cannot read property readFileSync of undefined ... I have kept certificates in /users/abc/certificate.cert ..... my code looks like const setup:function (fs) cert = fs.readFileSync('/users/abc/certificate.cer'); const content = cert.toString('base64'); return this.remote.execute('mobile: installCertificate', [ content ]);,
– XOR
Apr 5 at 7:39
Thefs
in the original code snippet is just the Node fs module, so you'll need to import that before you can use it. With the dojo loader, you would load it asdojo/node!fs
.
– jason0x43
Apr 11 at 13:35
Original error: Cannot parse common name value from the certificate. Is it valid and base64-encoded? Original error: Unknown encoding: latin-1}
– XOR
Apr 12 at 12:33
Is the certificate in PEM format?
– jason0x43
Apr 12 at 17:09
|
show 6 more comments
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55371816%2fintern-3-4-1-on-ios-safari-unable-to-set-accept-insecure-certs-on-safari%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
You can install certificates in the simulator using the mobile: installCertificate
Appium script. Using it with Intern should look something like this:
const cert = fs.readFileSync('certificate.cer');
const content = cert.toString('base64');
return this.remote.execute('mobile: installCertificate', [ content ]);
sorry ... but where do I need to keep this code configuration file of intern i.e intern.js since we don't have access to functional scripts it will be written by automation team...
– XOR
Apr 4 at 5:45
I have kept code in setup function , and when i execute script it show error cannot read property readFileSync of undefined ... I have kept certificates in /users/abc/certificate.cert ..... my code looks like const setup:function (fs) cert = fs.readFileSync('/users/abc/certificate.cer'); const content = cert.toString('base64'); return this.remote.execute('mobile: installCertificate', [ content ]);,
– XOR
Apr 5 at 7:39
Thefs
in the original code snippet is just the Node fs module, so you'll need to import that before you can use it. With the dojo loader, you would load it asdojo/node!fs
.
– jason0x43
Apr 11 at 13:35
Original error: Cannot parse common name value from the certificate. Is it valid and base64-encoded? Original error: Unknown encoding: latin-1}
– XOR
Apr 12 at 12:33
Is the certificate in PEM format?
– jason0x43
Apr 12 at 17:09
|
show 6 more comments
You can install certificates in the simulator using the mobile: installCertificate
Appium script. Using it with Intern should look something like this:
const cert = fs.readFileSync('certificate.cer');
const content = cert.toString('base64');
return this.remote.execute('mobile: installCertificate', [ content ]);
sorry ... but where do I need to keep this code configuration file of intern i.e intern.js since we don't have access to functional scripts it will be written by automation team...
– XOR
Apr 4 at 5:45
I have kept code in setup function , and when i execute script it show error cannot read property readFileSync of undefined ... I have kept certificates in /users/abc/certificate.cert ..... my code looks like const setup:function (fs) cert = fs.readFileSync('/users/abc/certificate.cer'); const content = cert.toString('base64'); return this.remote.execute('mobile: installCertificate', [ content ]);,
– XOR
Apr 5 at 7:39
Thefs
in the original code snippet is just the Node fs module, so you'll need to import that before you can use it. With the dojo loader, you would load it asdojo/node!fs
.
– jason0x43
Apr 11 at 13:35
Original error: Cannot parse common name value from the certificate. Is it valid and base64-encoded? Original error: Unknown encoding: latin-1}
– XOR
Apr 12 at 12:33
Is the certificate in PEM format?
– jason0x43
Apr 12 at 17:09
|
show 6 more comments
You can install certificates in the simulator using the mobile: installCertificate
Appium script. Using it with Intern should look something like this:
const cert = fs.readFileSync('certificate.cer');
const content = cert.toString('base64');
return this.remote.execute('mobile: installCertificate', [ content ]);
You can install certificates in the simulator using the mobile: installCertificate
Appium script. Using it with Intern should look something like this:
const cert = fs.readFileSync('certificate.cer');
const content = cert.toString('base64');
return this.remote.execute('mobile: installCertificate', [ content ]);
answered Mar 27 at 13:16
jason0x43jason0x43
3,2531 gold badge12 silver badges15 bronze badges
3,2531 gold badge12 silver badges15 bronze badges
sorry ... but where do I need to keep this code configuration file of intern i.e intern.js since we don't have access to functional scripts it will be written by automation team...
– XOR
Apr 4 at 5:45
I have kept code in setup function , and when i execute script it show error cannot read property readFileSync of undefined ... I have kept certificates in /users/abc/certificate.cert ..... my code looks like const setup:function (fs) cert = fs.readFileSync('/users/abc/certificate.cer'); const content = cert.toString('base64'); return this.remote.execute('mobile: installCertificate', [ content ]);,
– XOR
Apr 5 at 7:39
Thefs
in the original code snippet is just the Node fs module, so you'll need to import that before you can use it. With the dojo loader, you would load it asdojo/node!fs
.
– jason0x43
Apr 11 at 13:35
Original error: Cannot parse common name value from the certificate. Is it valid and base64-encoded? Original error: Unknown encoding: latin-1}
– XOR
Apr 12 at 12:33
Is the certificate in PEM format?
– jason0x43
Apr 12 at 17:09
|
show 6 more comments
sorry ... but where do I need to keep this code configuration file of intern i.e intern.js since we don't have access to functional scripts it will be written by automation team...
– XOR
Apr 4 at 5:45
I have kept code in setup function , and when i execute script it show error cannot read property readFileSync of undefined ... I have kept certificates in /users/abc/certificate.cert ..... my code looks like const setup:function (fs) cert = fs.readFileSync('/users/abc/certificate.cer'); const content = cert.toString('base64'); return this.remote.execute('mobile: installCertificate', [ content ]);,
– XOR
Apr 5 at 7:39
Thefs
in the original code snippet is just the Node fs module, so you'll need to import that before you can use it. With the dojo loader, you would load it asdojo/node!fs
.
– jason0x43
Apr 11 at 13:35
Original error: Cannot parse common name value from the certificate. Is it valid and base64-encoded? Original error: Unknown encoding: latin-1}
– XOR
Apr 12 at 12:33
Is the certificate in PEM format?
– jason0x43
Apr 12 at 17:09
sorry ... but where do I need to keep this code configuration file of intern i.e intern.js since we don't have access to functional scripts it will be written by automation team...
– XOR
Apr 4 at 5:45
sorry ... but where do I need to keep this code configuration file of intern i.e intern.js since we don't have access to functional scripts it will be written by automation team...
– XOR
Apr 4 at 5:45
I have kept code in setup function , and when i execute script it show error cannot read property readFileSync of undefined ... I have kept certificates in /users/abc/certificate.cert ..... my code looks like const setup:function (fs) cert = fs.readFileSync('/users/abc/certificate.cer'); const content = cert.toString('base64'); return this.remote.execute('mobile: installCertificate', [ content ]);,
– XOR
Apr 5 at 7:39
I have kept code in setup function , and when i execute script it show error cannot read property readFileSync of undefined ... I have kept certificates in /users/abc/certificate.cert ..... my code looks like const setup:function (fs) cert = fs.readFileSync('/users/abc/certificate.cer'); const content = cert.toString('base64'); return this.remote.execute('mobile: installCertificate', [ content ]);,
– XOR
Apr 5 at 7:39
The
fs
in the original code snippet is just the Node fs module, so you'll need to import that before you can use it. With the dojo loader, you would load it as dojo/node!fs
.– jason0x43
Apr 11 at 13:35
The
fs
in the original code snippet is just the Node fs module, so you'll need to import that before you can use it. With the dojo loader, you would load it as dojo/node!fs
.– jason0x43
Apr 11 at 13:35
Original error: Cannot parse common name value from the certificate. Is it valid and base64-encoded? Original error: Unknown encoding: latin-1}
– XOR
Apr 12 at 12:33
Original error: Cannot parse common name value from the certificate. Is it valid and base64-encoded? Original error: Unknown encoding: latin-1}
– XOR
Apr 12 at 12:33
Is the certificate in PEM format?
– jason0x43
Apr 12 at 17:09
Is the certificate in PEM format?
– jason0x43
Apr 12 at 17:09
|
show 6 more comments
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55371816%2fintern-3-4-1-on-ios-safari-unable-to-set-accept-insecure-certs-on-safari%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown