{"id":1748,"date":"2021-11-22T19:12:01","date_gmt":"2021-11-22T23:12:01","guid":{"rendered":"https:\/\/www.neothek.com\/soporte\/?post_type=kb&#038;p=1748"},"modified":"2025-01-23T16:21:53","modified_gmt":"2025-01-23T20:21:53","slug":"como-convertir-un-certificado-ssl-a-formato-pfx","status":"publish","type":"kb","link":"https:\/\/www.neothek.com\/soporte\/articulo\/como-convertir-un-certificado-ssl-a-formato-pfx\/","title":{"rendered":"C\u00f3mo convertir un certificado SSL a formato PFX"},"content":{"rendered":"<p>Convertir un certificado SSL al formato PFX es una tarea esencial para quienes gestionan servidores que requieren este tipo de archivo, como los que operan con Windows IIS.<\/p>\n<h2>\u00bfQu\u00e9 es un archivo PFX?<\/h2>\n<p>Un archivo PFX (Personal Information Exchange) es un formato binario que agrupa en un solo archivo el certificado del servidor, los certificados intermedios y la clave privada. Este formato es com\u00fanmente utilizado en sistemas Windows para importar y exportar certificados y sus claves asociadas.<\/p>\n<h2>Requisitos previos<\/h2>\n<p>Antes de iniciar la conversi\u00f3n, aseg\u00farate de contar con lo siguiente:<\/p>\n<ul>\n<li>Clave privada original: Esta es la clave que se gener\u00f3 junto con la solicitud de certificado.<\/li>\n<li>Certificado en formato PEM: Archivos con extensiones como <code>.pem<\/code>, <code>.crt<\/code> o <code>.cer<\/code>.<\/li>\n<li>OpenSSL instalado: Esta herramienta es fundamental para la conversi\u00f3n y est\u00e1 disponible para diversos sistemas operativos.<\/li>\n<\/ul>\n<h2>Pasos para convertir un certificado PEM a PFX<\/h2>\n<h3>1. Prepara los archivos necesarios<\/h3>\n<p>Aseg\u00farate de tener los siguientes archivos:<\/p>\n<ul>\n<li><code>privateKey.key<\/code>: Tu clave privada.<\/li>\n<li><code>certificate.crt<\/code>: Tu certificado p\u00fablico.<\/li>\n<li><code>ca_bundle.crt<\/code>: (Opcional) Certificados intermedios proporcionados por la autoridad certificadora.<\/li>\n<\/ul>\n<h3>2. Ejecuta el siguiente comando en la terminal<\/h3>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">openssl pkcs12 -export -out certificate.pfx -inkey privateKey.key -in certificate.crt -certfile ca_bundle.crt<\/pre>\n<table style=\"width: 100%; border-collapse: collapse; border-style: solid; border-color: #d4d4d4; height: 442px;\">\n<tbody>\n<tr style=\"background-color: #dae1e3; height: 46px;\">\n<td style=\"width: 402px; height: 46px;\"><strong>Par\u00e1metros<\/strong><\/td>\n<td style=\"width: 402px; height: 46px;\"><strong>Descripci\u00f3n<\/strong><\/td>\n<\/tr>\n<tr style=\"height: 46px;\">\n<td style=\"width: 402px; height: 46px;\">openssl<\/td>\n<td style=\"width: 402px; height: 46px;\">Invoca la herramienta OpenSSL.<\/td>\n<\/tr>\n<tr style=\"background-color: #f7f7f7;\">\n<td style=\"width: 402px; height: 76px;\">pkcs12<\/td>\n<td style=\"width: 402px; height: 76px;\">Especifica la utilidad para trabajar con archivos PKCS#12.<\/td>\n<\/tr>\n<tr style=\"height: 46px;\">\n<td style=\"width: 402px; height: 46px;\">-export -out certificate.pfx<\/td>\n<td style=\"width: 402px; height: 46px;\">Indica que se exportar\u00e1 un archivo PFX con el nombre certificate.pfx.<\/td>\n<\/tr>\n<tr style=\"background-color: #f7f7f7;\">\n<td style=\"width: 402px; height: 76px;\">-inkey privateKey.key<\/td>\n<td style=\"width: 402px; height: 76px;\">Especifica la clave privada a incluir.<\/td>\n<\/tr>\n<tr style=\"height: 76px;\">\n<td style=\"width: 402px; height: 76px;\">-in certificate.crt<\/td>\n<td style=\"width: 402px; height: 76px;\">Indica el certificado p\u00fablico a incluir.<\/td>\n<\/tr>\n<tr style=\"height: 76px; background-color: #f7f7f7;\">\n<td style=\"width: 402px; height: 76px;\">-certfile ca_bundle.crt<\/td>\n<td style=\"width: 402px; height: 76px;\">(Opcional) A\u00f1ade certificados intermedios para completar la cadena de confianza.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>3. Protege tu archivo PFX con una contrase\u00f1a<\/h3>\n<p>Al ejecutar el comando, se te solicitar\u00e1 ingresar y confirmar una contrase\u00f1a. Esta contrase\u00f1a ser\u00e1 necesaria al importar el certificado en otros sistemas, por lo que es crucial recordarla. Los certificados PFX utilizan la extensi\u00f3n .pfx o .p12.<\/p>\n<h2>Consideraciones adicionales<\/h2>\n<ul>\n<li><strong>Integridad de la cadena de certificados<\/strong>: Incluir los certificados intermedios es vital para asegurar que los navegadores y clientes reconozcan la validez de tu certificado sin advertencias.<\/li>\n<li><strong>Compatibilidad de los formatos<\/strong>: Aseg\u00farate de elegir el formato correcto seg\u00fan las necesidades del servidor o aplicaci\u00f3n donde se implementar\u00e1 el certificado.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Convertir un certificado SSL al formato PFX es una tarea esencial para quienes gestionan servidores que requieren este tipo de archivo, como los que operan con Windows IIS. \u00bfQu\u00e9 es un archivo PFX? Un archivo PFX (Personal Information Exchange) es un formato binario que agrupa en un solo archivo el certificado del servidor, los certificados [&hellip;]<\/p>\n","protected":false},"author":8,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"site-sidebar-layout":"default","site-content-layout":"default","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"kbtopic":[36],"kbtag":[152,154,153,41],"class_list":["post-1748","kb","type-kb","status-publish","hentry","kbtopic-certificados-ssl-tls","kbtag-certificado","kbtag-convertir-un-certificado","kbtag-formato-pfx","kbtag-ssl"],"_links":{"self":[{"href":"https:\/\/www.neothek.com\/soporte\/wp-json\/wp\/v2\/kb\/1748","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.neothek.com\/soporte\/wp-json\/wp\/v2\/kb"}],"about":[{"href":"https:\/\/www.neothek.com\/soporte\/wp-json\/wp\/v2\/types\/kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.neothek.com\/soporte\/wp-json\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/www.neothek.com\/soporte\/wp-json\/wp\/v2\/comments?post=1748"}],"version-history":[{"count":21,"href":"https:\/\/www.neothek.com\/soporte\/wp-json\/wp\/v2\/kb\/1748\/revisions"}],"predecessor-version":[{"id":2384,"href":"https:\/\/www.neothek.com\/soporte\/wp-json\/wp\/v2\/kb\/1748\/revisions\/2384"}],"wp:attachment":[{"href":"https:\/\/www.neothek.com\/soporte\/wp-json\/wp\/v2\/media?parent=1748"}],"wp:term":[{"taxonomy":"kbtopic","embeddable":true,"href":"https:\/\/www.neothek.com\/soporte\/wp-json\/wp\/v2\/kbtopic?post=1748"},{"taxonomy":"kbtag","embeddable":true,"href":"https:\/\/www.neothek.com\/soporte\/wp-json\/wp\/v2\/kbtag?post=1748"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}