cobbr / cobbr/Covenant

[Bug] Dev Branch: Cannot create Listener with SSL Certificate

Open
#324 1 comment 0 reactions 1 assignee Claimed by @cobbr View on GitHub
Dominant language
C#
Stars
4.7k
Forks
822
PR merge metrics
No merged PRs in 30d

Description

**[Bug|] Dev Branch: Cannot create Listener with SSL Certificate**

Created self-signed certificate and added to the new listener. Upon creation it errors with the following error:

> BadRequest - Listener with id: did not start due to exception: One or more errors occurred. (The certificate data cannot be read with the provided password, the password may be incorrect.)

Obviously, the password is correct.

This issue is not present in the master branch. I can add cert without errors.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to Create Listener
2. Click on USE SSL
3. Add just created self-signed certificate (in pfx format)
4. Add correct password in field SSLCertificatePassword
4. See error (screenshot):

**Expected behavior**
Listener starts with self-signed SSL cert

**Screenshots**
![image](https://user-images.githubusercontent.com/3025925/121875571-e7f5a500-cd08-11eb-9e35-58c71654cdab.png)

**Covenant Server Information:**
- OS: Kali

**Browser Information:**
- Browser Firefox
- Version 78.7

**Additional context**
Steps to create self-signed cert:
`openssl req -new -newkey rsa:4096 -days 365 -nodes -x509 \
-subj "/C=US/ST=TX/L=AU/O=GruntInc/CN=grunts.com" \
-keyout grunts.com.key \
-out grunts.com.crt && \
cat grunts.com.key grunts.com.crt > grunts.com.pem`

Creates PFX file with a password:
`openssl pkcs12 -export -out grunts.pfx -inkey grunts.com.key -in grunts.com.pem -certfile grunts.com.crt`

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.