Welcome to the Linux Foundation Forum!

Lab 7.6 Self Signed Cert Permission Denied


I am probably making an obvious amateur error, but I can't figure this one out. When I try to generate the private key, I get bash permission denied.

$ sudo /usr/bin/openssl genrsa -aes128 2048 > /etc/ssl/private/server.key
bash: /etc/ssl/private/server.key: Permission denied

Any advice would be greatly appreciated. Thanks!


  • Nevermind, figured it out:

    sudo su

  • lee42xlee42x Posts: 312

    Another option is sudo -i it keeps your root shell open and you can use redirection.

Sign In or Register to comment.