Skip to content

Commit 3860e21

Browse files
committed
Encrypting backup jobs with Veeam and OKMS - Guide creation
1 parent d100f31 commit 3860e21

File tree

16 files changed

+244
-0
lines changed

16 files changed

+244
-0
lines changed
Lines changed: 120 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,120 @@
1+
---
2+
title: "Encrypting Backup Jobs with Veeam and OKMS"
3+
excerpt: "Learn how to configure encrypted backup jobs using Veeam and the OVHcloud KMS (OKMS) service to enhance data protection."
4+
updated: 2025-03-31
5+
---
6+
7+
## Objective
8+
9+
This guide explains how to configure encrypted backup jobs using the Veeam backup solution and the OVHcloud KMS (OKMS) service.
10+
11+
## Requirements
12+
13+
- Access to the [OVHcloud Control Panel](/links/manager).
14+
- A [Hosted Private Cloud VMware vSphere on OVHcloud](/links/hosted-private-cloud/vmware) offer.
15+
- You must have read the following guides:
16+
- [KMS integration for VMware on OVHcloud](/pages/hosted_private_cloud/hosted_private_cloud_powered_by_vmware/vmware_overall_vm-encrypt).
17+
- [Getting started with OKMS](/pages/manage_and_operate/kms/quick-start).
18+
19+
## Instructions
20+
21+
### Step 1: Create the Certificate in OKMS Service
22+
23+
You can create the certificate from the dedicated entry from the [OVHcloud Control Panel](/links/manager):
24+
25+
1.\ Click `Hosted Private Cloud`{.action} then `Identity, Security & Operations`{.action} and `Key Management Service`{.action}.Select your KMS.
26+
27+
![Console Dashboard](images/console_1.png){.thumbnail}
28+
29+
2.\ Select your KMS.
30+
31+
![KMS List](images/console_2.png){.thumbnail}
32+
33+
3.\ Then, click on `Generate an access certificate`{.action} button and generate the private key using the following API (without CSR):
34+
35+
> [!api]
36+
>
37+
> @api {v1} /okms POST / /okms/resource/{okmsId}/credential
38+
39+
![Generate an access certificate](images/veeam_okms_1.png){.thumbnail}
40+
41+
4.\ Retrieve the certificate by making a GET request:
42+
43+
> [!api]
44+
>
45+
> @api {v1} /okms GET /okms/resource/{okmsId}/credential
46+
47+
Fill in the required fields in the Generate an access certificate window and select the option `I don’t have a private key`{.action}.
48+
49+
![Generate Access Certificate - No Private Key](images/veeam_okms_2.png){.thumbnail}
50+
51+
5.\ Download the private key.
52+
53+
6.\ Download the certificate.
54+
55+
![Download Certificate](images/veeam_okms_3.png){.thumbnail}
56+
57+
### Step 2: Convert PEM to PFX
58+
59+
To import the certificate into Veeam, you must convert it to `.pfx` format using the following command:
60+
61+
```bash
62+
openssl pkcs12 -export -out cert.pfx -inkey privatekey.pem -in certificate.pem
63+
```
64+
65+
### Step 3: Import the Certificate to Veeam Windows Certificate Store
66+
67+
1. Open the Windows Certificate Store on your Veeam server.
68+
1. Import the `.pfx` certificate into the Veeam Windows Certificate Store.
69+
1. Mark the certificate as exportable during import.
70+
71+
![Import Certificate - Exportable](images/veeam_okms_4.png){.thumbnail}
72+
73+
### Step 4: Register the KMS Inside Veeam
74+
75+
1.\ Open Veeam Backup & Replication and go to `Credentials & Passwords`{.action} then click on `Key Management Servers`{.action}.
76+
77+
![Veeam Key Management Servers](images/veeam_okms_5.png){.thumbnail}
78+
79+
2.\ Click on `Add`{.action} to a new KMS server.
80+
81+
![Add KMS Server](images/veeam_okms_6.png){.thumbnail}
82+
83+
3.\ Enter the server address.
84+
85+
For example, for a KMS created in the **eu-west-rbx** region: <https://eu-west-rbx.okms.ovh.net>.
86+
87+
Then, import your certificate from the Windows Key Store (the .`.pfx` file you imported previously).
88+
89+
![Add KMS Server Details](images/veeam_okms_7.png){.thumbnail}
90+
91+
### Step 5: Retrieve the Server Certificate
92+
93+
To retrieve the certificate from the OKMS server, use this command:
94+
95+
```bash
96+
openssl s_client -connect eu-west-rbx.okms.ovh.net:443 2>/dev/null </dev/null | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p'
97+
```
98+
99+
### Step 6: Configure Backup Job Encryption
100+
101+
1.\ Register the KMS server in your Veeam Backup & Replication console.
102+
2.\ Select the desired backup job and configure encryption using the registered KMS.
103+
104+
![Configure Backup Encryption](images/veeam_okms_8.png){.thumbnail}
105+
106+
3.\ Once the backup is complete, you will see a lock icon next to the backup name indicating it is encrypted.
107+
108+
![Encrypted Backup](images/veeam_okms_9.png){.thumbnail}
109+
110+
4.\ If you encounter the error **Unsupported attribute: OPERATION_POLICY_NAME**, follow the instructions provided in the documentation to resolve the issue.
111+
112+
![Operation Policy Name Error](images/veeam_okms_10.png){.thumbnail}
113+
114+
## Go further
115+
116+
If you need training or technical assistance to implement our solutions, please contact your Technical Account Manager or click on [this link](/links/professional-services) to get a quote and ask our Professional Services experts for a custom analysis of your project.
117+
118+
Ask questions, give your feedback and interact directly with the team building our Hosted Private Cloud services on the dedicated [Discord](https://discord.gg/ovhcloud) channel.
119+
120+
Join our [community of users](/links/community).
Lines changed: 119 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,119 @@
1+
---
2+
title: "Chiffrement des tâches de sauvegarde avec Veeam et OKMS"
3+
excerpt: "Découvrez comment configurer des tâches de sauvegarde chiffrées en utilisant Veeam et le service KMS d’OVHcloud (OKMS) pour renforcer la protection des données."
4+
updated: 2025-03-28
5+
---
6+
7+
## Objectif
8+
9+
Ce guide explique comment configurer des tâches de sauvegarde chiffrées en utilisant la solution de sauvegarde Veeam et le service KMS d’OVHcloud (OKMS).
10+
11+
## Prérequis
12+
13+
- Être connecté à l'[espace client OVHcloud](/links/manager).
14+
- Disposer d'une offre [VMware on OVHcloud](/links/hosted-private-cloud/vmware).
15+
- Avoir lu les guides :
16+
- [Intégration d'un KMS pour VMware on OVHcloud](/pages/hosted_private_cloud/hosted_private_cloud_powered_by_vmware/vmware_overall_vm-encrypt).
17+
- [Premiers pas avec OKMS](/pages/manage_and_operate/kms/quick-start).
18+
19+
## En pratique
20+
21+
### Étape 1 : Création du certificat dans le service OKMS
22+
23+
Vous pouvez créer le certificat depuis l'[espace client OVHcloud](/links/manager) :
24+
25+
1.\ Cliquez sur `Hosted Private Cloud`{.action} puis `Identity, Security & Operations`{.action} et enfin `Key Management Service`{.action}. Sélectionnez votre KMS.
26+
27+
![Console Dashboard](images/console_1.png){.thumbnail}
28+
29+
2.\ Sélectionnez votre KMS.
30+
31+
![KMS List](images/console_2.png){.thumbnail}
32+
33+
3.\ Ensuite, cliquez sur le bouton `Generate an access certificate`{.action} et générez la clé privée en utilisant l’API suivante (sans CSR) :
34+
35+
> [!api]
36+
>
37+
> @api {v1} /okms POST / /okms/resource/{okmsId}/credential
38+
39+
![Generate an access certificate](images/veeam_okms_1.png){.thumbnail}
40+
41+
4.\ Récupérez le certificat en effectuant une requête GET :
42+
43+
> [!api]
44+
>
45+
> @api {v1} /okms GET /okms/resource/{okmsId}/credential
46+
47+
Remplissez les champs requis dans la fenêtre **Generate an access certificate** et sélectionnez l’option `I don’t have a private key`{.action}.
48+
49+
![Generate Access Certificate - No Private Key](images/veeam_okms_2.png){.thumbnail}
50+
51+
5.\ Téléchargez la clé privée.
52+
53+
6.\ Téléchargez le certificat.
54+
55+
![Download Certificate](images/veeam_okms_3.png){.thumbnail}
56+
57+
### Étape 2 : Conversion du certificat PEM en format PFX
58+
59+
Pour importer le certificat dans Veeam, vous devez le convertir au format `.pfx` en utilisant la commande suivante :
60+
61+
```bash
62+
openssl pkcs12 -export -out cert.pfx -inkey privatekey.pem -in certificate.pem
63+
```
64+
65+
### Étape 3 : Importation du certificat dans le Windows Certificate Store de Veeam
66+
67+
1. Ouvrez le Windows Certificate Store sur votre serveur Veeam.
68+
1. Importez le certificat `.pfx` dans le Windows Certificate Store de Veeam.
69+
1. Cochez l'option permettant de rendre le certificat exportable lors de l'importation.
70+
71+
![Import Certificate - Exportable](images/veeam_okms_4.png){.thumbnail}
72+
73+
### Étape 4 : Enregistrement du KMS dans Veeam
74+
75+
1.\ Ouvrez Veeam Backup & Replication et allez dans `Credentials & Passwords`{.action} puis cliquez sur `Key Management Servers`{.action}.
76+
77+
![Veeam Key Management Servers](images/veeam_okms_5.png){.thumbnail}
78+
79+
2.\ Cliquez sur `Add`{.action} pour ajouter un nouveau serveur KMS.
80+
81+
![Add KMS Server](images/veeam_okms_6.png){.thumbnail}
82+
83+
3.\ Entrez l'adresse du serveur.
84+
85+
Par exemple, pour un KMS créé dans la région **eu-west-rbx** : <https://eu-west-rbx.okms.ovh.net>.\
86+
87+
Ensuite, importez votre certificat depuis le Windows Key Store (le fichier `.pfx` que vous avez importé précédemment).
88+
89+
![Add KMS Server Details](images/veeam_okms_7.png){.thumbnail}
90+
91+
### Étape 5 : Récupération du certificat serveur
92+
93+
Pour récupérer le certificat depuis le serveur OKMS, utilisez cette commande :
94+
95+
```bash
96+
openssl s_client -connect eu-west-rbx.okms.ovh.net:443 2>/dev/null </dev/null | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p'
97+
```
98+
99+
### Étape 6 : Configuration du chiffrement des tâches de sauvegarde
100+
101+
1.\ Enregistrez le serveur KMS dans votre console Veeam Backup & Replication.
102+
2.\ Sélectionnez la tâche de sauvegarde souhaitée et configurez le chiffrement en utilisant le KMS enregistré.
103+
104+
![Configure Backup Encryption](images/veeam_okms_8.png){.thumbnail}
105+
3.\ Une fois la sauvegarde terminée, vous verrez une icône de cadenas à côté du nom de la sauvegarde indiquant qu'elle est chiffrée.
106+
107+
![Encrypted Backup](images/veeam_okms_9.png){.thumbnail}
108+
109+
4.\ Si vous rencontrez l'erreur **Unsupported attribute: OPERATION_POLICY_NAME**, suivez les instructions fournies dans la documentation pour résoudre le problème.
110+
111+
![Operation Policy Name Error](images/veeam_okms_10.png){.thumbnail}
112+
113+
## Aller plus loin
114+
115+
Si vous avez besoin d'une formation ou d'une assistance technique pour la mise en oeuvre de nos solutions, contactez votre commercial ou cliquez sur [ce lien](/links/professional-services) pour obtenir un devis et demander une analyse personnalisée de votre projet à nos experts de l’équipe Professional Services.
116+
117+
Posez vos questions, donnez votre avis et échangez directement avec l’équipe en charge des services Hosted Private Cloud sur notre canal [Discord](https://discord.gg/ovhcloud).
118+
119+
Échangez avec notre [communauté d'utilisateurs](/links/community).
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading

0 commit comments

Comments
 (0)