This commit is contained in:
3
bot.py
3
bot.py
@@ -175,6 +175,9 @@ async def ssl(ctx, domain: str):
|
||||
certificates.append(current_cert)
|
||||
current_cert = ""
|
||||
|
||||
# Remove anything before -----BEGIN CERTIFICATE-----
|
||||
certificates = [cert[cert.find("-----BEGIN CERTIFICATE-----"):] for cert in certificates]
|
||||
|
||||
if certificates:
|
||||
cert = certificates[0]
|
||||
message = message + "\n## Website Certificate:\n`" + cert + "`\n"
|
||||
|
||||
Reference in New Issue
Block a user