GithubHelp home page GithubHelp logo

Comments (10)

ksdhans avatar ksdhans commented on May 23, 2024

Not sure if it's related, but using an elliptic curve server certificate also gives me the "no shared cipher" error. Only RSA certificates work. I can generate the elliptic curve certificate, but can't use it.

from amissl.

Futaura avatar Futaura commented on May 23, 2024

I couldn't really tell what you were ultimately trying to accomplish, from your comments, but somebody pointed me to your thread on os4coding.net. So, you're using AmiSSL in your ZitaFTP server software. Did you ever get this working? I'm thinking you perhaps missed a call to set up the ciphers (IIRC, it needs to be done differently for TLSv1.3). And I'm not so sure the OpenSSL s_server command is a good test.

from amissl.

ksdhans avatar ksdhans commented on May 23, 2024

Yes, I'm using AmiSSL in ZitaFTP Server. No, I didn't get it working. Instead I downgraded to TLS 1.2.

The same code works with Cygwin on Windows, so it's not a coding error on my part. Likewise, the s_server test works just fine with Cygwin.

from amissl.

Futaura avatar Futaura commented on May 23, 2024

Ok. Could you let me know the commands that you are using to create test.key and test.crt? I'll then rerun your test here with AmiSSL 4.3 and my current dev build which uses OpenSSL 1.1.1d (4.3 uses 1.1.1a). Could be something that was fixed In OpenSSL - if not, I'll find out what's going wrong.

I only had a quick look, but would I be right in saying that the current ZitaFTP on os4depot is statically linked against OpenSSL 1.1.1c?

from amissl.

ksdhans avatar ksdhans commented on May 23, 2024

Sure, the following generates a key using an elliptic curve cipher:
openssl ecparam -name secp521r1 -genkey -param_enc named_curve -out key.pem
openssl req -new -x509 -key key.pem -out cert.pem -days 730 -subj "/CN=localhost"

NOTE: You may need to add -config to the last line, with an AmiSSL config file because the default installation doesn't come with a config file.

I only had a quick look, but would I be right in saying that the current ZitaFTP on os4depot is statically linked against OpenSSL 1.1.1c?

Yes and no. The actual FTP server uses AmiSSL, but the licensing code relies on libcurl and therefore statically links in OpenSSL (it's a third-party lib that I adapted).

I'm hoping to build an OpenSSL => AmiSSL stub lib at some point so that I can remove the redundant OpenSSL. I haven't figured out how to generate that yet...

from amissl.

Futaura avatar Futaura commented on May 23, 2024

Ok - quick update. I am seeing the problem here too - works ok on Windows, but not in AmiSSL - both are using OpenSSL 1.1.1d, and same cert/key/config files. I've traced the problem and am working on a solution.

from amissl.

Futaura avatar Futaura commented on May 23, 2024

@ksdhans Took a while to pinpoint the cause, but ultimately it has led to the discovery a baserel related bug in GCC 4.0.4 on OS4. Fortunately, it can be easily worked around, but I've got to check if it gets triggered anywhere else in the OpenSSL code. FYI, your test case works on OS3.

Also, it is bugging me that trying to Ctrl-C s_server triggers a busy loop somewhere, so hope to fix that too. Do you know if there is some other way to tell s_server to exit?

from amissl.

ksdhans avatar ksdhans commented on May 23, 2024

Good to hear that you've found the root cause.

I don't know any other method than Ctrl+C to exist s_server.

from amissl.

Futaura avatar Futaura commented on May 23, 2024

I'm hoping to build an OpenSSL => AmiSSL stub lib at some point so that I can remove the redundant OpenSSL. I haven't figured out how to generate that yet...

@ksdhans Is that related to #31? I'd like to move discussion on this to that ticket if it is, as I'm going to close this one soon.

from amissl.

ksdhans avatar ksdhans commented on May 23, 2024

@ksdhans Is that related to #31? I'd like to move discussion on this to that ticket if it is, as I'm going to close this one soon.

True, they are related, but still slightly different. The solution I'm suggesting there wouldn't help in this case because inline stubs are only of use at compile time. An already compiled library such as libcurl would need stubs in another static library.

Let's move the discussion to that ticket.

from amissl.

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.