# Creating x509.log from Parsed x509 Bytestring

**URL:** <https://community.zeek.org/t/creating-x509-log-from-parsed-x509-bytestring/7881>\
**Category:** Zeek\
**Tags:** development\
**Created:** [October 27, 2025, 11:57am UTC](https://community.zeek.org/t/creating-x509-log-from-parsed-x509-bytestring/7881 "2025-10-27T11:57:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zeek\_Noob](https://avatars.discourse-cdn.com/v4/letter/z/aeb1de/32.png) [@Zeek\_Noob](https://community.zeek.org/u/Zeek_Noob)\
**Post date:** [October 27, 2025, 11:57am UTC](https://community.zeek.org/t/creating-x509-log-from-parsed-x509-bytestring/7881/1 "2025-10-27T11:57:25Z")

</div>

Hey Community,

I have a x509 Certificate from a Byte-string in a local variable. I want to save it as a file and create the corresponding entry in the x509.log. How do I accomplish that?

Something like:  
local cert: string = hexstr\_to\_bytestring(“XXXXXXXXXXXX”);

Thanks in advance.

Your zeek noob

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/zeek/original/1X/f09d732bc2cc7c7cc7e35db67cf4e1d5233ce7a7.png) [@system](https://community.zeek.org/u/system)\
**Post date:** [December 26, 2025, 11:57am UTC](https://community.zeek.org/t/creating-x509-log-from-parsed-x509-bytestring/7881/2 "2025-12-26T11:57:30Z")

</div>

This topic was automatically closed after 60 days. New replies are no longer allowed.
