-.\" $OpenBSD: openssl.1,v 1.134 2021/11/26 16:23:27 tb Exp $
+.\" $OpenBSD: openssl.1,v 1.135 2022/01/10 12:19:26 tb Exp $
.\" ====================================================================
.\" Copyright (c) 1998-2002 The OpenSSL Project. All rights reserved.
.\"
.\" copied and put under another distribution licence
.\" [including the GNU Public Licence.]
.\"
-.Dd $Mdocdate: November 26 2021 $
+.Dd $Mdocdate: January 10 2022 $
.Dt OPENSSL 1
.Os
.Sh NAME
.Bl -hang -width "openssl pkey"
.It Nm openssl pkey
.Bk -words
+.Op Fl check
.Op Ar cipher
.Op Fl in Ar file
.Op Fl inform Cm der | pem
.Op Fl outform Cm der | pem
.Op Fl passin Ar arg
.Op Fl passout Ar arg
+.Op Fl pubcheck
.Op Fl pubin
.Op Fl pubout
.Op Fl text
.Pp
The options are as follows:
.Bl -tag -width Ds
+.It Fl check
+Check the validity of a key pair.
.It Ar cipher
Encrypt the private key with the specified cipher.
Any algorithm name accepted by
The key password source.
.It Fl passout Ar arg
The output file password source.
+.It Fl pubcheck
+Check the validity of a public key
+or the public component of a key pair.
.It Fl pubin
Read in a public key, not a private key.
.It Fl pubout
.Tg pkeyparam
.Sh PKEYPARAM
.Cm openssl pkeyparam
+.Op Fl check
.Op Fl in Ar file
.Op Fl noout
.Op Fl out Ar file
.Pp
The options are as follows:
.Bl -tag -width Ds
+.It Fl check
+check the correctness of parameters.
.It Fl in Ar file
The input file to read from,
or standard input if not specified.