ONVIF™ Advanced Security Test Specification
Total Page:16
File Type:pdf, Size:1020Kb
ONVIF Advanced Security Test Specification Version 17.06 ONVIF™ Advanced Security Test Specification Version 17.06 June 2017 www.onvif.org ONVIF Advanced Security Test Specification Version 17.06 © 2017 ONVIF, Inc. All rights reserved. Recipients of this document may copy, distribute, publish, or display this document so long as this copyright notice, license and disclaimer are retained with all copies of the document. No license is granted to modify this document. THIS DOCUMENT IS PROVIDED "AS IS," AND THE CORPORATION AND ITS MEMBERS AND THEIR AFFILIATES, MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, OR TITLE; THAT THE CONTENTS OF THIS DOCUMENT ARE SUITABLE FOR ANY PURPOSE; OR THAT THE IMPLEMENTATION OF SUCH CONTENTS WILL NOT INFRINGE ANY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS. IN NO EVENT WILL THE CORPORATION OR ITS MEMBERS OR THEIR AFFILIATES BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL, PUNITIVE OR CONSEQUENTIAL DAMAGES, ARISING OUT OF OR RELATING TO ANY USE OR DISTRIBUTION OF THIS DOCUMENT, WHETHER OR NOT (1) THE CORPORATION, MEMBERS OR THEIR AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES, OR (2) SUCH DAMAGES WERE REASONABLY FORESEEABLE, AND ARISING OUT OF OR RELATING TO ANY USE OR DISTRIBUTION OF THIS DOCUMENT. THE FOREGOING DISCLAIMER AND LIMITATION ON LIABILITY DO NOT APPLY TO, INVALIDATE, OR LIMIT REPRESENTATIONS AND WARRANTIES MADE BY THE MEMBERS AND THEIR RESPECTIVE AFFILIATES TO THE CORPORATION AND OTHER MEMBERS IN CERTAIN WRITTEN POLICIES OF THE CORPORATION. 2 www.onvif.org ONVIF Advanced Security Test Specification Version 17.06 REVISION HISTORY Vers. Date Description 0.6 Feb 26, 2013 Initial version 0.7 Apr 16, 2013 Adapted document to Advanced Security Service Specification v1.0_RC1 0.7.1 May 8, 2013 Added key store tests 0.8 May 11, 2013 First draft for WG review 0.81 Jun 11, 2013 Minor changes after Singapore F2F 0.82 Jun 13, 2013 Partial fix for ticket #1079 0.9 Jun 14, 2013 Added appendices A.8 to A.11 and modified Sect. 5.3.14. 13.06 Dec, 2013 First issue of Advanced Security Test Specification 14.06 Jun, 2014 New tests were added: Create PKCS#10 – negative test, Delete Certificate – CA – Preserve Public Key, Upload certificate – delete linked key (negative test), Upload certificate – Upload malformed certificate (negative test), Upload certificate – Upload expired certificate, TLS Server Certificate - self-signed, TLS Server Certificate – CA. Annex A.21, A.22 were added. 14.12 Dec, 2014 The following test cases were added: Create PKCS#10 – Subject Test, Create self-signed certificate – Subject Test, Upload Passphrase, Delete Passphrase, Upload PKCS8 – no key pair exists, Upload PKCS8 – decryption fails, Upload PKCS8 – key pair without private key exists, Upload PKCS12 – no key pair exists, Upload PKCS12 – decryption fails, Upload PKCS12 – key pair without private key exists. The following test cases were modified with ID change: Basic TLS Handshake, Basic TLS Handshake after Replace Server Certificate Assignment. www.onvif.org 3 ONVIF Advanced Security Test Specification Version 17.06 The following annexes were added: A.23, A.24, A.25, A.26, A.27, A.28, A.29, A.30, A.31, A.32, A.33, A.34, A.35. 15.06 Jun, 2015 The following test cases were added: ADVANCED_SECURITY-3-2-5 Basic TLS Handshake with Replace Server Certification Path and PKCS#12 ADVANCED_SECURITY-6-3-4 Upload PKCS12 - verify key and certificate ADVANCED_SECURITY-2-1-27 CreateSelfSignedCertificate with PKCS#12 ADVANCED_SECURITY-2-1-28 Create PKCS#10 request with PKCS#12 ADVANCED_SECURITY-8-1-1 Upload CRL ADVANCED_SECURITY-8-1-2 Delete CRL ADVANCED_SECURITY-8-1-3 Get CRL ADVANCED_SECURITY-8-1-4 Create certification path validation policy ADVANCED_SECURITY-8-1-5 Get certification path validation policy ADVANCED_SECURITY-8-1-6 Delete certification path validation policy ADVANCED_SECURITY-3-3-1 TLS client authentication – self- signed TLS server certificate with on-device RSA key pair ADVANCED_SECURITY-3-3-2 CRL processing with on-device RSA key pair ADVANCED_SECURITY-3-3-3 Replace certification path validation policy assignment The following test cases were modified: ADVANCED_SECURITY-1-1-3 Check private Key status for an RSA private key ADVANCED_SECURITY-2-1-1 Create PKCS#10 certification requests ADVANCED_SECURITY-2-1-2 Create self-signed certificate ADVANCED_SECURITY-2-1-3 Upload certificate – Keystore contains private key ADVANCED_SECURITY-2-1-6 Get certificate – self-signed ADVANCED_SECURITY-2-1-8 Get all certificates – self signed ADVANCED_SECURITY-2-1-10 Delete Certificate – self signed ADVANCED_SECURITY-2-1-12 Create Certification Path – self- signed 4 www.onvif.org ONVIF Advanced Security Test Specification Version 17.06 ADVANCED_SECURITY-2-1-13 Create Certification Path – CA ADVANCED_SECURITY-2-1-14 Get Certification Path – self-signed ADVANCED_SECURITY-2-1-15 Get Certification Path – CA ADVANCED_SECURITY-2-1-16 Get All Certification Paths – self- signed ADVANCED_SECURITY-2-1-17 Get All Certification Paths – CA ADVANCED_SECURITY-2-1-18 Delete Certification Path – self- signed ADVANCED_SECURITY-2-1-19 Delete Certification Path - CA ADVANCED_SECURITY-2-1-20 Create PKCS#10 (negative test) ADVANCED_SECURITY-2-1-22 Upload certificate – delete linked key (negative test) ADVANCED_SECURITY-3-1-1 Add Server Certificate Assignment – self-signed ADVANCED_SECURITY-3-1-2 Add Server Certificate Assignment – CA ADVANCED_SECURITY-3-1-3 Replace Server Certificate Assignment – self-signed ADVANCED_SECURITY-3-1-4 Replace Server Certificate Assignment – CA ADVANCED_SECURITY-3-1-5 Get Assigned Server Certificates – self-signed ADVANCED_SECURITY-3-1-6 Get Assigned Server Certificates – CA ADVANCED_SECURITY-3-1-7 Remove Server Certificate Assignment – self-signed ADVANCED_SECURITY-3-1-8 Remove Server Certificate Assignment – CA ADVANCED_SECURITY-3-2-3 Basic TLS Handshake ADVANCED_SECURITY-3-2-4 Basic TLS Handshake after Replace Server Certificate Assignment ADVANCED_SECURITY-4-1-1 TLS Server Certificate - self-signed ADVANCED_SECURITY-4-1-2 TLS Server Certificate – CA ADVANCED_SECURITY-5-1-1 Advanced Security Service Capabilities ADVANCED_SECURITY-5-1-2 Get Services and Get Advanced Security Service Capabilities Consistency The following annexes were added: A.36, A.37, A.38, A.39, A.40, A.41, A.42, A.43, A.44, A.45, A.46 The following annexes were modified: www.onvif.org 5 ONVIF Advanced Security Test Specification Version 17.06 A.4, A.8, A.11, A.13, A.14, A.16, A.18, A.30, A.35 16.06 Mar 2016 The ADVANCED_SECURITY-3-2-4 has been updated. 17.06 Jun 22, 2017 The document formating were updated. 6 www.onvif.org ONVIF Advanced Security Test Specification Version 17.06 Table of Contents 1 Introduction ...................................................................................................................... 13 1.1 Scope ..................................................................................................................... 13 1.1.1 Keystore ...................................................................................................... 14 1.1.2 Certificate Management ............................................................................... 14 1.1.3 TLS Server .................................................................................................. 14 1.1.4 Referential integrity ...................................................................................... 15 1.1.5 Capabilities .................................................................................................. 15 1.1.6 Off-Device Key Generation Operations ........................................................ 15 1.1.7 Certificate-based Client Authentication ........................................................ 16 2 Normative references ...................................................................................................... 17 3 Terms and Definitions ..................................................................................................... 19 3.1 Conventions ............................................................................................................ 19 3.2 Definitions ............................................................................................................... 19 3.3 Abbreviations .......................................................................................................... 19 4 Test Overview .................................................................................................................. 21 4.1 Test Setup .............................................................................................................. 21 4.1.1 Network Configuration for DUT .................................................................... 21 4.2 Prerequisites ........................................................................................................... 22 4.3 Test Policy .............................................................................................................. 23 4.3.1 General Policy ............................................................................................. 23 4.3.2 Keystore ...................................................................................................... 23 4.3.3 Certificate Management ............................................................................... 24 4.3.4 TLS Server .................................................................................................