Using certmonger, how to generate a new key with a different key length?

Solution Verified - Updated -

Issue

  • Cermonger getcert does not seem to honor -g parameter?
  • When I type:

    selfsign-getcert request  -f /etc/pki/testcert.pem -k /etc/pki/testkey.key -g 4096
    openssl x509 -in /etc/pki/testcert.pem -text -noout > /tmp/1
    getcert stop-tracking -i `getcert list  | grep ID | cut -c 13-26`; rm -f /etc/pki/testcert.pem
    selfsign-getcert request  -f /etc/pki/testcert.pem -k /etc/pki/testkey.key -g 1024
    openssl x509 -in /etc/pki/testcert.pem -text -noout > /tmp/2
    sdiff /tmp/1 /tmp/2
    
  • Then I cannot see any differences in any key lentgh??

Environment

  • Red Hat Enterprise Linux (RHEL) 7
  • ipa-server
  • Certmonger

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content