Virtualmin CL create-domain without cert

hello - i am creating a ‘test’ VM like so:

virtualmin create-domain --domain test.com --pass abcdefg --dir --unix --dns --web ;

but this is creating a ssl cert.

is there a way to ‘skip’ the ssl cert creation using the command-line? i dont see a way mentioned here.

SYSTEM INFORMATION
OS type and version rockylinux-10
Webmin version 2.402.202508141704
Virtualmin version 7.30.202508141311
Webserver version apache 2.4.63
Related packages SUGGESTED

I’d ‘ass’ ‘u’ ‘me’ that Virtualmin still uses prescribed settings even if it is command line unless specifically over ridden?

1 Like

I would have thought that as well, but apparently not…?

Are you saying you’ve turned off Request SSL certificate from provider at domain creation time (set to No and saved it) and it still tries to get a cert when you create from CLI? That’d be a bug.

You should disable Apache SSL as a default chained feature:

1 Like

thank you!

with these great suggestions, i was able to easily reverse-engineer where the setting is:

/usr/bin/sed  --in-place  --expression='s/^ssl=3$/ssl=2/;' /etc/webmin/virtual-server/config    ;   ## 2025-08-15 

our goal is to have several bash-shell scripts that really does everything regarding installation so i an very quickly recreate a server if necessary.

here is the relevant portion:

sh -c "$(curl -fsSL https://download.virtualmin.dev/virtualmin-install.sh)"  \
                      --                                  \
                      --bundle LAMP                       \
                      --branch unstable                   \
                      --hostname host.HOSTNAME.info       \
                      --yes
                      ## for a pre-release  (--yes assumes yes for all prompts)
/usr/bin/sed  --in-place  --expression='s/^longname=0$/longname=1/;'                  /etc/webmin/virtual-server/config    ; 
/usr/bin/sed  --in-place  --expression='s/^ssl=3$/ssl=2/;'                           /etc/webmin/virtual-server/config    ;   ## new line

/usr/bin/sed  --in-place  --expression='s/^featurelimits=$/featurelimits=dns web/;'   /etc/webmin/virtual-server/plans/0   ; 

virtualmin  create-domain  --domain test-domain --pass  abcdefg --dir  --unix  --dns  --web  ;  
##         --dns and --web are the ONLY two options requested

it might be nice in a future release to include new options like “–create-ssl” and/or “–skip-ssl” with the virtualmin create-domain; command. right now using the website method vs using the CL gives slightly different results.

i realize this is VERY minor, but i thought it might be worth mentioning.

not really a bug since this is more of a minor inconsistency, and perhaps a feature suggestion.

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.