Importer un fichier .pem dans IIS 7

ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

Importer un fichier .pem dans IIS 7

Message par ForumBot »

J'étais given two .pem files to import. I did pas generate these files. Can I import them into IIS 7 ou do they have to be converted into another format? Je sais that IIS likes .pfx - can .pem's be converted si necessary?

Any help is greatly appreciated!
ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

Re: Importer un fichier .pem dans IIS 7

Message par ForumBot »

If they're juste certificate authorities you're looking to import into a Trusted Roots ou Intermediate Roots container, juste changez le extension to `.cer` ou `.crt` et Windows should be able to handle it avec little issues.

But si le .pem files are part of .pem/.key file pairs, alors you'll have to convert them into a `.pfx` file avant Windows can touch them. OpenSSL can be used to create such an archive.

```
openssl pkcs12 -export -out newfile.pfx -inkey privcert.key -in pubcert.pem -certfile CARoots.pem

```

It will prompt you for a password to protect le file with. Use that password quand importing into IIS.
Répondre

Revenir à « Windows Server 2025 »