Home
lily
wiki
(WikiPage)
This is the personal project of lily. This project is created automatically during user registration as an easy place to store personal data that doesn't need its own project such as cloned repositories.
Last updated: 2023-08-22
blog Discussion
t-probst
blog
(Discussion)
Forum for blog comments
Last updated: 2023-08-22
Post by t-probst on Strong Private Key Protection for Encryption Certificates
CODESYS Forge
talk
(Post)
Hello, We are trying to implement an automated method of adding of a certificate and private key to the Windows certificate store for encrypting CODESYS projects. We want to do this so that users do not have to deal with details of certificates at all and to prevent user error. We are keen on enforcing strong private key protection since it ensures that a password is required for the certificate to be used to decrypt a CODESYS project. When we add a certificate to the certificate store and enable strong key protection using the Microsoft Management Console Certificates snap-in, it works as expected. However, through this method the user may mistakenly not enable strong private key protection. For the certificates we create programmatically (using Microsoft’s Cryptography Next Generation API in .Net 7) bag attributes are added to the certificate and key by the API. These bag attributes are as follows: Bag Attributes localKeyID: 01 00 00 00 subject=C = xx, ST = xxx, O = xxx, OU = xxx, CN = xxx issuer=C = xx, ST = xxx, L = xxx, O = xxx, OU = xxx, CN = xxx -----BEGIN CERTIFICATE----- [encoded certificate] -----END CERTIFICATE----- After using this certificate with bag attributes to encrypt a CODESYS project, it can’t be decrypted, showing this error: "The specified project could not be loaded. Possible reasons might be: - The project file is corrupted or invalid - The project has been saved with a newer version of the programming system. If this is the case, you can open the project in the corresponding version. Choose "Save as..." with the appropriate storage version, and retry again. - You may not have the necessary permissions to lad the project" We know that the bag attributes are causing the issue because if we manually edit the certificate file to remove them before using the certificate to encrypt a project, the project can be decrypted as expected. However, we are unable to automatically enforce strong key protection using this method. Here is a link to a StackOverFlow question that we have posted recently for this issue: https://stackoverflow.com/questions/76922355/enforcing-strong-private-key-protection-for-x509certificate2-objects-in-net-mod Any help is greatly appreciated.
Last updated: 2023-08-22
Strong Private Key Protection for Encryption Certificates
CODESYS Forge
talk
(Thread)
Strong Private Key Protection for Encryption Certificates
Last updated: 2023-08-22
Home
t-probst
wiki
(WikiPage)
This is the personal project of t-probst. This project is created automatically during user registration as an easy place to store personal data that doesn't need its own project such as cloned repositories.
Last updated: 2023-08-22
wiki Discussion
t-probst
wiki
(Discussion)
Forum for wiki comments
Last updated: 2023-08-22
(no subject)
t-probst
wiki
(Thread)
Last updated: 2023-08-22
Home
hugob
wiki
(WikiPage)
This is the personal project of hugob. This project is created automatically during user registration as an easy place to store personal data that doesn't need its own project such as cloned repositories.
Last updated: 2023-08-23
wiki Discussion
hugob
wiki
(Discussion)
Forum for wiki comments
Last updated: 2023-08-23
blog Discussion
hugob
blog
(Discussion)
Forum for blog comments
Last updated: 2023-08-23
(no subject)
hugob
wiki
(Thread)
Last updated: 2023-08-23
Post by paulpotat on Project size increasing continuously
CODESYS Forge
talk
(Post)
I still have the same problem with Codesys 3.5 SP18. Initially, my project is ~5 Mo. I work on it for like 3-4 days and it goes up to ~10Mo. If I make an export of the project and import it in a new empty project, it goes back to approximately 5 Mo. Why is it doing this ?
Last updated: 2023-08-23
Post by vformanek on No source code available for profinet library
CODESYS Forge
talk
(Post)
Hello, I have been using CODESYS for a while and after updating to version 3.5.18.50 the code randomly stops with this fault. Why is that ? I have tried to locate the fault in the Call Stack but I dont know what to do now... I have updated the projects properly for the version I am using. This fault started happening after like 14 days of using the new version of CODESYS.
Last updated: 2023-08-23
Post by hugob on Start Control Win Softmotion Runtime
CODESYS Forge
talk
(Post)
Last updated: 2023-08-23
Project size increasing continuously
CODESYS Forge
talk
(Thread)
Project size increasing continuously
Last updated: 2023-08-23
Start Control Win Softmotion Runtime
CODESYS Forge
talk
(Thread)
Start Control Win Softmotion Runtime
Last updated: 2023-08-23
Post by bbm1995 on Security Screen - Custom Certificates for OPC UA Server?
CODESYS Forge
talk
(Post)
Hi everyone, is it possible to use selfsigned/created certificates (eg. with X - Certificate and Key Management) as a OPC UA Server certificate in the Security Screen? As far as I know I can only upload client certificates to the PLC and move it to "Trusted", "Untrusted" and "Quarantined". Same question is on sps-forum.de
Last updated: 2023-08-23
Home
bbm1995
wiki
(WikiPage)
This is the personal project of bbm1995. This project is created automatically during user registration as an easy place to store personal data that doesn't need its own project such as cloned repositories.
Last updated: 2023-08-23
wiki Discussion
bbm1995
wiki
(Discussion)
Forum for wiki comments
Last updated: 2023-08-23
blog Discussion
bbm1995
blog
(Discussion)
Forum for blog comments
Last updated: 2023-08-23
(no subject)
bbm1995
wiki
(Thread)
Last updated: 2023-08-23
Post by kreisfilho on Same program to more than one PLC
CODESYS Forge
talk
(Post)
Hi, How can I assign a monitor (non touch) connected to a Raspberry pi (via HDMI) as visualization output?
Last updated: 2023-08-23
Post by vformanek on No source code available for profinet library
CODESYS Forge
talk
(Post)
I have tried downgrading and it seems fine now. I am now on version 4.3.0.0 for the library. Mainly the PN controller caused the issue for me. Funny weird is that even the PN controller versions 4.3.1.0 and 4.3.0.0 cause the error. Version 4.2.0.0 works fine.
Last updated: 2023-08-23
No source code available for profinet library
CODESYS Forge
talk
(Thread)
No source code available for profinet library
Last updated: 2023-08-23
Post by fless on No source code available for profinet library
CODESYS Forge
talk
(Post)
looks like you are running in a bug in the newest version 4.4.0 of the profinet library or the new library triggers a bug in your code. did you update your profinet device too? you could try to downgrade to an older version of the library. via library manager - placeholders, double click Profinet 4.4.0 in the library column and choose an older version.
Last updated: 2023-08-23