'\" t
.\" Title: clevis-luks-pass
.\" Author: [FIXME: author] [see http://www.docbook.org/tdg5/en/html/author]
.\" Generator: DocBook XSL Stylesheets vsnapshot
.\" Date: 03/30/2024
.\" Manual: \ \&
.\" Source: \ \&
.\" Language: English
.\"
.TH "CLEVIS\-LUKS\-PASS" "1" "03/30/2024" "\ \&" "\ \&"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.\" http://bugs.debian.org/507673
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.ie \n(.g .ds Aq \(aq
.el .ds Aq '
.\" -----------------------------------------------------------------
.\" * set default formatting
.\" -----------------------------------------------------------------
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
.ad l
.\" -----------------------------------------------------------------
.\" * MAIN CONTENT STARTS HERE *
.\" -----------------------------------------------------------------
.SH "NAME"
clevis-luks-pass \- Extracts the passphrase used for binding a particular slot in a LUKS device
.SH "SYNOPSIS"
.sp
\fBclevis luks pass\fR \-d DEV \-s SLT
.SH "OVERVIEW"
.sp
The \fBclevis luks pass\fR command extracts the passphrase used for binding a particular slot in a LUKS device\&. For example:
.sp
.if n \{\
.RS 4
.\}
.nf
clevis luks pass \-d /dev/sda1 \-s 1
.fi
.if n \{\
.RE
.\}
.SH "OPTIONS"
.sp
.RS 4
.ie n \{\
\h'-04'\(bu\h'+03'\c
.\}
.el \{\
.sp -1
.IP \(bu 2.3
.\}
\fB\-d\fR
\fIDEV\fR
: The LUKS device on which to extract a passphrase from
.RE
.sp
.RS 4
.ie n \{\
\h'-04'\(bu\h'+03'\c
.\}
.el \{\
.sp -1
.IP \(bu 2.3
.\}
\fB\-s\fR
\fISLT\fR
: The slot to use for extracting the passphrase
.RE
.SH "EXAMPLE"
.sp
.if n \{\
.RS 4
.\}
.nf
clevis luks pass \-d /dev/sda1 \-s 1
.fi
.if n \{\
.RE
.\}
.sp
Note that the output of \fBclevis luks pass\fR might be non\-printable, in which case it would be better to redirect its output to a file and use it as a key file together with cryptsetup\&. For instance:
.sp
.if n \{\
.RS 4
.\}
.nf
clevis luks pass \-d /dev/sda1 \-s 1 > slot1\-passphrase
.fi
.if n \{\
.RE
.\}
.sp
And the file slot1\-passphrase will contain the passphrase associated with slot #1 in /dev/sda1\&.
.SH "SEE ALSO"
.sp
\fBclevis\-luks\-unlock\fR(1),