Giter Club home page Giter Club logo

Comments (5)

barnstee avatar barnstee commented on September 13, 2024

@eoursel. Martin, who wrote the script, is currently on vacation, but will have a look when he returns in 2 weeks' time.

from ua-.netstandard.

mregen avatar mregen commented on September 13, 2024

@eoursel sorry I can't repro this here on Ubuntu 16.04. Please check this:
i) there should not be a password set on the private key. Just hit twice return.
ii) rename or delete the ./OPC Foundation/ folder before ./createcert.sh is run to make sure there are only the new certs in the CertificateStore.
If it still doesn't work could you send me the failing .der & .pfx certs?

from ua-.netstandard.

eoursel avatar eoursel commented on September 13, 2024

@mregen you are right that's the password of the private key. I would recommend to add the option -passout like

openssl pkcs12 -export -in cert.pem -inkey cert.key -out $MYHOSTNAME.pfx -nodes -passout pass:

in order to avoid entering a password. As a matter of fact, i would try to automate the creation of a docker container with the UA server and it's a mandatory requirement to have a completely automated script with no operator interaction.

Anyway, there is at least a cyber security issue if we can't use a private key protected by a password to start a server. Ok i know that the TPM library @barnstee mentioned is certainly a clever solution.

Regards

Eric

from ua-.netstandard.

mregen avatar mregen commented on September 13, 2024

@eoursel Thanks, good point, I will fix the scripts. The scripts are only meant to be used to run the samples, not in production.
For the pw support for the private keys we should have a feature request to make sure it is properly supported if required.

from ua-.netstandard.

mregen avatar mregen commented on September 13, 2024

#51 to improve cert handling.

from ua-.netstandard.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.