# Generowanie key oraz pem z pfx

Komendy potrzebne jeżeli z pliku \*.pfx chcemy wygenerować pliki certyfikatu w formacie crt + key wymagane m.in przez nginx

```bash
openssl pkcs12 -in myfile.pfx -nokeys -out certificate.pem 
```

```bash
openssl pkcs12 -in myfile.pfx -nocerts -out mykey.key -nodes 
```