]> git.proxmox.com Git - pmg-docs.git/blame - pmg-ssl-certificate.adoc
bump version to 5.0-8
[pmg-docs.git] / pmg-ssl-certificate.adoc
CommitLineData
81b3c41f
DM
1SSL certificate
2---------------
3
4Access to the administration web interface is always done via
5`https`. The default certificate is never valid for your browser and
6you get always warnings.
7
8If you want to get rid of these warnings, you have to generate a valid
9certificate for your server.
10
11Login to your Proxmox via ssh or use the console:
12
13----
14openssl req -newkey rsa:2048 -nodes -keyout key.pem -out req.pem
15----
16
17Follow the instructions on the screen, see this example:
18
19----
20Country Name (2 letter code) [AU]: AT
21State or Province Name (full name) [Some-State]:Vienna
22Locality Name (eg, city) []:Vienna
23Organization Name (eg, company) [Internet Widgits Pty Ltd]: Proxmox GmbH
24Organizational Unit Name (eg, section) []:Proxmox Mail Gateway
25Common Name (eg, YOUR name) []: yourproxmox.yourdomain.com
26Email Address []:support@yourdomain.com
27
28Please enter the following 'extra' attributes to be sent with your certificate request
29A challenge password []: not necessary
30An optional company name []: not necessary
31----
32
33After you finished this certificate request you have to send the file
34`req.pem` to your Certification Authority (CA). The CA will issue the
35certificate (BASE64 encoded) based on your request – save this file as
36`cert.pem` to your Proxmox.
37
38To activate the new certificate, do the following on your Proxmox:
39
40----
41cat key.pem cert.pem >/etc/pmg/pmg-api.pem
42----
43
44The restart the API servers
45
46----
47systemctl restart pmgproxy
48----
49
50Test your new certificate by using your browser.
51
52NOTE: To transfer files from and to your Proxmox, you can use secure
53copy: If you desktop is Linux, you can use the `scp` command line
54tool. If your desktop PC is windows, please use a scp client like
55WinSCP (see http://winscp.net/).