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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.