...
Info | ||
---|---|---|
| ||
Generating client certificates for OPC UA using OpenSSL. On Windows we used https://slproweb.com/products/Win32OpenSSL.html. Before generating, you need to create a file domain.ext with the following content: subjectKeyIdentifier=hash
Then generate a key (e.g. ProSoft PLX32-EIP-MBTCP-UA Multi-Protocol Gateway needed 2048-bit, other devices accepted 4096-bit): openssl genrsa -out private.pem 2048 and generate a certificate signing request (CSR): openssl req -new -key private.pem -out private.csr Then, you need to enter several parameters. Following the UaExpert, we only fill in Organization Name, Common Name, and Email Address, and instead of the other parameters, we enter a dot (so that they are empty). Country Name (2 letter code) [AU]:. Then generate a certificate valid for days (10000 corresponds to approximately 27 years). openssl x509 -req -days 10000 -in private.csr -signkey private.pem -out cert.crt -extfile domain.ext Convert the certificate cert.crt to der format: openssl x509 -inform pem -in cert.crt -outform der -out cert.der Copy the resulting certificate (cert.der) to the own directory and the private key (private.pem) to the private directory in the kom-opcua directory, see note. |
...