Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    How to take the file 'ca.pem' to ‘/flash/cert/’?

    Scheduled Pinned Locked Moved Discussion
    14 Posts 2 Posters 3.7k Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • L Offline
      livius @DongYin
      last edited by

      @DongYin
      Which tool do you use for ftp? And do you got some error when you put file?
      In current firmware i have some problems with ftp stability
      but i can put file by e.g. Filezilla

      think about people first, then computers

      D 1 Reply Last reply Reply Quote 1
      • D Offline
        DongYin @livius
        last edited by

        @livius
        I used 'freshftp' before, i can see the flash directory by this tool, but can't write file to flash.
        then i used 'Filezilla', an error come out :"GnuTLS error -15: An unexpected TLS packet was received"
        is there any settings required?

        L 1 Reply Last reply Reply Quote 0
        • L Offline
          livius @DongYin
          last edited by livius

          @DongYin
          look here - go to Filezilla section
          https://docs.pycom.io/pycom_esp32/pycom_esp32/toolsandfeatures.html?highlight=filezilla

          think about people first, then computers

          D 1 Reply Last reply Reply Quote 0
          • D Offline
            DongYin @livius
            last edited by

            @livius
            Thank you! It works now.

            1 Reply Last reply Reply Quote 0
            • D Offline
              DongYin
              last edited by

              @livius
              Is the ssl module OK? did you use it successful?
              there aways output an OSError:-9984

              L 1 Reply Last reply Reply Quote 0
              • L Offline
                livius @DongYin
                last edited by

                @DongYin said in How to take the file 'ca.pem' to ‘/flash/cert/’?:

                ssl

                No, i did not used it. But you can see on the forum that few person use it succesfully.
                What version of firmware do you have?

                os.uname()
                

                think about people first, then computers

                D 1 Reply Last reply Reply Quote 0
                • D Offline
                  DongYin @livius
                  last edited by

                  @livius
                  0_1488190087923_upload-a6582b95-ec60-46e5-83bd-993c88ab23ef

                  L 1 Reply Last reply Reply Quote 0
                  • L Offline
                    livius @DongYin
                    last edited by

                    @DongYin
                    could you show some sample code?
                    it is something near this?
                    https://docs.pycom.io/pycom_esp32/library/ussl.html

                    import socket
                    import ssl
                    s = socket.socket()
                    ss = ssl.wrap_socket(s, cert_reqs=ssl.CERT_REQUIRED, ca_certs='/flash/cert/ca.pem')
                    ss.connect(socket.getaddrinfo('cloud.blynk.cc', 8441)[0][-1])
                    

                    think about people first, then computers

                    D 2 Replies Last reply Reply Quote 0
                    • D Offline
                      DongYin @livius
                      last edited by

                      @livius
                      This is my ssl code.and WiFi is connect.
                      s = socket.socket()
                      #s = socket.socket(socket.AF_INET, socket.SOCK_STREAM, socket.IPPROTO_TCP)
                      ss = ssl.wrap_socket(s, cert_reqs=ssl.CERT_REQUIRED, ca_certs='/flash/cert/client.pem')
                      ss.connect(socket.getaddrinfo('192.168.119.38', 43416)[0][-1])

                      1 Reply Last reply Reply Quote 0
                      • D Offline
                        DongYin @livius
                        last edited by

                        @livius
                        only socket is OK.
                        s = socket.socket()
                        s.connect(socket.getaddrinfo('192.168.119.38', 43414)[0][-1])

                        By the way ,how to add my code with black backcolor?

                        L 1 Reply Last reply Reply Quote 0
                        • L Offline
                          livius @DongYin
                          last edited by

                          @DongYin said in How to take the file 'ca.pem' to ‘/flash/cert/’?:

                          By the way ,how to add my code with black backcolor?

                          look here http://commonmark.org/help/

                          think about people first, then computers

                          1 Reply Last reply Reply Quote 0

                          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                          With your input, this post could be even better 💗

                          Register Login
                          • 1 / 1
                          • First post
                            Last post

                          Pycom on Twitter

                          Pycom