Code Monkey home page Code Monkey logo

Comments (6)

maakbaas avatar maakbaas commented on August 23, 2024

Did you follow these steps (https://github.com/maakbaas/esp8266-iot-framework/blob/master/docs/fetch.md#code-generation) to set a correct OpenSSL location in the Python script? Can you check that the current Windows user has the correct permissions to execute this application?

from esp8266-iot-framework.

clabnet avatar clabnet commented on August 23, 2024

Yes I have double checked the settings

#path to openssl
openssl = "C:\\mypath\\of\\openssl"

and I tried with two different versions of openssl.exe executables, in different paths.

The problem is the same, but I have note that doesn't always stop at the same point.

Skipped: GoDaddy:The Go Daddy Group, Inc.:Go Daddy Class 2 Certification Authority
Skipped: GoDaddy:GoDaddy.com, Inc.:
PermissionError: [WinError 5] Access is denied:
Skipped: GoDaddy:Starfield Technologies, Inc.:Starfield Class 2 Certification Authority
  File "C:\users\claudio\.platformio\penv\lib\site-packages\platformio\builder\main.py", line 178:
Skipped: GoDaddy:Starfield Technologies, Inc.:
    env.SConscript(item, exports="env")
Added: Google Trust Services LLC (GTS):GlobalSign:GlobalSign Root CA - R2
  File "C:\Users\Claudio\.platformio\packages\tool-scons\scons-local-4.0.1\SCons\Script\SConscript.py", line 598:
    return _SConscript(self.fs, *files, **subst_kw)
  File "C:\Users\Claudio\.platformio\packages\tool-scons\scons-local-4.0.1\SCons\Script\SConscript.py", line 287:
    exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
  File "D:\IOT PlatformIO\esp8266-iot-framework\scripts\preBuild.py", line 49:
    preBuildCertificatesFun(domains)
  File "D:\IOT PlatformIO\esp8266-iot-framework\scripts\preBuildCertificates.py", line 122:
    ssl = Popen([openssl,'x509','-inform','PEM','-outform','DER','-out', certName + '.der'], shell = False, stdin = PIPE)
  File "C:\Users\Claudio\.platformio\python3\lib\subprocess.py", line 800:
    restore_signals, start_new_session)
  File "C:\Users\Claudio\.platformio\python3\lib\subprocess.py", line 1207:
    startupinfo)

A question :
try the code to connect the internet during this process ? It can be the lowest of my internet band ?

Thanks.

from esp8266-iot-framework.

clabnet avatar clabnet commented on August 23, 2024

I have tried removing the -DOMAINLIST flag.
The procedure stop trying to add the first certificate.

Start building certificate store
For all domains
Added: AC Camerfirma, S.A.:AC Camerfirma SA CIF A82743287:http://www.chambersign.org
PermissionError: [WinError 5] Access is denied:
  File "C:\users\claudio\.platformio\penv\lib\site-packages\platformio\builder\main.py", line 178:
    env.SConscript(item, exports="env")
  File "C:\Users\Claudio\.platformio\packages\tool-scons\scons-local-4.0.1\SCons\Script\SConscript.py", line 598:
    return _SConscript(self.fs, *files, **subst_kw)
  File "C:\Users\Claudio\.platformio\packages\tool-scons\scons-local-4.0.1\SCons\Script\SConscript.py", line 287:
    exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
  File "D:\IOT PlatformIO\esp8266-iot-framework\scripts\preBuild.py", line 49:
    preBuildCertificatesFun(domains)
  File "D:\IOT PlatformIO\esp8266-iot-framework\scripts\preBuildCertificates.py", line 122:
    ssl = Popen([openssl,'x509','-inform','PEM','-outform','DER','-out', certName + '.der'], shell = False, stdin = PIPE)
  File "C:\Users\Claudio\.platformio\python3\lib\subprocess.py", line 800:
    restore_signals, start_new_session)
  File "C:\Users\Claudio\.platformio\python3\lib\subprocess.py", line 1207:
    startupinfo)

I'm admin of my machine.

from esp8266-iot-framework.

maakbaas avatar maakbaas commented on August 23, 2024

I can reproduce this on my side, if I take away the execute rights from the openssl.exe.

Since this is a Python error that can only mean this one thing I am quite sure that this is the issue in your case as well. Please check that administrators have execute access for this binary.

Added: Google Trust Services LLC (GTS):GlobalSign:GlobalSign Root CA - R2
PermissionError: [WinError 5] Access is denied:
  File "C:\users\johannes\.platformio\penv\lib\site-packages\platformio\builder\main.py", line 178:
    env.SConscript(item, exports="env")
  File "C:\Users\Johannes\.platformio\packages\tool-scons\scons-local-4.0.1\SCons\Script\SConscript.py", line 598:
    return _SConscript(self.fs, *files, **subst_kw)
  File "C:\Users\Johannes\.platformio\packages\tool-scons\scons-local-4.0.1\SCons\Script\SConscript.py", line 287:
    exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
  File "D:\Johannes\Maker\Framework\scripts\preBuild.py", line 49:
    preBuildCertificatesFun(domains)
  File "D:\Johannes\Maker\Framework\scripts\preBuildCertificates.py", line 122:
    ssl = Popen([openssl,'x509','-inform','PEM','-outform','DER','-out', certName + '.der'], shell = False, stdin = PIPE)
  File "C:\Users\Johannes\.platformio\python3\lib\subprocess.py", line 800:
    restore_signals, start_new_session)
  File "C:\Users\Johannes\.platformio\python3\lib\subprocess.py", line 1207:
    startupinfo)

from esp8266-iot-framework.

clabnet avatar clabnet commented on August 23, 2024

It is not a bug. I want to explain what happened.
Your code into prebuildCertificates.py say:

#path to openssl
    openssl = "C:/msys32/usr/bin/openssl" 

I changed with my path only without the executable name.
I swapped the final openssl as part of the path and not as the executable name,
also because in the comment it says "path" and not "fullname", and it is missing the .exe extension.
But it work as the same.

Sorry for wasting your time, but your code is very interesting and very well written.
Thanks for your fantastic support.

from esp8266-iot-framework.

maakbaas avatar maakbaas commented on August 23, 2024

I'm glad you figured it out

from esp8266-iot-framework.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.