Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-5211

gnutls certtool pkcs12 export doesn't let selecting a PRF

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Minor Minor
    • None
    • rhel-9.0.0
    • gnutls
    • None
    • Low
    • rhel-security-crypto
    • ssg_security
    • None
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • If docs needed, set a value
    • None
    • 57,005

      Description of problem: certtool --to-p12 always uses hmacWithSHA256
      Version-Release number of selected component (if applicable): gnutls-3.7.3-1.el9
      How reproducible: always

      Steps to Reproduce:
      1. openssl req -x509 -newkey rsa -keyout localhost.key -out localhost.crt -subj /CN=localhost -nodes -batch
      2. certtool --to-p12 --outder --p12-name localhost --load-certificate localhost.crt --load-privkey localhost.key --outfile p12 --password pass --hash SHA512
      3. openssl pkcs12 -in p12 -info -nodes -noout -passin pass:pass

      Actual results:
      MAC: sha512, Iteration 600000
      MAC length: 64, salt length: 8
      PKCS7 Encrypted data: PBES2, PBKDF2, AES-128-CBC, Iteration 600000, PRF hmacWithSHA256
      Certificate bag
      PKCS7 Data
      Shrouded Keybag: PBES2, PBKDF2, AES-128-CBC, Iteration 600000, PRF hmacWithSHA256

      Expected results:
      MAC: sha512, Iteration 600000
      MAC length: 64, salt length: 8
      PKCS7 Encrypted data: PBES2, PBKDF2, AES-128-CBC, Iteration 600000, PRF hmacWithSHA512
      Certificate bag
      PKCS7 Data
      Shrouded Keybag: PBES2, PBKDF2, AES-128-CBC, Iteration 600000, PRF hmacWithSHA512

      Additional info:

              dueno@redhat.com Daiki Ueno
              asosedki@redhat.com Alexander Sosedkin
              Daiki Ueno Daiki Ueno
              Alexander Sosedkin Alexander Sosedkin
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: