Results 1 to 4 of 4

Thread: Apache HTTPS selfsigned cert w/o passphrase

  1. #1
    Join Date
    Aug 2009
    Location
    Mclean, VA, USA
    Beans
    67
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Question Apache HTTPS selfsigned cert w/o passphrase

    Hi!

    I have been running a web server (Ubuntu 10.10/Apache) for the past few months. I now want to offer HTTPS. I don't mind if it being self signed because the people that use the server are very tech knowledgeable and I will tell them that the cert is self signed. I have set up HTTPS cert with a passphrase and everything works, but where the server is located there are some power outages. I need the server to start when the power is restored along with Apache. This will not happen when there is a passphrase on the cert. I was about to generate a new one with out a passphrase when I read this:

    Code:
    You can also run your secure service without a passphrase.         This is convenient because you will not need to enter the         passphrase every time you start your secure service. But it         is highly insecure and a compromise of the key means a         compromise of the server as well.
    (https://help.ubuntu.com/8.04/serverg...-security.html)

    If I decide to run the server with HTTPS with out a passphrase how is my server insecure? Would it be better to not use HTTPS or use HTTPS with out a passphrase?

    Thanks!
    Carlos
    A computer without a Microsoft operating system is like a dog without bricks tied to its head.

  2. #2
    Join Date
    Apr 2006
    Location
    Montana
    Beans
    Hidden!
    Distro
    Kubuntu Development Release

    Re: Apache HTTPS selfsigned cert w/o passphrase

    Think of it this way, if you encrypt a file, but set a blank password, what good is the encryption ?

    If someone has access to the server , either physical access or via leverage of a vulnerability, they can decrypt the https data without a password.

    With that in mind, IMO it is a small vulnerability, and for your use I would not worry about it.

    Now if you are doing financial transactions, then yes it is an issue.
    There are two mistakes one can make along the road to truth...not going all the way, and not starting.
    --Prince Gautama Siddharta

    #ubuntuforums web interface

  3. #3
    Join Date
    Apr 2008
    Location
    Far, far away
    Beans
    2,148
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Apache HTTPS selfsigned cert w/o passphrase

    I don't think this is much of a concern for you. People forget that if someone gets physical access or gets root access on your system they can just replace the certificate with their own anyway. The passphrase isn't going to stop that.

    However, make real sure that write access for the cert/keys is root only. And read access for the key is root only. I've always thought that it's more important the server restarts without intervention.

    Your server is still just as secure for website use and only vulnerable to root access - but as mentioned, when someone gets root access they can do anything they like and you have bigger problems.
    Last edited by BkkBonanza; June 13th, 2011 at 08:00 PM.

  4. #4
    Join Date
    Aug 2009
    Location
    Mclean, VA, USA
    Beans
    67
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: Apache HTTPS selfsigned cert w/o passphrase

    I think I will continue to run HTTP and run a VPN for sensitive content. Anyway thanks for the quick replies!

    Thanks,
    Carlos
    A computer without a Microsoft operating system is like a dog without bricks tied to its head.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •