Skip to content

Instantly share code, notes, and snippets.

@martin-cotta
Created January 30, 2017 16:56
Show Gist options
  • Save martin-cotta/bed5186efe55cb2a8f279b8461616183 to your computer and use it in GitHub Desktop.
Save martin-cotta/bed5186efe55cb2a8f279b8461616183 to your computer and use it in GitHub Desktop.
Goddady SSL/TSL Certificate (P7B + CRT) to Azure PFX Certificate
# Required files:
# domain.crt and godaddy.p7b: provided by Godaddy when exporting
# private.key: self-generated file that was needed to create CSR (Certificate signing request)
$ openssl pkcs12 -export -in domain.crt -inkey private.key -certfile godaddy.p7b -out domain.pfx
# or if you need intermediate .cer instead of .p7b
$ openssl pkcs7 -print_certs -in godaddy.p7b -out godaddy.crt
$ openssl pkcs12 -export -in domain.crt -inkey private.key -certfile godaddy.cer -out domain.pfx
# the password asked by the command will be used when uploading the pfx to Azure
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment