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