Skip to content

Commit

Permalink
CMP app and API doc: add note on critical server auth on receiving tr…
Browse files Browse the repository at this point in the history
…ust anchor certs

Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: David von Oheimb <david.von.oheimb@siemens.com>
(Merged from #21138)
  • Loading branch information
DDvO committed Sep 18, 2023
1 parent 4a10739 commit 5e721ec
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
7 changes: 7 additions & 0 deletions doc/man1/openssl-cmp.pod.in
Original file line number Diff line number Diff line change
Expand Up @@ -1099,6 +1099,13 @@ only affect the certificate verification enabled via the B<-out_trusted> option.

=head1 NOTES

When a client obtains from a CMP server CA certificates that it is going to
trust, for instance via the C<caPubs> field of a certificate response,
authentication of the CMP server is particularly critical.
So special care must be taken setting up server authentication
using B<-trusted> and related options for certificate-based authentication
or B<-secret> for MAC-based protection.

When setting up CMP configurations and experimenting with enrollment options
typically various errors occur until the configuration is correct and complete.
When the CMP server reports an error the client will by default
Expand Down
8 changes: 8 additions & 0 deletions doc/man3/OSSL_CMP_exec_certreq.pod
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,14 @@ CMP is defined in RFC 4210 (and CRMF in RFC 4211).
The CMP client implementation is limited to one request per CMP message
(and consequently to at most one response component per CMP message).

When a client obtains from a CMP server CA certificates that it is going to
trust, for instance via the caPubs field of a certificate response,
authentication of the CMP server is particularly critical.
So special care must be taken setting up server authentication in I<ctx>
using functions such as
L<OSSL_CMP_CTX_set0_trustedStore(3)> (for certificate-based authentication) or
L<OSSL_CMP_CTX_set1_secretValue(3)> (for MAC-based protection).

=head1 RETURN VALUES

OSSL_CMP_exec_certreq(), OSSL_CMP_exec_IR_ses(), OSSL_CMP_exec_CR_ses(),
Expand Down

0 comments on commit 5e721ec

Please sign in to comment.