Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PAYARA-331 fixes #371 #389

Merged
merged 1 commit into from
Aug 10, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
* only if the new code is made subject to such option by the copyright
* holder.
*/

// Portions Copyright [2015] [C2B2 Consulting Limited]
package org.glassfish.web.admin.cli;

import com.sun.enterprise.config.serverbeans.Config;
Expand Down Expand Up @@ -71,6 +71,7 @@

import java.text.MessageFormat;
import java.util.ResourceBundle;
import org.glassfish.grizzly.config.dom.Ssl;

/**
* Command to create protocol element within network-config
Expand Down Expand Up @@ -170,6 +171,13 @@ public Object run(Protocols param) throws TransactionFailure {
newProtocol.setName(name);
newProtocol.setSecurityEnabled(securityEnabled == null ? null : securityEnabled.toString());
param.getProtocol().add(newProtocol);
if (securityEnabled) {
Ssl ssl = newProtocol.createChild(Ssl.class);
ssl.setCertNickname("s1as");
ssl.setSsl2Enabled("false");
ssl.setSsl3Enabled("false");
newProtocol.setSsl(ssl);
}
return newProtocol;
}
}, protocols);
Expand Down