[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"howto:p12:linux:en":3},{"resolvedFromAlias":4,"canonicalExt":5,"ext":5,"name":6,"category":7,"categoryName":8,"updatedAt":9,"os":10,"osLabel":11,"quickSolution":12,"stepByStep":13,"recommendedSoftware":16,"alternativeMethods":17,"commonIssues":18,"securityNote":38,"extensionPath":39,"extensionLabel":40,"breadcrumbs":41,"metaDescription":51},false,"p12","PKCS#12 Certificate Bundle","certificates","Certificates","2026-06-12T08:12:27.796Z","linux","Linux","To open .P12 files on Linux, use OpenSSL to inspect the container: run the OpenSSL pkcs12 command against the .p12 file to list its contents.",[14,15],"Use OpenSSL to inspect the container: run the OpenSSL pkcs12 command against the .p12 file to list its contents.","If you need the certificate and key as separate files, use OpenSSL pkcs12 options to extract the certificate(s) and private key (you will be prompted for the container password).",[],[],[19,26,32],{"title":20,"description":21,"steps":22},"Password or passphrase is rejected","Most .p12 files are password-protected; import/extraction fails if the password is wrong or if the file was created with settings not accepted by the importing tool.",[23,24,25],"Confirm you are using the correct .p12 password (this is the container password, not necessarily the key’s original passphrase).","Try inspecting the file with OpenSSL pkcs12 to confirm it’s a valid PKCS #12 container and to see what it contains.","If you control how it was produced, re-export/recreate the PKCS #12 container and set a known password.",{"title":27,"description":28,"steps":29},"Import succeeds but the private key is missing","A PKCS #12 file can contain certificates without a private key; some exports include only the public certificate chain, which cannot be used for signing or server TLS identity.",[30,31],"Use OpenSSL pkcs12 to list the contents and verify whether a private key is present in the container.","If no private key is present, obtain a new .p12/.pfx that includes the private key (or regenerate/export it from the system where the key was created).",{"title":33,"description":34,"steps":35},"Certificate chain problems after import","Even when the leaf certificate imports, missing intermediate certificates can cause trust/validation failures because the chain cannot be built.",[36,37],"Inspect the .p12 with OpenSSL pkcs12 to see whether intermediate certificates are included.","Re-export/recreate the .p12 to include the full certificate chain (leaf plus intermediates), then re-import.",".p12 files often contain private keys; anyone who obtains the file and its password can potentially impersonate the identity (for example, for TLS or code signing). Treat it like a secret and store it securely.","/file-extension/p12",".P12",[42,45,48],{"label":43,"to":44},"Home","/",{"label":46,"to":47},"How To","/file-extension",{"label":49,"to":50},"Open .P12 on Linux","/how-to/open-p12-on-linux","Learn how to open .P12 files on Linux with step-by-step instructions, recommended software, and troubleshooting tips."]