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;








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










share|improve this question
































    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










    share|improve this question




























      0












      0








      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










      share|improve this question
















      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






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Apr 9 at 5:37







      XOR

















      asked Mar 27 at 7:24









      XORXOR

      65 bronze badges




      65 bronze badges

























          1 Answer
          1






          active

          oldest

          votes


















          0














          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 ]);





          share|improve this answer

























          • 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












          • 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











          • Is the certificate in PEM format?

            – jason0x43
            Apr 12 at 17:09










          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
          );



          );













          draft saved

          draft discarded


















          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









          0














          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 ]);





          share|improve this answer

























          • 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












          • 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











          • Is the certificate in PEM format?

            – jason0x43
            Apr 12 at 17:09















          0














          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 ]);





          share|improve this answer

























          • 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












          • 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











          • Is the certificate in PEM format?

            – jason0x43
            Apr 12 at 17:09













          0












          0








          0







          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 ]);





          share|improve this answer













          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 ]);






          share|improve this answer












          share|improve this answer



          share|improve this answer










          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












          • 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











          • 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












          • 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











          • 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








          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.



















          draft saved

          draft discarded
















































          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.




          draft saved


          draft discarded














          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





















































          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







          Popular posts from this blog

          Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

          Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

          Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript