question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

error:0906D06C:PEM routines:PEM_read_bio:no start line

See original GitHub issue

Description:

Some ionic commands return error:0906D06C:PEM routines:PEM_read_bio:no start line. I’ve had this problem when trying ionic start myApp blank/sidemenu/tabs and ionic cordova resources.

Steps to Reproduce:

  1. Type in terminal ionic cordova resources android or
  2. Try to start a new blank template project: ionic start testProject blank

Output:

ionic start testProject blank:

[DEBUG] Reason for not using local CLI: BASE_DIRECTORY_NOT_FOUND
[DEBUG] CLI flags: { interactive: true, confirm: false }
[DEBUG] { cwd: 'C:\\Users\\Raschid\\Git\\Cordova', local: false, binPath:
        'C:\\Users\\Raschid\\AppData\\Roaming\\npm\\node_modules\\ionic\\bin\\ionic', libPath:
        'C:\\Users\\Raschid\\AppData\\Roaming\\npm\\node_modules\\ionic\\dist\\index.js' }
[DEBUG] Daemon found (pid: 15196)
√ Creating directory .\testProject - done!
× Downloading and extracting blank starter - failed!
Error: error:0906D06C:PEM routines:PEM_read_bio:no start line
    at Object.createSecureContext (_tls_common.js:86:19)
    at Object.exports.connect (_tls_wrap.js:1049:48)
    at Agent.createConnection (https.js:111:22)
    at Agent.createSocket (_http_agent.js:227:26)
    at Agent.addRequest (_http_agent.js:185:10)
    at new ClientRequest (_http_client.js:258:16)
    at Object.request (http.js:38:10)
    at Object.request (https.js:239:15)
    at Request.request (C:\Users\Raschid\AppData\Roaming\npm\node_modules\ionic\node_modules\superagent\lib\node\index.j
s:622:31)
    at Request.end (C:\Users\Raschid\AppData\Roaming\npm\node_modules\ionic\node_modules\superagent\lib\node\index.js:76
4:8)
[DEBUG] Error: error:0906D06C:PEM routines:PEM_read_bio:no start line
            at Object.createSecureContext (_tls_common.js:86:19)
            at Object.exports.connect (_tls_wrap.js:1049:48)
            at Agent.createConnection (https.js:111:22)
            at Agent.createSocket (_http_agent.js:227:26)
            at Agent.addRequest (_http_agent.js:185:10)
            at new ClientRequest (_http_client.js:258:16)
            at Object.request (http.js:38:10)
            at Object.request (https.js:239:15)
            at Request.request
        (C:\Users\Raschid\AppData\Roaming\npm\node_modules\ionic\node_modules\superagent\lib\node\index.js:622:31)
            at Request.end
        (C:\Users\Raschid\AppData\Roaming\npm\node_modules\ionic\node_modules\superagent\lib\node\index.js:764:8)

ionic cordova resources android:

[DEBUG] Reason for not using local CLI: LOCAL_CLI_NOT_FOUND
[DEBUG] CLI flags: { interactive: true, confirm: false }
[DEBUG] { cwd: 'C:\\Users\\Raschid\\Git\\Cordova\\AbogaDom', local: false, binPath:
        'C:\\Users\\Raschid\\AppData\\Roaming\\npm\\node_modules\\ionic\\bin\\ionic', libPath:
        'C:\\Users\\Raschid\\AppData\\Roaming\\npm\\node_modules\\ionic\\dist\\index.js' }
[DEBUG] Daemon found (pid: 15196)
[DEBUG] resourceJsonStructure=3
[DEBUG] platforms=android
[DEBUG] buildPlatforms=android
[DEBUG] getProjectPlatforms completed: android
[DEBUG] imgResources=18
[DEBUG] createImgDestinationDirectories completed: 2
[DEBUG] getSourceImages completed: (.\resources\icon.png, .\resources\splash.png)
√ Collecting resource configuration and source images - done!
√ Filtering out image resources that do not need regeneration - done!
× Uploading source images to prepare for transformations - failed!
Error: error:0906D06C:PEM routines:PEM_read_bio:no start line
    at Object.createSecureContext (_tls_common.js:86:19)
    at Object.exports.connect (_tls_wrap.js:1049:48)
    at Agent.createConnection (https.js:111:22)
    at Agent.createSocket (_http_agent.js:227:26)
    at Agent.addRequest (_http_agent.js:185:10)
    at new ClientRequest (_http_client.js:258:16)
    at Object.request (http.js:38:10)
    at Object.request (https.js:239:15)
    at Request.request (C:\Users\Raschid\AppData\Roaming\npm\node_modules\ionic\node_modules\superagent\lib\node\index.j
s:622:31)
    at Request.end (C:\Users\Raschid\AppData\Roaming\npm\node_modules\ionic\node_modules\superagent\lib\node\index.js:76
4:8)
[DEBUG] Error: error:0906D06C:PEM routines:PEM_read_bio:no start line
            at Object.createSecureContext (_tls_common.js:86:19)
            at Object.exports.connect (_tls_wrap.js:1049:48)
            at Agent.createConnection (https.js:111:22)
            at Agent.createSocket (_http_agent.js:227:26)
            at Agent.addRequest (_http_agent.js:185:10)
            at new ClientRequest (_http_client.js:258:16)
            at Object.request (http.js:38:10)
            at Object.request (https.js:239:15)
            at Request.request
        (C:\Users\Raschid\AppData\Roaming\npm\node_modules\ionic\node_modules\superagent\lib\node\index.js:622:31)
            at Request.end
        (C:\Users\Raschid\AppData\Roaming\npm\node_modules\ionic\node_modules\superagent\lib\node\index.js:764:8)

My ionic info:

[WARN] You are not in an Ionic project directory. Project context may be missing.

cli packages: (C:\Users\Raschid\AppData\Roaming\npm\node_modules)

    @ionic/cli-utils  : 1.19.2
    ionic (Ionic CLI) : 3.20.0

System:

    Node : v8.11.1
    npm  : 5.6.0
    OS   : Windows 10

Misc:

    backend : pro

Other Information: I could create my project successfully when downgraded ionic to 3.10

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
RaschidJFRcommented, May 14, 2018

Mmm I guess so… It’s a path from an old project. Actually I don’t even know what that does but I just changed that value in the config.json file to

ssl: {}

and now it looks like the problem was solved. Command ionic start test blank worked again! Strange thing is that it wasn’t an issue with earlier versions of Ionic but I can’t complain if it’s working now. Tnx @dwieeb

0reactions
imhoffdcommented, May 14, 2018

Ahh, okay, so I’m seeing some SSL configuration here:

  ssl:
   { certfile: 'C:\\Users\\Raschid\\Git\\NodeJS\\proxy\\server.key' } }

Is that something you added?

Read more comments on GitHub >

github_iconTop Results From Across the Web

OpenSSL: PEM routines:PEM_read_bio:no start line:pem_lib ...
Please, provide the solution. P.S.: The message unable to load certificate 140603809879880:error:0906D06C:PEM routines:PEM_read_bio:no start ...
Read more >
How to fix "PEM_read_bio:no start line error" nginx error
[emerg]: SSL_CTX_use_PrivateKey_file("/etc/ssl/cert.pem") failed (SSL: error:0906D06C:PEM routines:PEM_read_bio:no start line error:140B0009:SSL ...
Read more >
Error 0906D06C:PEM routines:PEM_read_bio:no start line ...
Description Configuration does not load when upgrading to 11.6.5.2. Next error is prompted after some minutes of a failing configuration loading ...
Read more >
Getting error:0906D06C:PEM routines:PEM_read_bio:no start ...
Solved: I have loaded a SSL Certificate on our development server (Splunk 8.1.4). I added the following to the server.conf file (based on ......
Read more >
Error:0906D06C:PEM routines:PEM_read_bio:no start line
I have PFX Client certificate, I have import in Postman & It works absolutely fine. But while I'm trying with command line &...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found