Welcome to the Linux Foundation Forum!

Lab 7.6 Self Signed Cert Permission Denied

Options

Hello,

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!

Comments

  • mstravato
    Options

    Nevermind, figured it out:

    sudo su

  • lee42x
    lee42x Posts: 380
    Options

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

Categories

Upcoming Training