Exemple de script
Les commandes CLI suivantes créent la configuration ci-après :
• Serveur NTP
– 192.168.113.10
– burst
– iburst
• Keystore
– Paire de clés AK1
– Certificat CN1
• Truststore
– Portefeuille de certificats BN1
– Certificat BN1
• Serveur Syslog distantS1
– 192.168.113.10
– Référence au Keystore
– Référence au Truststore
Remarque
Les entrées longues telles que clés ou certificats sont abrégées (...), pour améliorer la lisibilité
des exemples.
==================================
config
system time-sync ntp enabled unicast-configuration ipv4
192.168.113.10 burst iburst
system certificates local asymmetric-key AK1
public-key-format subject-public-key-info-format
public-key MIIBIjANBgkqhkiG9w0B...
private-key-format rsa-private-key-format
private-key MIIEowIBAAKCAQEAvLw...
certificate CN1 cert-data MIIIewYJKoZIhvcNAQcCo...
system certificates remote certificate-bag BN1 certificate BN1 cert-
data MIIESQYJKoZIhv...
system logging action remote destination S1 tls ipv4 192.168.113.10
system logging action remote destination S1 facility-filter
facility-list all all
system logging action remote destination S1 tls client-identity
certificate keystore-reference asymmetric-key AK1 certificate CN1
system logging action remote destination S1 tls server-
authentication ca-certs truststore-reference BN1
commit
==================================
Command Line Interface (CLI) SINEC OS V2.4
Manuel de configuration, 10/2023, C79000-G8977-C498-07
Interface utilisateur
3.3 Opérations de base
69