How can I send an email using python logging's SMTPHandler and SSL

Issue I’m developing a flask app in which I’d like to send error level logging to an email address. I tried setting up the typical error handler: mail_handler = SMTPHandler(mailhost=(app.config[‘MAIL_SERVER’], app.config[‘MAIL_PORT’]), fromaddr=app.config[‘MAIL_FROM_EMAIL’], toaddrs=[‘me@my_address.com’], subject=’The server died. That sucks… :(‘, credentials=(app.config[‘MAIL_USERNAME’],

Continue reading

cert-manager did not get expected response when querying endpoint, expected <token> but got: <html xml:lang=\"fr-FR\" l… (truncated)"

Issue I have configured a ClusterIssuer apiVersion: cert-manager.io/v1 kind: ClusterIssuer metadata: name: letsencrypt-cluster-issuer spec: acme: email: <myemail> server: https://acme-v02.api.letsencrypt.org/directory privateKeySecretRef: name: letsencrypt-cluster-issuer-key solvers: – http01: ingress: class: nginx and An Ingress apiVersion: networking.k8s.io/v1 kind: Ingress metadata: annotations: cert-manager.io/cluster-issuer: letsencrypt-cluster-issuer kubernetes.io/ingress.class:

Continue reading

Angular 13 https

Issue I generated a certificate using certbot. And as a result , I received such files: cert.pem chain.pem fullchain.pem privkey.pem How to make angular 13 work over https? Solution To run ng serve with custom certificate: ng serve –ssl –ssl-key

Continue reading

SimpleSAMLphp Unable to validate Signature error

Issue SimpleSAML_Error_Error: UNHANDLEDEXCEPTION Backtrace: 0 simplesamlphp/www/module.php:189 (N/A) Caused by: Exception: Unable to validate Signature Backtrace: 6 simplesamlphp/lib/SAML2/Utils.php:149 (SAML2_Utils::validateSignature) 5 simplesamlphp/lib/SAML2/Assertion.php:494 (SAML2_Assertion::validate) 4 simplesamlphp/modules/saml/lib/Message.php:185 (sspmod_saml_Message::checkSign) 3 simplesamlphp/modules/saml/lib/Message.php:560 (sspmod_saml_Message::processAssertion) 2 simplesamlphp/modules/saml/lib/Message.php:532 (sspmod_saml_Message::processResponse) 1 simplesamlphp/modules/saml/www/sp/saml2-acs.php:81 (require) 0 simplesamlphp/www/module.php:144 (N/A) I’m getting an error

Continue reading

CAS service ticket validate failed

Issue I have followed a link http://lukesampson.com/post/315838839/cas-on-windows-localhost-setup-in-5-mins, then the cas server works correctly, the login url is http://10.1.1.26:8080/login, the validate url is http://10.1.1.26:8080/serviceValidate. Then I tested it like below: call http://10.1.1.26:8080/login?service=http://10.1.1.9:8081/default.aspx I get the service ticket successfully, such as ST-9-pJ5UDxqKIHP2zuN3JGe4-cas

Continue reading

Installing godaddy ssl certificate to server : getting this below error when i restart service nginx

Issue nginx: [emerg] SSL_CTX_use_PrivateKey_file(“/etc/nginx/ssl/mydomain.key”) failed (SSL: error:0909006C:PEM routines:get_name:no start line:Expecting: ANY PRIVATE KEY error:140B0009:SSL routines:SSL_CTX_use_PrivateKey_file:PEM lib) #HTTPS server configuration server { listen 443; listen [::]:443; ssl on; ssl_certificate /etc/nginx/mydomain.chained.crt; ssl_certificate_key /etc/nginx/mydomain.key; root /var/www/html; server_name mydomain; location / { try_files $uri

Continue reading