0

I need to add to the store the certificate

Robot code is

${result} Run Process certutil -addstore "Root" "C:\Users\Desktop\xyz.crt" shell=True

log ${result.stdout}

output is Administrator permissions are needed to use the selected options. Use an administrator command prompt to complete these tasks. CertUtil: The requested operation requires elevation.

So I need to run the process using privileged mode how to achieve it using robot frmaework

1
  • What operating system are you running? Does this need to be cross platform? What happens if you run python as admin? Commented May 17, 2020 at 18:05

1 Answer 1

1

Try this assuming only windows

${result} Run Process runas /noprofile /user:<account with admin> <program that needs admin e.g. certutil>

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.