certificates icon indicating copy to clipboard operation
certificates copied to clipboard

[Bug]: CN not added as SAN

Open GBBx opened this issue 10 months ago • 0 comments

Steps to Reproduce

  1. Create CSR without specifying SAN:
openssl req \
  -new -newkey rsa:4096 \
  -out example.com.csr \
  -keyout example.com.pem \
  -subj "/C=AU/ST=Example/L=Example/O=Example Ltd./OU=Example Team/CN=example.com.crt"
  1. Sign certificate:
step certificate sign \
  example.com.csr \
  /etc/step-ca/certs/root_ca.crt \
  /etc/step-ca/secrets/root_ca_key > example.com.crt
  1. Check SAN of certificate:
openssl x509 -noout -ext subjectAltName -in example.com.crt
No extensions in certificate

Your Environment

  • OS - Ubuntu 22.04
  • step-ca Version -
Smallstep CLI/0.25.1 (linux/amd64)
Release Date: 2023-11-29T03:45:04Z

Expected Behavior

The common name should be automatically added as a SAN.

Actual Behavior

The SAN is empty.

Additional Context

No response

Contributing

Vote on this issue by adding a 👍 reaction. To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).

GBBx avatar Mar 26 '24 12:03 GBBx