ChristianLempa / cheat-sheets

This is my personal knowledge-base. Here you'll find code-snippets, technical documentation, and command reference for various tools, and technologies.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

openssl missing equal sign error while generating cert

kdpuvvadi opened this issue · comments

Getting following error while running

$openssl x509 -req -sha256 -days 3650 -in cert.csr -CA ca.pem -CAkey ca-key.pem -out cert.pem -extfile extfile.cnf -CAcreateserial
x509: Error on line 1 of config file "extfile.cnf"
CC580000:error:07000065:configuration file routines:def_load_bio:missing equal sign:crypto\conf\conf_def.c:513:HERE-->��sline 1

tried different version of openssl and tried building openssl but still same error. anyone have any idea what's going on?

here's the contents of extfile.cnf

subjectAltName=DNS:*.puvvadi.local,IP:10.20.10.246

I found something that worked for me. Essentially you need to copy the openss.cnf to the selfsigned-certs directory, add subjectAltName under the [ v3_ca ] section, use the config as extfile with -extensions v3_ca.

This worked for Windows machine.

https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/deployment_guide/sssd-ldap-domain-ip

Closed as resolved by user