This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void enableSSL() { | |
// the password used for the certutil db | |
var sslPassword = ""; | |
// the certificate subject | |
// retrieved from certutil with command | |
// > certutil -d sql:. -L -n my_domain | |
// and look for the "Subject: " line under certificate data | |
var certificateName = "CN=mydomain.com,OU=..."; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_gvm_complete() | |
{ | |
local CANDIDATES | |
COMPREPLY=() | |
if [ $COMP_CWORD -eq 1 ]; then | |
COMPREPLY=( $(compgen -W "install uninstall rm list use current version default selfupdate broadcast offline help flush" -- ${COMP_WORDS[COMP_CWORD]}) ) | |
elif [ $COMP_CWORD -eq 2 ]; then | |
case "${COMP_WORDS[COMP_CWORD-1]}" in |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@ApplicationScoped | |
@Startup | |
public class StartupBean | |
{ | |
@PostConstruct | |
public void onStartup() | |
{ | |
System.out.println("Application starting up."); | |
} | |
} |