[Error] Certificate Register
Posted: 07 Feb 2019, 17:35
Hi,
I'm a french student and i have to create a client/server for my studies !
I created my client. (I took the UaclClient) - (For my server i took the UaclServer - I havent change its main)
I'm trying to connect my client to the server with a security certificate.
I can create my certificate. (it's an untrusted certificate).
I add my certs to my UserIdentity :
(From my main)
And modify the type of connection :
(From RemoteObject.cs)
I configured my server like this :
(From InternalServer.cs)
When i try to connect, I have this error :
The client application does not have a certificate assigned.
So, i try with the debug mode and before the error i look at the object UserIdentity and the variable isnt null.
I don't know if the problem comes from adding of the certificate in the UserIdentity.
This is the right space to present the certificate ?
Or if the problem comes from my creation of the certs.
Thanks you for your reading and help.
Sincerely,
Americium.
I'm a french student and i have to create a client/server for my studies !
I created my client. (I took the UaclClient) - (For my server i took the UaclServer - I havent change its main)
I'm trying to connect my client to the server with a security certificate.
I can create my certificate. (it's an untrusted certificate).
I add my certs to my UserIdentity :
(From my main)
Code: Select all
obj.SessionHandle.Session.UserIdentity.Certificate = mycerts;
(From RemoteObject.cs)
Code: Select all
session.Connect(session.SessionUri.Uri.AbsoluteUri, SecuritySelection.BestAvailable);
(From InternalServer.cs)
Code: Select all
new SecurityProfile {ProfileUri = SecurityProfiles.Basic256, Enabled = true},
new SecurityProfile {ProfileUri = SecurityProfiles.Basic128Rsa15, Enabled = false},
new SecurityProfile {ProfileUri = SecurityProfiles.None, Enabled = false}
Code: Select all
application.AutoCreateCertificate = true;
The client application does not have a certificate assigned.
So, i try with the debug mode and before the error i look at the object UserIdentity and the variable isnt null.
I don't know if the problem comes from adding of the certificate in the UserIdentity.
This is the right space to present the certificate ?
Or if the problem comes from my creation of the certs.
Thanks you for your reading and help.
Sincerely,
Americium.