cepces
cepces copied to clipboard
Implement UsernamePassword method
And by the way: Despite Microsoft saying otherwise in some parts of their documentation, Certificate authentication to CEP/CES doe not require message authentication but works with transport authentication using a TLS client certificate for HTTPS.
I don't think we should be implementing the username/password authentication, because this encourages users to place passwords in a plain-text file (at least the way it is currently written). An alternative I'd consider is if we stored the creds in a keychain (such as using python keyring).
@hansjoachimknobloch Maybe you could separate the UsernamePassword and Certificate auth methods into 2 different merge requests here. I'm ok with the Certificate auth. Then we could continue to work through a potential solution for UsernamePassword auth.
@dmulder What would you think about using a fitting certmonger getcert-request command-line parameter for transferring the AD password to cepces-submit as environment variable. "-L" might work. However I do not yet know whether and if so, where, certmonger stores such passwords for certificate renewal.
@dmulder What would you think about using a fitting certmonger getcert-request command-line parameter for transferring the AD password to cepces-submit as environment variable. "-L" might work. However I do not yet know whether and if so, where, certmonger stores such passwords for certificate renewal.
IIRC, you can list those later, so you would still be exposing the password.
IIRC, you can list those later, so you would still be exposing the password.
Thinking about it twice, -L probably wouldn't even work the way I imagined because certmonger will incorprate the SCEP challenge password directly into the CSR and not even pass it to cepces-submit in a separate environment variable.
@dmulder What would you think about using a fitting certmonger getcert-request command-line parameter for transferring the AD password to cepces-submit as environment variable. "-L" might work. However I do not yet know whether and if so, where, certmonger stores such passwords for certificate renewal.
We could provide a cepces-submit command line parameter, then overwrite the args to prevent seeing the password in a ps
.