UAServer CreateCertificate StatusException

Questions regarding the use of the .NET SDK 2.0 for Server or Client development or integration into customer products ...

Moderator: uasdknet

Post Reply
sback
Jr. Member
Jr. Member
Posts: 2
Joined: 12 Mar 2013, 11:43

UAServer CreateCertificate StatusException

Post by sback »

Good morning everyone,

I have a problem with the creation of a certificate for an ua server.
The sample project UADemoServer_VS2010 works well and creates certificates without errors.
I copied the source code of the demo server into a new project.
Then I started the program and entered the certificate data in the showing dialog.
After I clicked the button "create", the following error message appears:

EXCEPTION (StatusException)
Could not create a certificate via a proxy.
STATUS (BadUnexpectedError)
ADDITIONAL INFO
[StatusException] -error Unprocessed arguments exist possible syntax error: -hashSize
bei UnifiedAutomation.UaBase.CertificateFactory.CreateCertificate(String storeType, String storePath, CreateCertificateSettings settings)
STATUS (Good)
STACK TRACE
bei UnifiedAutomation.UaBase.CertificateFactory.CreateCertificate(String storeType, String storePath, CreateCertificateSettings settings)
bei UnifiedAutomation.Sample.CreateCertificateDialog.OkButton_Click(Object sender, EventArgs e) in C:\...\CreateCertificateDialog.cs:Zeile 196.

EXCEPTION (StatusException)
-error Unprocessed arguments exist possible syntax error: -hashSize
STATUS (BadUnexpectedError)
STATUS (Good)
STACK TRACE
bei UnifiedAutomation.UaBase.CertificateFactory.CreateCertificate(String storeType, String storePath, CreateCertificateSettings settings)


I tried to change and adjust all project settings, but no success. Using my new project or the sample demo server, the transfer parameters for the function CreateCertificate are exactly the same.
I also tried to execute on another PC and tried to use .Net 4, same problem.

Is there any setting I forgot to set?
Is there anybody who had the same problem?


My System Features:
Windows 7 Enterprise 64 Bit
Visual Studio Ultimate 2012 Update 1
Microsoft .Net Framework 4.5

Thank you in advance for your reply,
Best Regards,
Simon

User avatar
Support Team
Hero Member
Hero Member
Posts: 3068
Joined: 18 Mar 2011, 15:09

Re: UAServer CreateCertificate StatusException

Post by Support Team »

Hi Simon,

Are you using the latest version of the Opc.Ua.CertificateGenerator.exe (Productversion 1.01.334.0)? If you are using an older version, the described error can occurr.

Best Regards,
Unified Automation Support Team

sback
Jr. Member
Jr. Member
Posts: 2
Joined: 12 Mar 2013, 11:43

Re: UAServer CreateCertificate StatusException

Post by sback »

Dear Support Team,

thank you very much for your response.
I made a big mistake. The Opc.Ua.CertificateGenerator.exe is the latest version,
but I didn't realize that I have to copy it into the "bin" folder.

Best Regards,
Simon

Post Reply