> For the complete documentation index, see [llms.txt](https://www.pentestwiki.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.pentestwiki.com/post-exploit/undefined/extension/pfx.md).

# pfx

pfx는 인증서, 공개키, 개인키 등의 민감정보를 저장하는 확장 파일입니다. 해당 파일이 탈취될 경우 별도의 권한 없이도 민감정보를 덤프할 수 있습니다.

<pre class="language-bash"><code class="lang-bash"><strong># 개인키 추출
</strong>openssl pkcs12 -in &#x3C;PFX> -nocerts -nodes -out private.key

<strong># 인증서 추출
</strong>openssl pkcs12 -in &#x3C;PFX> -clcerts -nokeys -out certificate.crt

<strong># 모든 데이터 추출
</strong>openssl pkcs12 -in &#x3C;PFX> -nodes
</code></pre>
