Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to generate ssl certificate for new M2 installation #554

Open
TimurGafarovR opened this issue Nov 27, 2022 · 0 comments
Open

Not able to generate ssl certificate for new M2 installation #554

TimurGafarovR opened this issue Nov 27, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@TimurGafarovR
Copy link

TimurGafarovR commented Nov 27, 2022

vader@Timurs-MacBook exampleproject % warden sign-certificate exampleproject.test
Warning: Certificate for exampleproject.test already exists! Overwriting...

==> Generating private key exampleproject.test.key.pem
Generating RSA private key, 2048 bit long modulus
.................................................................+++++
............................+++++
e is 65537 (0x10001)
==> Generating signing req exampleproject.test.crt.pem
==> Generating certificate exampleproject.test.crt.pem
Signature ok
subject=/C=US/O=Warden.dev/CN=exampleproject.test
Getting CA Private Key
unable to load number from /Users/vader/.warden/ssl/rootca/serial
8776656128:error:0DFFF096:asn1 encoding routines:CRYPTO_internal:short line:/AppleInternal/Library/BuildRoots/810eba08-405a-11ed-86e9-6af958a02716/Library/Caches/com.apple.xbs/Sources/libressl/libressl-3.3/crypto/asn1/f_int.c:196:
ERROR: Command `openssl x509 -req -days 365 -sha256 -extensions v3_req -extfile <(cat                                                      "${WARDEN_DIR}/config/openssl/certificate.conf"                   <(printf "extendedKeyUsage = serverAuth,clientAuth 
               subjectAltName = " "${CERTIFICATE_SAN_LIST}")               ) -CA "${WARDEN_SSL_DIR}/rootca/certs/ca.cert.pem" -CAkey "${WARDEN_SSL_DIR}/rootca/private/ca.key.pem" -CAserial "${WARDEN_SSL_DIR}/rootca/serial" -in "${WARDEN_SSL_DIR}/certs/${CERTIFICATE_NAME}.csr.pem" -out "${WARDEN_SSL_DIR}/certs/${CERTIFICATE_NAME}.crt.pem"` at /opt/homebrew/Cellar/warden/0.12.0/commands/sign-certificate.cmd:52 failed with exit code 1

When running command warden sign-certificate exampleproject.test getting above response. Not sure why. Its brand new install and a first time I am installing warden environment on this laptop. Also site works fine without ssl but does give me a warning at the start. Also looks like warden does not create directories that it needs and errors out if its missing for some of its operations which I think should be automatic. This happened when I ran warden svc up creating manually missing directory fixed the issue. Also worth noting that directory /Users/vader/.warden/ssl/rootca/serial I created manually as it was erroring out on that too.

@navarr navarr added the bug Something isn't working label Nov 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants