mkcert icon indicating copy to clipboard operation
mkcert copied to clipboard

add CommonName to generated certificates

Open elexx opened this issue 2 years ago • 4 comments

Adding a CN to the subject makes generated certificates usable in DSM (Synology).

I created a certificate, uploaded it to my DSM and are able to use it for example as "System default" certificate. Also DSM now shows a "Issued to:" value: image

Without this patch, "Issued to:" was empty and the certificate was not selectable for any usages.

Fixes FiloSottile/mkcert#469

elexx avatar Jan 16 '23 15:01 elexx

Hey @FiloSottile , just wondering if you've had a chance to take a look at this pull request? I think it's good to go, but let me know if there's anything else that needs to be done. Thanks!

elexx avatar Jan 27 '23 14:01 elexx

@elexx I actually went ahead and built from source on Windows to add this pull request. I also have a Synology Disk Station and although it handled the cert imports fine on mine, I just liked having the CN label to easily differentiate between my different certs. Thanks for this!

And @FiloSottile, thank you for this awesome tool. I use it all the time.

LibbyJax avatar Feb 12 '23 02:02 LibbyJax

I've built from source as well after applying the changes in the PR, but the certs still appear "blank" in Synology DS for me, as described in the initial comment buy @elexx. Unlike @LibbyJax I can't work with them in the UI either, they are unselectable for example in Security > Certificates > Settings where you would set a cert as the System default. Don't suppose either of you have any ideas?

Any idea why this PR hasn't been merged in?

cazinc avatar May 29 '24 16:05 cazinc

add CN to generated certificates · elexx/mkcert@49fec4a https://github.com/elexx/mkcert/commit/49fec4a21908ddf9cb3600fed28ea9c6de8bca93

isboy88 avatar Jul 09 '24 08:07 isboy88