105 lines
3.7 KiB
HTML
105 lines
3.7 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of OSSL_STORE-FILE</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>OSSL_STORE-FILE</H1>
|
|
Section: OpenSSL (7SSL)<BR>Updated: 2021-03-22<BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
ossl_store-file - The store 'file' scheme loader
|
|
<A NAME="lbAC"> </A>
|
|
<H2>SYNOPSIS</H2>
|
|
|
|
|
|
|
|
#include <<A HREF="file:///usr/include/openssl/store.h">openssl/store.h</A>>
|
|
<A NAME="lbAD"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
|
|
|
|
Support for the 'file' scheme is built into <TT>"libcrypto"</TT>.
|
|
Since files come in all kinds of formats and content types, the 'file'
|
|
scheme has its own layer of functionality called ``file handlers'',
|
|
which are used to try to decode diverse types of file contents.
|
|
<P>
|
|
|
|
In case a file is formatted as <FONT SIZE="-1">PEM,</FONT> each called file handler receives
|
|
the <FONT SIZE="-1">PEM</FONT> name (everything following any '<TT>"-----BEGIN "</TT>') as well as
|
|
possible <FONT SIZE="-1">PEM</FONT> headers, together with the decoded <FONT SIZE="-1">PEM</FONT> body. Since <FONT SIZE="-1">PEM</FONT>
|
|
formatted files can contain more than one object, the file handlers
|
|
are called upon for each such object.
|
|
<P>
|
|
|
|
If the file isn't determined to be formatted as <FONT SIZE="-1">PEM,</FONT> the content is
|
|
loaded in raw form in its entirety and passed to the available file
|
|
handlers as is, with no <FONT SIZE="-1">PEM</FONT> name or headers.
|
|
<P>
|
|
|
|
Each file handler is expected to handle <FONT SIZE="-1">PEM</FONT> and non-PEM content as
|
|
appropriate. Some may refuse non-PEM content for the sake of
|
|
determinism (for example, there are keys out in the wild that are
|
|
represented as an <FONT SIZE="-1">ASN.1 OCTET STRING.</FONT> In raw form, it's not easily
|
|
possible to distinguish those from any other data coming as an <FONT SIZE="-1">ASN.1
|
|
OCTET STRING,</FONT> so such keys would naturally be accepted as <FONT SIZE="-1">PEM</FONT> files
|
|
only).
|
|
<A NAME="lbAE"> </A>
|
|
<H2>NOTES</H2>
|
|
|
|
|
|
|
|
When needed, the 'file' scheme loader will require a pass phrase by
|
|
using the <TT>"UI_METHOD"</TT> that was passed via <B>OSSL_STORE_open()</B>.
|
|
This pass phrase is expected to be <FONT SIZE="-1">UTF-8</FONT> encoded, anything else will
|
|
give an undefined result.
|
|
The files made accessible through this loader are expected to be
|
|
standard compliant with regards to pass phrase encoding.
|
|
Files that aren't should be re-generated with a correctly encoded pass
|
|
phrase.
|
|
See <B><A HREF="/cgi-bin/man/man2html?7+passphrase-encoding">passphrase-encoding</A></B>(7) for more information.
|
|
<A NAME="lbAF"> </A>
|
|
<H2>SEE ALSO</H2>
|
|
|
|
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?7+ossl_store">ossl_store</A></B>(7), <B><A HREF="/cgi-bin/man/man2html?7+passphrase-encoding">passphrase-encoding</A></B>(7)
|
|
<A NAME="lbAG"> </A>
|
|
<H2>COPYRIGHT</H2>
|
|
|
|
|
|
|
|
Copyright 2018 The OpenSSL Project Authors. All Rights Reserved.
|
|
<P>
|
|
|
|
Licensed under the OpenSSL license (the ``License''). You may not use
|
|
this file except in compliance with the License. You can obtain a copy
|
|
in the file <FONT SIZE="-1">LICENSE</FONT> in the source distribution or at
|
|
<<A HREF="https://www.openssl.org/source/license.html">https://www.openssl.org/source/license.html</A>>.
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="1"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="2"><A HREF="#lbAC">SYNOPSIS</A><DD>
|
|
<DT id="3"><A HREF="#lbAD">DESCRIPTION</A><DD>
|
|
<DT id="4"><A HREF="#lbAE">NOTES</A><DD>
|
|
<DT id="5"><A HREF="#lbAF">SEE ALSO</A><DD>
|
|
<DT id="6"><A HREF="#lbAG">COPYRIGHT</A><DD>
|
|
</DL>
|
|
<HR>
|
|
This document was created by
|
|
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
|
using the manual pages.<BR>
|
|
Time: 00:06:09 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|