5 This is a recommended way to describe OSSL_STORE loaders,
6 "ossl_store-{name}", where {name} is replaced with the name of the
7 scheme it implements, in man section 7.
13 ossl_store-file - The store 'file' scheme loader
19 #include <openssl/store.h>
23 Support for the 'file' scheme is built into C<libcrypto>.
24 Since files come in all kinds of formats and content types, the 'file'
25 scheme has its own layer of functionality called "file handlers",
26 which are used to try to decode diverse types of file contents.
28 In case a file is formatted as PEM, each called file handler receives
29 the PEM name (everything following any 'C<-----BEGIN >') as well as
30 possible PEM headers, together with the decoded PEM body. Since PEM
31 formatted files can contain more than one object, the file handlers
32 are called upon for each such object.
34 If the file isn't determined to be formatted as PEM, the content is
35 loaded in raw form in its entirety and passed to the available file
36 handlers as is, with no PEM name or headers.
38 Each file handler is expected to handle PEM and non-PEM content as
39 appropriate. Some may refuse non-PEM content for the sake of
40 determinism (for example, there are keys out in the wild that are
41 represented as an ASN.1 OCTET STRING. In raw form, it's not easily
42 possible to distinguish those from any other data coming as an ASN.1
43 OCTET STRING, so such keys would naturally be accepted as PEM files
48 When needed, the 'file' scheme loader will require a pass phrase by
49 using the C<UI_METHOD> that was passed via OSSL_STORE_open().
50 This pass phrase is used as it is, which may present some challenge
51 when the file that's loaded contains a PKCS#12 object.
52 See L<passphrase-encoding(7)> for more information.
56 The treatment of pass phrases is currently being worked on and may
63 L<ossl_store(7)>, L<passphrase-encoding(7)>
67 Copyright 2018 The OpenSSL Project Authors. All Rights Reserved.
69 Licensed under the OpenSSL license (the "License"). You may not use
70 this file except in compliance with the License. You can obtain a copy
71 in the file LICENSE in the source distribution or at
72 L<https://www.openssl.org/source/license.html>.