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

Unable to verify the first certificate #66

Open
cmoulliard opened this issue Jan 3, 2024 · 0 comments
Open

Unable to verify the first certificate #66

cmoulliard opened this issue Jan 3, 2024 · 0 comments

Comments

@cmoulliard
Copy link

cmoulliard commented Jan 3, 2024

Issue

I generated for a gitea server (running as localhost) the cert and key files using this command

minica -ip-addresses 127.0.0.1 -ca-cert localhost.crt -ca-key localhost.key

I copied the files generated under the folder 127.0.0.1 within the folder where gitea is picking up such files

[server]
PROTOCOL = https
HTTP_PORT = 3333
CERT_FILE = pki/127.0.0.1/cert.pem
KEY_FILE = pki/127.0.0.1/key.pem

But when I I try to create a git repository, then backstage which is the client executing POST requests returns the following error

unable to verify the first certificate

Here is the certificate generated

-----BEGIN CERTIFICATE-----
MIIDJzCCAg+gAwIBAgIIdnlzZtYsBm8wDQYJKoZIhvcNAQELBQAwIDEeMBwGA1UE
AxMVbWluaWNhIHJvb3QgY2EgMmM1ZGNjMB4XDTI0MDEwMzA5MjgyNVoXDTI2MDIw
MjA5MjgyNVowFDESMBAGA1UEAxMJMTI3LjAuMC4xMIIBIjANBgkqhkiG9w0BAQEF
AAOCAQ8AMIIBCgKCAQEArB+MFRWDT31waDYsB9p8pmkb+1FuResEX2e76gE9yiai
DWawdAptVxJQh1z9pwIijPyUGNULoQENPJerWNaJUzwewF2Jtn6BAxUBDOS6Dv1X
89/UVpo+mDDjxgXu2d19T03vqyN1GNEpME/Bbx6T6NwT1IFqHi3I3vzaDgKEi25G
XnBqZS7e3dt1IdUSj6R4QJe2LP0pF23ogrdkib0tAeFPdHRQ/v1DrxQKiieOo/A/
WV1DyDmrcp+K1Ud/VR6tM+bAWeXaKVqmVv6KfAgKGrGLJGfS1wc1aWFA2Oletux5
GWUZZ7jhN1ljW0S9oj/tdsmKs/pzCBuOYZt1XyDgzwIDAQABo3EwbzAOBgNVHQ8B
Af8EBAMCBaAwHQYDVR0lBBYwFAYIKwYBBQUHAwEGCCsGAQUFBwMCMAwGA1UdEwEB
/wQCMAAwHwYDVR0jBBgwFoAUrPiSXmGJgpThK7prCllWXEGPOgwwDwYDVR0RBAgw
BocEfwAAATANBgkqhkiG9w0BAQsFAAOCAQEALibVgpwZVPXNkCVHTlm0PH48feWn
3uNMPQhOKzeHfvniPWjL1TP8IZQYwWBFM0SS3nisXcqeEuZRKgg2DSulnRa7yC7c
/OKXzTkMG27cZYMWGhqG8cjMmxsfs/n7sI92CHxxG835+TYKMDfVJEF71Im+IOHM
YtYruEpdGNr0uID2XgKuV/tRf8h6SBNLFCCXhF5t17REm+tk6K/5HWHfy7IUa4Sw
W6g4yyijV3y+PJQuZPUt+5X/R4BsuVKSatdKmu4+D1kajPaTunD7RhNcdrx0U/3K
KCO+sSbSSpBP5Dw7//5YLFvKRkxg0K+FoVnFtyB3mEJ1viQ+FZN30ARlBw==
-----END CERTIFICATE-----

This problem is similar as reported on this project too: FiloSottile/mkcert#563

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant