Note: Following was tested only with vuzero box, but it should also work with any other VU+ box. You just need to change the MACHINE properly below to one of the supported OpenPLi boxes.
Note: Tested on Ubuntu 18.04
| package test; | |
| import com.sun.jna.platform.win32.Crypt32Util; | |
| import org.json.JSONObject; | |
| import org.springframework.http.*; | |
| import org.springframework.web.client.RestTemplate; | |
| import javax.crypto.Cipher; | |
| import javax.crypto.spec.GCMParameterSpec; | |
| import javax.crypto.spec.SecretKeySpec; |
| #!/usr/bin/env python | |
| """ | |
| mail2cert.py: | |
| Extracts certificates from Outlook emails. | |
| Uses only emails received today and with specific subject. | |
| Certificate is saved to a file, where file name is the first FQDN found | |
| in the email. | |
| Can be easily modified to extract anything using given regex. | |
| """ |
| function runCygwinBash { | |
| $env:CHERE_INVOKING = "1" | |
| C:\Cygwin64\bin\bash.exe --login -i | |
| } | |
| Set-Alias cygbash runCygwinBash |
Note: Following was tested only with vuzero box, but it should also work with any other VU+ box. You just need to change the MACHINE properly below to one of the supported OpenPLi boxes.
Note: Tested on Ubuntu 18.04