Hi, I am having trouble installing a self-signed certificate to use for HTTPS access. I am using Junos 11.2r3 on an SRX 210, and I am following this KnowledgeBase article (Method #2), but I think it is missing a step:
How to: Auto-generate Self-signed Certificate in JUNOS with Enhanced Services
http://kb.juniper.net/InfoCenter/index?page=content&id=KB11611&smlogin=true
When I go to commit I get the following error:
[edit system services web-management https local-certificate]
'local-certificate pl-cert-01'
certificate must be configured under 'security certificates local'
error: commit failed: (statements constraint check failed)
I have attempted to look for any information about this command (security certificates local) but can't find any. It is there in Junos 11.2, but not in the Security CLI Reference or anything else I can find online. The KB article has you create the self-signed cert in one step and then set the https server to use it. The commit error complains that it isn't loaded or recognized in the security settings as a cert.
I can do 'show security pki local-certificate' and see my certificate, and it had not problem when I set it to be used for the HTTPS connection (it's certificate ID was recognized).
The 'set security certificates local ?' gives these options:
Possible completions:
<certificate> Certificate and private key string
+ apply-groups Groups from which to inherit configuration data
+ apply-groups-except Don't inherit configuration data from these groups
load-key-file File (URL) containing an SSL certificate and private key in PEM format
I tried to paste in the content of the output from 'show security pki local-certificate detail', but that didn't seem to work. I know that they want me to configure the certificate in the security settings first, but I can't seem to figure out how, and I can't seem to be able to find the right search terms to find it on my own.
Any help would be appreciated.