JavaScript is not currently enabled, but is required for full CodeSonar manual search and browse functionality.
If you are viewing this file in your hub's Web GUI, enable JavaScript in your browser: you will also need it for GUI functionality.
If you opened this file directly from disk, your browser may be directly suppressing JavaScript functionality: certain browsers perform this suppression on local files (but not files delivered by web servers) for security reasons.
| CodeSonar® 9.2p0 | CONFIDENTIAL | CodeSecure Inc |
Most widely-used browsers do not readily support in-browser generation and storage of user certificates. If you want to use certificate-based user authentication with these browsers, this section provides additional information about generating and, if necessary, uploading those certificates.
By default, the majority of widely-used browsers are configured to
disable the keygen tag, meaning that key pairs cannot be generated in
these browsers and so they do not readily support in-browser
generation and storage of user certificates.
These browsers include Chrome, Edge, Safari, and (recent)
Firefox.
With this default configuration, the Generate and Save Certificate button on the User Certificates page is disabled.
If the keygen tag is enabled, you will instead see a download notification for the certificate at the bottom of your page. Note, however, that this download does not include the private key, so is not sufficient for authentication.
Before attempting to set up user certificates, make sure you have:
You can generate user certificates from the command line with codesonar generate-hub-cert. This command requires authentication from a user with suitable permissions. You can either authenticate interactively, or specify additional authentication arguments to the command.
Important Note: You will need to generate and convert the certificate on a machine that has CodeSonar installed. This does not have to be the same machine, or even have the same operating system, as the one on which you use the certificate.
For example, for user Alex on the hub at https://hubmachine:7340:
| Windows |
openssl.exe pkcs12 -export -out usercert.pfx -in cert.pem
-inkey key.pem
If openssl.exe outputs an "unable to write 'random state'" error message, see the troubleshooting notes below. |
|---|---|
| otherwise |
openssl pkcs12 -export -out usercert.pfx -in cert.pem
-inkey key.pem
|
| Chrome |
Perform the following steps in the browser.
Chrome will display a certificate management utility that depends on your operating system.
|
|---|---|
| Edge |
Run the following at a command prompt to open the Windows
Certificate Manager.
certmgr.msc
|
| Firefox |
Perform the following steps in the browser.
Firefox will open a Certificate Manager window. |
| Safari |
Start from your desktop.
|
| Other browsers | Consult your browser documentation. |
You will now be able to use the certificate and private key to sign in to the hub when you are browsing with the corresponding browser.
[Windows only] If the openssl.exe command outputs an "unable to write 'random state'" error message, do one of the following.
To report problems with this documentation, please visit https://support.codesecure.com/.