-1

I've tried activating an SSL cert. When it asked for the CSR code, I was thinking about generating this code on local machine because I haven't rented my own VPS yet. The thing is, I'm not sure whether or not the CSR code generated on local server is safe.

Is it required to generate this code on the actual server that's going to host the site?

1 Answer 1

1

It is not required to generate the CSR on the machine the certificate is going to be used.

Yet, the private key must be transmitted to the machine it is to be used on at some point, securely.

Also, you have to keep the private key private at all times especially while it is on multiple machines, which increases the risk of it being compromised; especially if it's your desktop machine you use for daily browsing.

5
  • Do you mean that it's not recommended to generate this code somewhere else other than the actual server?
    – Lewis
    Mar 30, 2016 at 7:40
  • 1
    You may generate the key pair and/or the CSR wherever you like. You just have to keep tha key pair private at all times. Generation of the pair on a local, completely trusted machine might even be useful in case the hardware randomness of the server you rent is compromised.
    – Tobi Nary
    Mar 30, 2016 at 7:41
  • BTW, is it ok to transfer the code via openssh?
    – Lewis
    Mar 30, 2016 at 7:44
  • 2
    Generally a good idea, as long as the used cipher and key exchage suites are secure.
    – Tobi Nary
    Mar 30, 2016 at 7:46
  • @Tresdin Adding to SmokeDispenser's comment, you may want to check out Secure Secure Shell.
    – user
    Mar 30, 2016 at 14:39

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .