Skip to content
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

TLS: tlsInitiator set pfx file,then client.SendAsync(), a sspi error has occurred. #1688

Open
songhaideng opened this issue Nov 29, 2023 · 4 comments

Comments

@songhaideng
Copy link

Expected behavior

tlsInitiator set pfx file,then client.SendAsync(), expect successfully.

Actual behavior

a sspi error has occurred. The received message is abnormal, or the format is incorrect.

Steps to reproduce the behavior

fo-dicom version and OS/platform

5.1.1.0

@songhaideng songhaideng changed the title tlsInitiator set pfx file,then client.SendAsync(), a sspi error has occurred. TLS: tlsInitiator set pfx file,then client.SendAsync(), a sspi error has occurred. Nov 29, 2023
@songhaideng
Copy link
Author

I set X509CertificateCollection to X509Certificate2Collection, then server can verify client Certificate file.

@amoerie
Copy link
Collaborator

amoerie commented Dec 7, 2023

So, this issue is resolved?

@gofal Should we document somewhere that only X509Certificate2Collection is supported? Or should that work?

@gofal
Copy link
Contributor

gofal commented Dec 21, 2023

With certificates, the main work is not done in code, but before in communication between client and server, which type of certificate to use, do they need to have the same signing authority, what key-size is minimum required etc.
So I would not say, that it's a general documentation that X509Certificate2Collection has to be used. But there may be servers that only support certificates when used with advanced functions as provided in X509Certificate2Collection.
So when updating the documentation, this would be a more general documentation about certificates in .net and not about fo-dicom and how fo-dicom handles certificates.

@songhaideng
Copy link
Author

yeah, I use DVTK-DICOM Validatation Tool as Server, Then I can send width Tls Successfully.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants