PageSourceSearch

https://osbuild.org/assets/js/898a1f7e.412a8392.js

js osbuild.org collected 2026-10-04 00:31:03 UTC 3,883 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunksaurus=self.webpackChunksaurus||[]).push([[6942],{39523:(e,s,o)=>{o.r(s),o.d(s,{assets:()=>l,contentTitle:()=>d,default:()=>a,frontMatter:()=>i,metadata:()=>t,toc:()=>u});const t=JSON.parse('{"id":"developer-guide/projects/osbuild/modules/stages/org.osbuild.ostree.genkey","title":"org.osbuild.ostree.genkey","description":"\x3c!--","source":"@site/docs/developer-guide/02-projects/osbuild/modules/stages/org.osbuild.ostree.genkey.md","sourceDirName":"developer-guide/02-projects/osbuild/modules/stages","slug":"/developer-guide/projects/osbuild/modules/stages/org.osbuild.ostree.genkey","permalink":"/docs/developer-guide/projects/osbuild/modules/stages/org.osbuild.ostree.genkey","draft":false,"unlisted":false,"editUrl":"https://github.com/osbuild/osbuild/tree/main/stages/org.osbuild.ostree.genkey.meta.json","tags":[],"version":"current","frontMatter":{"custom_edit_url":"https://github.com/osbuild/osbuild/tree/main/stages/org.osbuild.ostree.genkey.meta.json"},"sidebar":"developer","previous":{"title":"org.osbuild.ostree.fillvar","permalink":"/docs/developer-guide/projects/osbuild/modules/stages/org.osbuild.ostree.fillvar"},"next":{"title":"org.osbuild.ostree.grub2","permalink":"/docs/developer-guide/projects/osbuild/modules/stages/org.osbuild.ostree.grub2"}}');var r=o(74848),n=o(28453);const i={custom_edit_url:"https://github.com/osbuild/osbuild/tree/main/stages/org.osbuild.ostree.genkey.meta.json"},d="org.osbuild.ostree.genkey",l={},u=[{value:"Schema 1",id:"schema-1",level:2},{value:"Schema 2",id:"schema-2",level:2}];function c(e){const s={a:"a",code:"code",h1:"h1",h2:"h2",header:"header",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,n.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(s.header,{children:(0,r.jsx)(s.h1,{id:"orgosbuildostreegenkey",children:"org.osbuild.ostree.genkey"})}),"\n",(0,r.jsx)(s.p,{children:(0,r.jsxs)(s.strong,{children:["Generate ed25519 public/private keypair in format used by ",(0,r.jsx)(s.code,{children:"ostree sign"}),"."]})}),"\n",(0,r.jsxs)(s.p,{children:["This is used with the org.osbuild.ostree.sign stage, and these can be\nused with composefs to tie an initrd and ostree commit together. See\n",(0,r.jsx)(s.a,{href:"https://ostreedev.github.io/ostree/composefs/#signatures",children:"https://ostreedev.github.io/ostree/composefs/#signatures"})," for details\nof how this works.\nNotes:"]}),"\n",(0,r.jsxs)(s.ul,{children:["\n",(0,r.jsx)(s.li,{children:"Requires 'openssl' in the buildroot."}),"\n"]}),"\n",(0,r.jsx)(s.h2,{id:"schema-1",children:"Schema 1"}),"\n",(0,r.jsx)(s.pre,{children:(0,r.jsx)(s.code,{className:"language-json",children:"{}\n"})}),"\n",(0,r.jsx)(s.h2,{id:"schema-2",children:"Schema 2"}),"\n",(0,r.jsx)(s.pre,{children:(0,r.jsx)(s.code,{className:"language-json",children:'{\n  "options": {\n    "additionalProperties": false,\n    "required": [\n      "publickey",\n      "secretkey"\n    ],\n    "properties": {\n      "publickey": {\n        "description": "Path of generated public key",\n        "type": "string",\n        "pattern": "^\\\\/(?!\\\\.\\\\.)((?!\\\\/\\\\.\\\\.\\\\/).)+$"\n      },\n      "secretkey": {\n        "description": "Path of generated secret key",\n        "type": "string",\n        "pattern": "^\\\\/(?!\\\\.\\\\.)((?!\\\\/\\\\.\\\\.\\\\/).)+$"\n      }\n    }\n  }\n}\n'})})]})}function a(e={}){const{wrapper:s}={...(0,n.R)(),...e.components};return s?(0,r.jsx)(s,{...e,children:(0,r.jsx)(c,{...e})}):c(e)}},28453:(e,s,o)=>{o.d(s,{R:()=>i,x:()=>d});var t=o(96540);const r={},n=t.createContext(r);function i(e){const s=t.useContext(n);return t.useMemo((function(){return"function"==typeof e?e(s):{...s,...e}}),[s,e])}function d(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:i(e.components),t.createElement(n.Provider,{value:s},e.children)}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.