This forum is for all security enthusiasts to discuss Fortinet's latest & evolving technologies and to connect & network with peers in the cybersecurity hemisphere. Share and learn on a broad range of topics like best practices, use cases, integrations and more. For support specific questions/resources, please visit the Support Forum or the Knowledge Base.
- If you simply want to retrieve the public_key.pem out from the Fortinet_factory.cer file, please use the following debug command on the fortigate Cli:
#diag oci pubkey <connector name>
- If you want to create a custom certificate for that purpose:
1. generate .pem private key for OCI on any linux device (Ex: your own linux PC)
#openssl genrsa -out oci_api_key.pem -aes128 2048
2. generate public key .pem from that private key file
#openssl rsa -pubout -in oci_api_key.pem -out oci_api_key_public.pem
=> you now have all the keys for OCI. Let's get the useful certificate file for your FortiGate.
3. extract the private key oci_api_key.key from the .pem private key. This file is required to import local certificate on FGT.
#openssl rsa -check -inform PEM -in oci_api_key.pem -out oci_api_key.key
4. Now use this private key .key file to create the corresponding x509 .crt certificate file required by the FGT
#openssl req -new -x509 -key oci_api_key.key > oci_key_crt.crt
=> That's it !
You now have the "oci_api_key_public.pem" to upload to the user's public key profile. And the key "oci_api_key.key" and certificate x509 "oci_key_crt.crt" to import from the Fortigate > system > certificates > import > local Certificate.
emmanuel rabatan fortinet support team
Nominating a forum post submits a request to create a new Knowledge Article based on the forum post topic. Please ensure your nomination includes a solution within the reply.
Select Forum Responses to become Knowledge Articles!
Select the “Nominate to Knowledge Base” button to recommend a forum post to become a knowledge article.
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2024 Fortinet, Inc. All Rights Reserved.