# 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>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://www.pentestwiki.com/post-exploit/undefined/extension/pfx.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
