-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to test sm2 certificate base on this project? #3
Comments
i have the same question, did you solve it? thanks. |
This might be answered by MOSN people: @taoyuanyuan |
oh, thanks, friendly ping @taoyuanyuan |
cc @wangfakang |
Currently tongsuo proxy only supports the tls1.3 suite, some key point configuration as below:
|
Additionally, in that configuration, the |
awesome, thanks a lot! And according to envoyproxy/envoy#10762 (comment) , it seems that TLS 1.3 cipher suites are not configurable as below, so i remove the finally, i use curl base on tongsuo ( https://github.com/Tongsuo-Project/curl ) to test, dose the result below mean it works? cc @InfoHunter @wangfakang thanks! |
Seems it's working |
@StarryVae @InfoHunter @wangfakang $ export LD_LIBRARY_PATH=/opt/tongsuo/lib:$LD_LIBRARY_PATH However, I'm encountering an error "Failed to load certificate chain" when attempting to use these certificates. How should the certificates be generated? |
this is my example configuration @ruimya |
If it's something wrong with the SM2 certificate you generated, then you can use the SM2 testing certificate and key provided in Tongsuo code repo: In directory |
Thanks you much, I use your configuration file @StarryVae , now I'm getting an error
I guess this issue is due to my build method or incorrect use of the Tongsuo version。I use tongsuo-8.2.1,dockerfile is like this below
Is there any problem with my dockerfile,which version tongsuo should i use? or how should i build this? @InfoHunter |
you can try to comment out the limit of P-256 ECDSA here and it may work. but i am also not familiar with openssl, for sm2 certificate, its' NID is not NID_X9_62_prime256v1? cc @InfoHunter for help, thanks! |
How should Envoy be configured to support SM2 certificates? Can you provide an example configuration file?
The text was updated successfully, but these errors were encountered: